00001
00002
00003
00004
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 #include "StTofHit.h"
00033 #include "StTrack.h"
00034 #include "StParticleDefinition.hh"
00035
00036 ClassImp(StTofHit)
00037
00038 StTofHit::StTofHit()
00039 {
00040 mTrayIndex = 0;
00041 mModuleIndex = 0;
00042 mCellIndex = 0;
00043 mDaqIndex = 255;
00044 mCellCollIndex = -1;
00045 mTimeOfFlight = 0;
00046 mPathLength = 0;
00047 mBeta = 0;
00048 mTOFExpectedAsElectron = 0;
00049 mTOFExpectedAsPion = 0;
00050 mTOFExpectedAsKaon = 0;
00051 mTOFExpectedAsProton = 0;
00052 mSigmaElectron = 999.;
00053 mSigmaPion = 999.;
00054 mSigmaKaon = 999.;
00055 mSigmaProton = 999.;
00056
00057 mAssociatedTrack = 0;
00058 mParticleHypothesis = 0;
00059 }
00060
00061 StTofHit::~StTofHit() {}
00062
00063 int
00064 StTofHit::trayIndex() const { return mTrayIndex; }
00065
00066 int
00067 StTofHit::moduleIndex() const { return mModuleIndex; }
00068
00069 int
00070 StTofHit::cellIndex() const { return mCellIndex; }
00071
00072 int
00073 StTofHit::daqIndex() const { return mDaqIndex; }
00074
00075 int
00076 StTofHit::cellCollIndex() const { return mCellCollIndex; }
00077
00078 float
00079 StTofHit::timeOfFlight() const { return mTimeOfFlight; }
00080
00081 float
00082 StTofHit::pathLength() const { return mPathLength; }
00083
00084 float
00085 StTofHit::beta() const { return mBeta; }
00086
00087 StTrack*
00088 StTofHit::associatedTrack() { return mAssociatedTrack; }
00089
00090 const StTrack*
00091 StTofHit::associatedTrack() const { return mAssociatedTrack; }
00092
00093 float
00094 StTofHit::tofExpectedAsElectron() const { return mTOFExpectedAsElectron; }
00095
00096 float
00097 StTofHit::tofExpectedAsPion() const { return mTOFExpectedAsPion; }
00098
00099 float
00100 StTofHit::tofExpectedAsKaon() const { return mTOFExpectedAsKaon; }
00101
00102 float
00103 StTofHit::tofExpectedAsProton() const { return mTOFExpectedAsProton; }
00104
00105 float
00106 StTofHit::sigmaElectron() const { return mSigmaElectron; }
00107
00108 float
00109 StTofHit::sigmaPion() const { return mSigmaPion; }
00110
00111 float
00112 StTofHit::sigmaKaon() const { return mSigmaKaon; }
00113
00114 float
00115 StTofHit::sigmaProton() const { return mSigmaProton; }
00116
00117 StParticleDefinition*
00118 StTofHit::particleHypothesis() { return mParticleHypothesis; }
00119
00120 const StParticleDefinition*
00121 StTofHit::particleHypothesis() const { return mParticleHypothesis; }
00122
00123 void
00124 StTofHit::setTrayIndex(int trayId) { mTrayIndex = trayId; }
00125
00126 void
00127 StTofHit::setModuleIndex(int moduleId) { mModuleIndex = moduleId; }
00128
00129 void
00130 StTofHit::setCellIndex(int cellId) { mCellIndex = cellId; }
00131
00132 void
00133 StTofHit::setDaqIndex(int daqId) { mDaqIndex = daqId; }
00134
00135 void
00136 StTofHit::setCellCollIndex(int cellcollId) { mCellCollIndex = cellcollId; }
00137
00138 void
00139 StTofHit::setTimeOfFlight(float tof) { mTimeOfFlight = tof; }
00140
00141 void
00142 StTofHit::setPathLength(float length) { mPathLength = length; }
00143
00144 void
00145 StTofHit::setBeta(float b) { mBeta = b; }
00146
00147 void
00148 StTofHit::setAssociatedTrack(StTrack* val) {mAssociatedTrack = val;}
00149
00150 void
00151 StTofHit::setTofExpectedAsElectron(float tofexp) { mTOFExpectedAsElectron = tofexp; }
00152
00153 void
00154 StTofHit::setTofExpectedAsPion(float tofexp) { mTOFExpectedAsPion = tofexp; }
00155
00156 void
00157 StTofHit::setTofExpectedAsKaon(float tofexp) { mTOFExpectedAsKaon = tofexp; }
00158
00159 void
00160 StTofHit::setTofExpectedAsProton(float tofexp) { mTOFExpectedAsProton = tofexp; }
00161
00162 void
00163 StTofHit::setSigmaElectron(float sigma) { mSigmaElectron = sigma; }
00164
00165 void
00166 StTofHit::setSigmaPion(float sigma) { mSigmaPion = sigma; }
00167
00168 void
00169 StTofHit::setSigmaKaon(float sigma) { mSigmaKaon = sigma; }
00170
00171 void
00172 StTofHit::setSigmaProton(float sigma) { mSigmaProton = sigma; }
00173
00174 void
00175 StTofHit::setParticleHypothesis(StParticleDefinition* val) { mParticleHypothesis = val; }