// -*- mode: c++ -*- //____________________________________________________________________ // // $Id: BrHit.h,v 1.1.1.1 2001/06/21 14:55:03 hagel Exp $ // $Author: hagel $ // $Date: 2001/06/21 14:55:03 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrHit #define BRAT_BrHit #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef BRAT_BrVector3D #include #endif class BrHit: public TObject { private: BrVector3D fPos; // Position of hit - local detector coordinates BrVector3D fPosError; // Error on hit position public: BrHit(); virtual ~BrHit(); virtual void Draw(Option_t* option = ""); virtual const BrVector3D& GetPos() const {return fPos;} virtual const BrVector3D& GetPosError() const {return fPosError;} virtual void Print(Option_t* option = "") const; virtual void SetPos(const BrVector3D &pos); virtual void SetX(Double_t value) { fPos.SetX(value); } virtual void SetY(Double_t value) { fPos.SetY(value); } virtual void SetZ(Double_t value) { fPos.SetZ(value); } virtual void SetPosError(const BrVector3D &error); virtual void SetXError(Double_t value) { fPosError.SetX(value); } virtual void SetYError(Double_t value) { fPosError.SetY(value); } virtual void SetZError(Double_t value) { fPosError.SetZ(value); } ClassDef(BrHit, 1) // General Brahms detector hit class } ; #endif //$Log: BrHit.h,v $ //Revision 1.1.1.1 2001/06/21 14:55:03 hagel //Initial revision of brat2 // //Revision 1.2 2001/06/17 17:29:31 pchristi //Near final version. A little cosmetics is still needed. // //Revision 1.1 2001/05/29 14:20:04 pchristi //Initial import of new Tpc classes //