StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofHit.cxx
1 /***************************************************************************
2  *
3  * $Id: StTofHit.cxx,v 2.6 2004/07/15 16:36:25 ullrich Exp $
4  *
5  * Author: Wei-Ming Zhang, Dec 2000
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTofHit.cxx,v $
13  * Revision 2.6 2004/07/15 16:36:25 ullrich
14  * Removed all clone() declerations and definitions. Use StObject::clone() only.
15  *
16  * Revision 2.5 2004/02/05 17:59:43 ullrich
17  * Changed $LINK to StLink mechanism and add new member.
18  *
19  * Revision 2.4 2003/07/09 20:14:20 ullrich
20  * New methods added.
21  *
22  * Revision 2.3 2003/05/21 18:22:46 ullrich
23  * Major Revision of ToF classes (F. Geurts)
24  *
25  * Revision 2.2 2001/03/24 03:34:59 perev
26  * clone() -> clone() const
27  *
28  * Revision 2.1 2000/12/21 23:52:24 ullrich
29  * Initial Revision.
30  *
31  **************************************************************************/
32 #include "StTofHit.h"
33 #include "StTrack.h"
34 #include "StParticleDefinition.hh"
35 
36 ClassImp(StTofHit)
37 
39 {
40  mTrayIndex = 0;
41  mModuleIndex = 0;
42  mCellIndex = 0;
43  mDaqIndex = 255;
44  mCellCollIndex = -1;
45  mTimeOfFlight = 0;
46  mPathLength = 0;
47  mBeta = 0;
48  mTOFExpectedAsElectron = 0;
49  mTOFExpectedAsPion = 0;
50  mTOFExpectedAsKaon = 0;
51  mTOFExpectedAsProton = 0;
52  mSigmaElectron = 999.;
53  mSigmaPion = 999.;
54  mSigmaKaon = 999.;
55  mSigmaProton = 999.;
56 
57  mAssociatedTrack = 0;
58  mParticleHypothesis = 0;
59 }
60 
61 StTofHit::~StTofHit() {/* noop */}
62 
63 int
64 StTofHit::trayIndex() const { return mTrayIndex; }
65 
66 int
67 StTofHit::moduleIndex() const { return mModuleIndex; }
68 
69 int
70 StTofHit::cellIndex() const { return mCellIndex; }
71 
72 int
73 StTofHit::daqIndex() const { return mDaqIndex; }
74 
75 int
76 StTofHit::cellCollIndex() const { return mCellCollIndex; }
77 
78 float
79 StTofHit::timeOfFlight() const { return mTimeOfFlight; }
80 
81 float
82 StTofHit::pathLength() const { return mPathLength; }
83 
84 float
85 StTofHit::beta() const { return mBeta; }
86 
87 StTrack*
88 StTofHit::associatedTrack() { return mAssociatedTrack; }
89 
90 const StTrack*
91 StTofHit::associatedTrack() const { return mAssociatedTrack; }
92 
93 float
94 StTofHit::tofExpectedAsElectron() const { return mTOFExpectedAsElectron; }
95 
96 float
97 StTofHit::tofExpectedAsPion() const { return mTOFExpectedAsPion; }
98 
99 float
100 StTofHit::tofExpectedAsKaon() const { return mTOFExpectedAsKaon; }
101 
102 float
103 StTofHit::tofExpectedAsProton() const { return mTOFExpectedAsProton; }
104 
105 float
106 StTofHit::sigmaElectron() const { return mSigmaElectron; }
107 
108 float
109 StTofHit::sigmaPion() const { return mSigmaPion; }
110 
111 float
112 StTofHit::sigmaKaon() const { return mSigmaKaon; }
113 
114 float
115 StTofHit::sigmaProton() const { return mSigmaProton; }
116 
118 StTofHit::particleHypothesis() { return mParticleHypothesis; }
119 
121 StTofHit::particleHypothesis() const { return mParticleHypothesis; }
122 
123 void
124 StTofHit::setTrayIndex(int trayId) { mTrayIndex = trayId; }
125 
126 void
127 StTofHit::setModuleIndex(int moduleId) { mModuleIndex = moduleId; }
128 
129 void
130 StTofHit::setCellIndex(int cellId) { mCellIndex = cellId; }
131 
132 void
133 StTofHit::setDaqIndex(int daqId) { mDaqIndex = daqId; }
134 
135 void
136 StTofHit::setCellCollIndex(int cellcollId) { mCellCollIndex = cellcollId; }
137 
138 void
139 StTofHit::setTimeOfFlight(float tof) { mTimeOfFlight = tof; }
140 
141 void
142 StTofHit::setPathLength(float length) { mPathLength = length; }
143 
144 void
145 StTofHit::setBeta(float b) { mBeta = b; }
146 
147 void
148 StTofHit::setAssociatedTrack(StTrack* val) {mAssociatedTrack = val;}
149 
150 void
151 StTofHit::setTofExpectedAsElectron(float tofexp) { mTOFExpectedAsElectron = tofexp; }
152 
153 void
154 StTofHit::setTofExpectedAsPion(float tofexp) { mTOFExpectedAsPion = tofexp; }
155 
156 void
157 StTofHit::setTofExpectedAsKaon(float tofexp) { mTOFExpectedAsKaon = tofexp; }
158 
159 void
160 StTofHit::setTofExpectedAsProton(float tofexp) { mTOFExpectedAsProton = tofexp; }
161 
162 void
163 StTofHit::setSigmaElectron(float sigma) { mSigmaElectron = sigma; }
164 
165 void
166 StTofHit::setSigmaPion(float sigma) { mSigmaPion = sigma; }
167 
168 void
169 StTofHit::setSigmaKaon(float sigma) { mSigmaKaon = sigma; }
170 
171 void
172 StTofHit::setSigmaProton(float sigma) { mSigmaProton = sigma; }
173 
174 void
175 StTofHit::setParticleHypothesis(StParticleDefinition* val) { mParticleHypothesis = val; }
Definition: tof.h:15