00001 #include "StMuTofHit.h"
00002
00003
00004
00005 ClassImp(StMuTofHit)
00006
00007 StMuTofHit::StMuTofHit()
00008 {
00009 mIconf = 0;
00010 mTrayIndex = 0;
00011 mModuleIndex = 0;
00012 mCellIndex = 0;
00013 mDaqIndex = 255;
00014 mADC = 0;
00015 mTimeOfFlight = 0;
00016 mPathLength = 0;
00017 mBeta = 0;
00018 mTOFExpectedAsElectron = 0;
00019 mTOFExpectedAsPion = 0;
00020 mTOFExpectedAsKaon = 0;
00021 mTOFExpectedAsProton = 0;
00022 mSigmaElectron = 999.;
00023 mSigmaPion = 999.;
00024 mSigmaKaon = 999.;
00025 mSigmaProton = 999.;
00026
00027 StThreeVectorF mProjectedPoint(0.,0.,0.);
00028 mAssociatedTrackId = 0;
00029 mParticleHypothesis = 0;
00030 }
00031
00032 StMuTofHit::~StMuTofHit()
00033 {}
00034
00035 int StMuTofHit::Iconf() const { return mIconf; }
00036
00037 int StMuTofHit::trayIndex() const { return mTrayIndex; }
00038
00039 int StMuTofHit::moduleIndex() const { return mModuleIndex; }
00040
00041 int StMuTofHit::cellIndex() const { return mCellIndex; }
00042
00043 int StMuTofHit::daqIndex() const { return mDaqIndex; }
00044
00045 int StMuTofHit::adc() const { return mADC; }
00046
00047 float StMuTofHit::timeOfFlight() const { return mTimeOfFlight; }
00048
00049 float StMuTofHit::pathLength() const { return mPathLength; }
00050
00051 float StMuTofHit::beta() const { return mBeta; }
00052
00053
00054
00055
00056
00057 int StMuTofHit::associatedTrackId() const { return mAssociatedTrackId; }
00058
00059 StThreeVectorF StMuTofHit::projectedPoint() const { return mProjectedPoint; }
00060
00061 float StMuTofHit::tofExpectedAsElectron() const { return mTOFExpectedAsElectron; }
00062
00063 float StMuTofHit::tofExpectedAsPion() const { return mTOFExpectedAsPion; }
00064
00065 float StMuTofHit::tofExpectedAsKaon() const { return mTOFExpectedAsKaon; }
00066
00067 float StMuTofHit::tofExpectedAsProton() const { return mTOFExpectedAsProton; }
00068
00069 float StMuTofHit::sigmaElectron() const { return mSigmaElectron; }
00070
00071 float StMuTofHit::sigmaPion() const { return mSigmaPion; }
00072
00073 float StMuTofHit::sigmaKaon() const { return mSigmaKaon; }
00074
00075 float StMuTofHit::sigmaProton() const { return mSigmaProton; }
00076
00077
00078
00079
00080
00081 int StMuTofHit::particleHypothesis() const { return mParticleHypothesis; }
00082
00083
00084 void StMuTofHit::setIconf(int iconf) { mIconf = iconf; }
00085
00086 void StMuTofHit::setTrayIndex(int trayId) { mTrayIndex = trayId; }
00087
00088 void StMuTofHit::setModuleIndex(int moduleId) { mModuleIndex = moduleId; }
00089
00090 void StMuTofHit::setCellIndex(int cellId) { mCellIndex = cellId; }
00091
00092 void StMuTofHit::setDaqIndex(int daqId) { mDaqIndex = daqId; }
00093
00094 void StMuTofHit::setADC(int adc) { mADC = adc; }
00095
00096 void StMuTofHit::setTimeOfFlight(float tof) { mTimeOfFlight = tof; }
00097
00098 void StMuTofHit::setPathLength(float length) { mPathLength = length; }
00099
00100 void StMuTofHit::setBeta(float b) { mBeta = b; }
00101
00102
00103
00104
00105
00106
00107
00108 void StMuTofHit::setAssociatedTrackId(int trkId) { mAssociatedTrackId = trkId; }
00109
00110 void StMuTofHit::setProjectedPoint(const StThreeVectorF& val) { mProjectedPoint = val; }
00111
00112 void StMuTofHit::settofExpectedAsElectron(float tofexp) { mTOFExpectedAsElectron = tofexp; }
00113
00114 void StMuTofHit::settofExpectedAsPion(float tofexp) { mTOFExpectedAsPion = tofexp; }
00115
00116 void StMuTofHit::settofExpectedAsKaon(float tofexp) { mTOFExpectedAsKaon = tofexp; }
00117
00118 void StMuTofHit::settofExpectedAsProton(float tofexp) { mTOFExpectedAsProton = tofexp; }
00119
00120 void StMuTofHit::setsigmaElectron(float sigma) { mSigmaElectron = sigma; }
00121
00122 void StMuTofHit::setsigmaPion(float sigma) { mSigmaPion = sigma; }
00123
00124 void StMuTofHit::setsigmaKaon(float sigma) { mSigmaKaon = sigma; }
00125
00126 void StMuTofHit::setsigmaProton(float sigma) { mSigmaProton = sigma; }
00127
00128
00129
00130
00131
00132
00133
00134 void StMuTofHit::setparticleHypothesis(int val) { mParticleHypothesis = val; }
00135