00001 #ifndef DigiRootData_TMcHitTof_H 00002 #define DigiRootData_TMcHitTof_H 1 00003 00004 #include "TObject.h" 00005 #include "TString.h" 00006 #include "TVector3.h" 00007 00008 class TMcHitTof: public TObject { 00009 00010 public: 00011 00012 TMcHitTof(); 00013 00014 ~TMcHitTof (); 00015 00016 00017 void SetTrackIndex(Int_t trackIndex) { m_trackIndex = trackIndex; }; 00018 void SetG4Index(Int_t index) {m_g4Index = index;} 00019 void SetPartId(Int_t partId) {m_partId = partId;} 00020 void SetScinNb(Int_t scinNb) { m_scinNb = scinNb; } 00021 void SetEdep(Double_t edep) { m_edep = edep; } 00022 void SetStepL(Double_t stepL) { m_stepL = stepL;} 00023 void SetTrackL(Double_t length) { m_trackL = length; } 00024 void SetPos(TVector3 pos) { m_pos = pos; } 00025 void SetTime(Double_t time) { m_time=time;} 00026 void SetDeltaT(Double_t deltaT) { m_deltaT = deltaT;} 00027 void SetPDirection(TVector3 pDirection) { m_pDirection = pDirection; } 00028 void SetMomentum(TVector3 momentum) { m_momentum = momentum; } 00029 void SetCharge(Int_t charge) {m_charge = charge;} 00030 00031 Int_t GetTrackIndex() const { return m_trackIndex; } 00032 Int_t GetG4Index() const {return m_g4Index;} 00033 Int_t GetPartId() const { return m_partId; } 00034 Int_t GetScinNb() const { return m_scinNb; } 00035 Double_t GetEdep() const{ return m_edep; } 00036 Double_t GetStepL() const { return m_stepL; } 00037 Double_t GetTrackL() const {return m_trackL; } 00038 TVector3 GetPos() const { return m_pos; } 00039 Double_t GetTime() const { return m_time;} 00040 Double_t GetDeltaT() const {return m_deltaT;} 00041 TVector3 GetPDirection() const {return m_pDirection;} 00042 TVector3 GetMomentum() const {return m_momentum;} 00043 Int_t GetCharge() const {return m_charge; } 00044 00045 private: 00046 //static Int_t s_count; 00047 00048 Int_t m_trackIndex; 00049 Int_t m_g4Index; 00050 Int_t m_partId; 00051 Int_t m_scinNb; 00052 Double_t m_edep; 00053 Double_t m_stepL; 00054 Double_t m_trackL; 00055 TVector3 m_pos; 00056 Double_t m_time; 00057 Double_t m_deltaT; 00058 TVector3 m_pDirection; 00059 TVector3 m_momentum; 00060 Int_t m_charge; 00061 00062 00063 ClassDef(TMcHitTof,1) 00064 }; 00065 00066 #endif