StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltTrackNode.cxx
1 /***************************************************************************
2  *
3  * $Id: StHltTrackNode.cxx,v 2.1 2011/02/01 19:45:48 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltTrackNode.cxx,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #include "StHltTrackNode.h"
18 #include "StHltTrack.h"
19 #include "StHltBTofHit.h"
20 #include "StHltBEmcTowerHit.h"
21 
22 ClassImp(StHltTrackNode)
23 
24 
27 {
28  mGlobalTrack = 0;
29  mPrimaryTrack = 0;
30  mBTofHit = 0;
31  mBEmcTowerHit = 0;
32 
33  mGlobalTrackSN = -1;
34  mPrimaryTrackSN = -1;
35  mTofHitSN = -1;
36  mEmcTowerSN = -1;
37 
38  mBEmcMatchPhiDiff = 0.;
39  mBEmcMatchZEdge = 0.;
40  mBTofProjChannel = 0.;
41  mBTofCellLocalY = 0.;
42  mBTofCellLocalZ = 0.;
43  mBTofPathLength = 0.;
44  mBeta = 0.;
45  mTof = 0.;
46 }
47 
48 StHltTrackNode::~StHltTrackNode() { /* noop */ }
49 
51 StHltTrackNode::globalTrack()
52 {
53  return mGlobalTrack;
54 }
55 
56 const StHltTrack*
57 StHltTrackNode::globalTrack() const
58 {
59  return mGlobalTrack;
60 }
61 
63 StHltTrackNode::primaryTrack()
64 {
65  return mPrimaryTrack;
66 }
67 
68 const StHltTrack*
69 StHltTrackNode::primaryTrack() const
70 {
71  return mPrimaryTrack;
72 }
73 
75 StHltTrackNode::bTofHit()
76 {
77  return mBTofHit;
78 }
79 
80 const StHltBTofHit*
81 StHltTrackNode::bTofHit() const
82 {
83  return mBTofHit;
84 }
85 
87 StHltTrackNode::bEmcTowerHit()
88 {
89  return mBEmcTowerHit;
90 }
91 
92 const StHltBEmcTowerHit*
93 StHltTrackNode::bEmcTowerHit() const
94 {
95  return mBEmcTowerHit;
96 }
97 
98 int
99 StHltTrackNode::globalTrackSN() const
100 {
101  return mGlobalTrackSN;
102 }
103 int
104 StHltTrackNode::primaryTrackSN() const
105 {
106  return mPrimaryTrackSN;
107 }
108 int
109 StHltTrackNode::tofHitSN() const
110 {
111  return mTofHitSN;
112 }
113 int
114 StHltTrackNode::emcTowerSN() const
115 {
116  return mEmcTowerSN;
117 }
118 
119 double
120 StHltTrackNode::bEmcMatchPhiDiff() const
121 {
122  return mBEmcMatchPhiDiff;
123 }
124 
125 double
126 StHltTrackNode::bEmcMatchZEdge() const
127 {
128  return mBEmcMatchZEdge;
129 }
130 
131 float
132 StHltTrackNode::bTofProjChannel() const
133 {
134  return mBTofProjChannel;
135 }
136 
137 float
138 StHltTrackNode::bTofCellLocalY() const
139 {
140  return mBTofCellLocalY;
141 }
142 
143 float
144 StHltTrackNode::bTofCellLocalZ() const
145 {
146  return mBTofCellLocalZ;
147 }
148 
149 float
150 StHltTrackNode::bTofPathLength() const
151 {
152  return mBTofPathLength;
153 }
154 
155 float
156 StHltTrackNode::beta() const
157 {
158  return mBeta;
159 }
160 
161 float
162 StHltTrackNode::tof() const
163 {
164  return mTof;
165 }
166 
167 void
168 StHltTrackNode::setGlobalTrack(StHltTrack* val)
169 {
170  mGlobalTrack = val;
171 }
172 
173 void
174 StHltTrackNode::setPrimaryTrack(StHltTrack* val)
175 {
176  mPrimaryTrack = val;
177 }
178 
179 void
180 StHltTrackNode::setBTofHit(StHltBTofHit* val)
181 {
182  mBTofHit = val;
183 }
184 
185 void
186 StHltTrackNode::setBEmcTowerHit(StHltBEmcTowerHit* val)
187 {
188  mBEmcTowerHit = val;
189 }
190 
191 void
192 StHltTrackNode::setGlobalTrackSN(int val)
193 {
194  mGlobalTrackSN = val;
195 }
196 
197 void
198 StHltTrackNode::setPrimaryTrackSN(int val)
199 {
200  mPrimaryTrackSN = val;
201 }
202 
203 void
204 StHltTrackNode::setTofHitSN(int val)
205 {
206  mTofHitSN = val;
207 }
208 
209 void
210 StHltTrackNode::setEmcTowerSN(int val)
211 {
212  mEmcTowerSN = val;
213 }
214 
215 void
216 StHltTrackNode::setBEmcMatchPhiDiff(double val)
217 {
218  mBEmcMatchPhiDiff = val;
219 }
220 
221 void
222 StHltTrackNode::setBEmcMatchZEdge(double val)
223 {
224  mBEmcMatchZEdge = val;
225 }
226 
227 void
228 StHltTrackNode::setBTofProjChannel(float val)
229 {
230  mBTofProjChannel = val;
231 }
232 
233 void
234 StHltTrackNode::setBTofCellLocalY(float val)
235 {
236  mBTofCellLocalY = val;
237 }
238 
239 void
240 StHltTrackNode::setBTofCellLocalZ(float val)
241 {
242  mBTofCellLocalZ = val;
243 }
244 
245 void
246 StHltTrackNode::setBTofPathLength(float val)
247 {
248  mBTofPathLength = val;
249 }
250 
251 void
252 StHltTrackNode::setBeta(float val)
253 {
254  mBeta = val;
255 }
256 
257 void
258 StHltTrackNode::setTof(float val)
259 {
260  mTof = val;
261 }
262 
263 ostream&
264 operator<<(ostream &os, const StHltTrackNode& node)
265 {
266  os << " bemcMatchPhiDiff " << node.bEmcMatchPhiDiff()<<" bemcMatchZEdge "<<node.bEmcMatchZEdge()<<endl
267  << " bTofProjChannel "<<node.bTofProjChannel() << " bTofCellLocalY "<< node.bTofCellLocalY() <<" bTofCellLocalZ "<<node.bTofCellLocalZ()<< " bTofPathLength "<<node.bTofPathLength()<<" beta "<<node.beta()<<" tof "<<node.tof()<<endl;
268  return os;
269 
270 }
271 
272 
273 
274 
275 
276 
277 
278 
279 
280