00001 #ifndef RootEventData_TTofMc_H 00002 #define RootEventData_TTofMc_H 1 00003 00004 #include "TObject.h" 00005 //#include <vector> 00006 //using namespace std; 00007 00008 class TTofMc : public TObject { 00009 00010 public: 00011 00012 TTofMc(); 00013 ~TTofMc(); 00014 //Get 00015 // Get associated id 00016 UInt_t getId() const {return m_id;} 00017 00018 // Get the associated track id 00019 UInt_t getTrackIndex() const {return m_trackIndex; } 00020 00021 // Get the position x 00022 Double_t getPositionX() const {return m_xPosition;} 00023 00024 // Get the position y 00025 Double_t getPositionY() const {return m_yPosition;} 00026 00027 // Get the position z 00028 Double_t getPositionZ() const {return m_zPosition;} 00029 00030 // Get momentum Px 00031 Double_t getPx() const {return m_px ;} 00032 00033 // Get momentum Py 00034 Double_t getPy() const {return m_py ;} 00035 00036 // Get momentum Pz 00037 Double_t getPz() const {return m_pz ;} 00038 00039 // Get the trajectory length 00040 Double_t getTrackLength() const{return m_trackLength;} 00041 00042 // Get the flight time 00043 Double_t getFlightTime() const{return m_flightTime; } 00044 00045 //Set 00046 void setId(UInt_t id) {m_id = id ;} 00047 void setTrackIndex(UInt_t trackIndex){ m_trackIndex = trackIndex;} 00048 void setPositionX(Double_t positionX) {m_xPosition = positionX;} 00049 void setPositionY(Double_t positionY) {m_yPosition = positionY;} 00050 void setPositionZ(Double_t positionZ) {m_zPosition = positionZ;} 00051 void setPx(Double_t px) {m_px = px;} 00052 void setPy(Double_t py) {m_py = py;} 00053 void setPz(Double_t pz) {m_pz = pz;} 00054 void setTrackLength(Double_t trackLength) {m_trackLength = trackLength; } 00055 void setFlightTime(Double_t flightTime ) {m_flightTime = flightTime; } 00056 00057 private: 00058 00059 UInt_t m_id; 00060 00061 UInt_t m_trackIndex; 00062 00063 Double_t m_xPosition; 00064 00065 Double_t m_yPosition; 00066 00067 Double_t m_zPosition; 00068 00069 Double_t m_px; 00070 00071 Double_t m_py; 00072 00073 Double_t m_pz; 00074 00075 Double_t m_trackLength; 00076 00077 Double_t m_flightTime; 00078 00079 ClassDef(TTofMc,1) 00080 }; 00081 00082 00083 #endif //TrackRootData_TTofMc_H 00084