00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef StTofHit_hh
00050 #define StTofHit_hh
00051
00052 #include <Stiostream.h>
00053 #include "StHit.h"
00054
00055 class StParticleDefinition;
00056 class StTrack;
00057
00058 class StTofHit : public StHit {
00059 public:
00060 StTofHit();
00061 ~StTofHit();
00062
00063 int trayIndex() const;
00064 int moduleIndex() const;
00065 int cellIndex() const;
00066 int daqIndex() const;
00067 int cellCollIndex() const;
00068 float timeOfFlight() const;
00069 float pathLength() const;
00070 float beta() const;
00071
00072 StTrack* associatedTrack();
00073 const StTrack* associatedTrack() const;
00074
00075 float tofExpectedAsElectron() const;
00076 float tofExpectedAsPion() const;
00077 float tofExpectedAsKaon() const;
00078 float tofExpectedAsProton() const;
00079
00080 float sigmaElectron() const;
00081 float sigmaPion() const;
00082 float sigmaKaon() const;
00083 float sigmaProton() const;
00084
00085 StParticleDefinition* particleHypothesis();
00086 const StParticleDefinition* particleHypothesis() const;
00087
00088 void setTrayIndex(int);
00089 void setModuleIndex(int);
00090 void setCellIndex(int);
00091 void setCellCollIndex(int);
00092 void setDaqIndex(int);
00093 void setTimeOfFlight(float);
00094 void setPathLength(float);
00095 void setBeta(float);
00096 void setAssociatedTrack(StTrack*);
00097 void setTofExpectedAsElectron(float);
00098 void setTofExpectedAsPion(float);
00099 void setTofExpectedAsKaon(float);
00100 void setTofExpectedAsProton(float);
00101 void setSigmaElectron(float);
00102 void setSigmaPion(float);
00103 void setSigmaKaon(float);
00104 void setSigmaProton(float);
00105 void setParticleHypothesis(StParticleDefinition*);
00106
00107 protected:
00108 Int_t mTrayIndex;
00109 Int_t mModuleIndex;
00110 Int_t mCellIndex;
00111 Int_t mDaqIndex;
00112 Int_t mCellCollIndex;
00113 Float_t mTimeOfFlight;
00114 Float_t mPathLength;
00115 Float_t mBeta;
00116
00117 #ifdef __CINT__
00118 StObjLink mAssociatedTrack;
00119 #else
00120 StLink<StTrack> mAssociatedTrack;
00121 #endif //__CINT__
00122 Float_t mTOFExpectedAsElectron;
00123 Float_t mTOFExpectedAsPion;
00124 Float_t mTOFExpectedAsKaon;
00125 Float_t mTOFExpectedAsProton;
00126 Float_t mSigmaElectron;
00127 Float_t mSigmaPion;
00128 Float_t mSigmaKaon;
00129 Float_t mSigmaProton;
00130 StParticleDefinition *mParticleHypothesis;
00131
00132 ClassDef(StTofHit,3)
00133 };
00134
00135 #endif