StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuTofHit.cxx
1 #include "StMuTofHit.h"
2 //#include "StTrack.h"
3 //#include "StParticleDefinition.hh"
4 
5 ClassImp(StMuTofHit)
6 
8 {
9  mIconf = 0;
10  mTrayIndex = 0;
11  mModuleIndex = 0;
12  mCellIndex = 0;
13  mDaqIndex = 255;
14  mADC = 0;
15  mTimeOfFlight = 0;
16  mPathLength = 0;
17  mBeta = 0;
18  mTOFExpectedAsElectron = 0;
19  mTOFExpectedAsPion = 0;
20  mTOFExpectedAsKaon = 0;
21  mTOFExpectedAsProton = 0;
22  mSigmaElectron = 999.;
23  mSigmaPion = 999.;
24  mSigmaKaon = 999.;
25  mSigmaProton = 999.;
26 
27  StThreeVectorF mProjectedPoint(0.,0.,0.);
28  mAssociatedTrackId = 0;
29  mParticleHypothesis = 0;
30 }
31 
32 StMuTofHit::~StMuTofHit()
33 {}
34 
35 int StMuTofHit::Iconf() const { return mIconf; }
36 
37 int StMuTofHit::trayIndex() const { return mTrayIndex; }
38 
39 int StMuTofHit::moduleIndex() const { return mModuleIndex; }
40 
41 int StMuTofHit::cellIndex() const { return mCellIndex; }
42 
43 int StMuTofHit::daqIndex() const { return mDaqIndex; }
44 
45 int StMuTofHit::adc() const { return mADC; }
46 
47 float StMuTofHit::timeOfFlight() const { return mTimeOfFlight; }
48 
49 float StMuTofHit::pathLength() const { return mPathLength; }
50 
51 float StMuTofHit::beta() const { return mBeta; }
52 
53 //StTrack* StMuTofHit::associatedTrack() { return mAssociatedTrack; }
54 
55 //const StTrack* StMuTofHit::associatedTrack() const { return mAssociatedTrack; }
56 
57 int StMuTofHit::associatedTrackId() const { return mAssociatedTrackId; }
58 
59 StThreeVectorF StMuTofHit::projectedPoint() const { return mProjectedPoint; }
60 
61 float StMuTofHit::tofExpectedAsElectron() const { return mTOFExpectedAsElectron; }
62 
63 float StMuTofHit::tofExpectedAsPion() const { return mTOFExpectedAsPion; }
64 
65 float StMuTofHit::tofExpectedAsKaon() const { return mTOFExpectedAsKaon; }
66 
67 float StMuTofHit::tofExpectedAsProton() const { return mTOFExpectedAsProton; }
68 
69 float StMuTofHit::sigmaElectron() const { return mSigmaElectron; }
70 
71 float StMuTofHit::sigmaPion() const { return mSigmaPion; }
72 
73 float StMuTofHit::sigmaKaon() const { return mSigmaKaon; }
74 
75 float StMuTofHit::sigmaProton() const { return mSigmaProton; }
76 
77 //StParticleDefinition* StMuTofHit::particleHypothesis() { return mParticleHypothesis; }
78 
79 //const StParticleDefinition* StMuTofHit::particleHypothesis() const { return mParticleHypothesis; }
80 
81 int StMuTofHit::particleHypothesis() const { return mParticleHypothesis; }
82 
83 
84 void StMuTofHit::setIconf(int iconf) { mIconf = iconf; }
85 
86 void StMuTofHit::setTrayIndex(int trayId) { mTrayIndex = trayId; }
87 
88 void StMuTofHit::setModuleIndex(int moduleId) { mModuleIndex = moduleId; }
89 
90 void StMuTofHit::setCellIndex(int cellId) { mCellIndex = cellId; }
91 
92 void StMuTofHit::setDaqIndex(int daqId) { mDaqIndex = daqId; }
93 
94 void StMuTofHit::setADC(int adc) { mADC = adc; }
95 
96 void StMuTofHit::setTimeOfFlight(float tof) { mTimeOfFlight = tof; }
97 
98 void StMuTofHit::setPathLength(float length) { mPathLength = length; }
99 
100 void StMuTofHit::setBeta(float b) { mBeta = b; }
101 
102 // void StMuTofHit::setAssociatedTrack(StTrack* val)
103 // {
104 // if (mAssociatedTrack) delete mAssociatedTrack;
105 // mAssociatedTrack = val;
106 // }
107 
108 void StMuTofHit::setAssociatedTrackId(int trkId) { mAssociatedTrackId = trkId; }
109 
110 void StMuTofHit::setProjectedPoint(const StThreeVectorF& val) { mProjectedPoint = val; }
111 
112 void StMuTofHit::settofExpectedAsElectron(float tofexp) { mTOFExpectedAsElectron = tofexp; }
113 
114 void StMuTofHit::settofExpectedAsPion(float tofexp) { mTOFExpectedAsPion = tofexp; }
115 
116 void StMuTofHit::settofExpectedAsKaon(float tofexp) { mTOFExpectedAsKaon = tofexp; }
117 
118 void StMuTofHit::settofExpectedAsProton(float tofexp) { mTOFExpectedAsProton = tofexp; }
119 
120 void StMuTofHit::setsigmaElectron(float sigma) { mSigmaElectron = sigma; }
121 
122 void StMuTofHit::setsigmaPion(float sigma) { mSigmaPion = sigma; }
123 
124 void StMuTofHit::setsigmaKaon(float sigma) { mSigmaKaon = sigma; }
125 
126 void StMuTofHit::setsigmaProton(float sigma) { mSigmaProton = sigma; }
127 
128 // void StMuTofHit::setparticleHypothesis(StParticleDefinition* val)
129 // {
130 // if (mParticleHypothesis) delete mParticleHypothesis;
131 // mParticleHypothesis = val;
132 // }
133 
134 void StMuTofHit::setparticleHypothesis(int val) { mParticleHypothesis = val; }
135 
Definition: tof.h:15