StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltTrack.cxx
1 /***************************************************************************
2  *
3  * $Id: StHltTrack.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: StHltTrack.cxx,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #include "StHltTrack.h"
18 #include "StHltTrackNode.h"
19 
20 ClassImp(StHltTrack)
21 
25  mId = 0;
26  mInnerMostRow = 0;
27  mOuterMostRow = 0;
28  mNHits = 0;
29  mNDedx = 0;
30  mQ = 0;
31  mChi2[0]=0; mChi2[1]=0;
32  mDedx = 0;
33  mPt = 0;
34  mPhi0 = 0;
35  mPsi = 0;
36  mR0 = 0;
37  mTanl = 0;
38  mZ0 = 0;
39  mLength = 0;
40  mDpt = 0;
41  mDpsi = 0;
42  mDz0 = 0;
43  mDtanl = 0;
44  mTrackNode = 0;
45 }
46 
47 StHltTrack::~StHltTrack(){/* noop */}
48 
49 void
50 StHltTrack::setType(StTrackType val)
51 {
52  mType = val;
53 }
54 
55 void
56 StHltTrack::setId(int val)
57 {
58  mId = val;
59 }
60 
61 void
62 StHltTrack::setFlag(unsigned short val)
63 {
64  mFlag = val;
65 }
66 
67 void
68 StHltTrack::setInnerMostRow(char val)
69 {
70  mInnerMostRow = val;
71 }
72 
73 void
74 StHltTrack::setOuterMostRow(char val)
75 {
76  mOuterMostRow = val;
77 }
78 
79 void
80 StHltTrack::setNHits(unsigned char val)
81 {
82  mNHits = val;
83 }
84 
85 void
86 StHltTrack::setNDedx(unsigned char val)
87 {
88  mNDedx = val;
89 }
90 
91 void
92 StHltTrack::setQ(char val)
93 {
94  mQ = val;
95 }
96 
97 void
98 StHltTrack::setChi2(int i, float val)
99 {
100  if (i==0 || i==1) mChi2[i]=val; else return;
101 }
102 
103 void
104 StHltTrack::setDedx(float val)
105 {
106  mDedx = val;
107 }
108 
109 void
110 StHltTrack::setPt(float val)
111 {
112  mPt = val;
113 }
114 
115 void
116 StHltTrack::setPhi0(float val)
117 {
118  mPhi0 = val;
119 }
120 
121 void
122 StHltTrack::setPsi(float val)
123 {
124  mPsi = val;
125 }
126 
127 void
128 StHltTrack::setR0(float val)
129 {
130  mR0 = val;
131 }
132 
133 void
134 StHltTrack::setTanl(float val)
135 {
136  mTanl = val;
137 }
138 
139 void
140 StHltTrack::setZ0(float val)
141 {
142  mZ0 = val;
143 }
144 
145 void
146 StHltTrack::setLength(float val)
147 {
148  mLength = val;
149 }
150 
151 void
152 StHltTrack::setDpt(float val)
153 {
154  mDpt = val;
155 }
156 
157 void
158 StHltTrack::setDpsi(float val)
159 {
160  mDpsi = val;
161 }
162 
163 void
164 StHltTrack::setDz0(float val)
165 {
166  mDz0 = val;
167 }
168 
169 void
170 StHltTrack::setDtanl(float val)
171 {
172  mDtanl = val;
173 }
174 
175 void
176 StHltTrack::setTrackNode(StHltTrackNode* val)
177 {
178  mTrackNode = val;
179 }
180 
181 
182 ostream&
183 operator<<(ostream &os, const StHltTrack& trk)
184 {
185  os << " primary key " << trk.id()<<" innerMostRow "<<trk.innerMostRow()
186  << " outerMostRow " << trk.outerMostRow()<<endl
187  << " nhits "<<trk.nHits() << " ndedx "<<trk.ndedx() << " q "<< trk.q()<<endl
188  << " chi2[0] "<<trk.chi2(0)<< " chi2[1] "<<trk.chi2(1)
189  << " dedx "<<trk.dedx()<<" pt "<<trk.pt()<<" phi0 "<<trk.phi0()
190  << " psi "<<trk.psi()<<" r0 "<<trk.r0()<<" tanl "<<trk.tanl()
191  << " z0 "<<trk.z0()<<" length "<<trk.length()<<" dpt "<<trk.dpt()
192  << " dz0 "<<trk.dz0()<<" dtanl "<<trk.dtanl()<<endl;
193  return os;
194 }
195 
196 
197 
198 
199 
200 
201 
202 
203 
float mZ0
z coordinate of point where parameters are given
Definition: StHltTrack.h:97
int mId
primary key
Definition: StHltTrack.h:83
float mR0
r (in cyl. coord.) for point where parameters are given
Definition: StHltTrack.h:95
float mPhi0
azimuthal angle of point where parameters are given
Definition: StHltTrack.h:93
char mQ
charge
Definition: StHltTrack.h:89
StTrackType mType
track Type
Definition: StHltTrack.h:82
float mPsi
azimuthal angle of the momentum at (r,...
Definition: StHltTrack.h:94
float mPt
pt at (r, phi,z)
Definition: StHltTrack.h:92
float mChi2[2]
chi squared of the momentum fit
Definition: StHltTrack.h:90
float mTanl
tg of the dip angle at (r,phi,z)
Definition: StHltTrack.h:96