BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
RecExtTrack.cxx
Go to the documentation of this file.
1//
2//File: ExtTrack.cxx
3//Author: L.L.Wang
4//
5//Description: Output of track extrapolation results.
6//
7//History: 2005.7.5 created by L.L.Wang
8//
9//
10
12
14{
15 DstExtTrack::operator=(aTrack);
16 return *this;
17}
18
20:DstExtTrack(aTrack)
21{
22}
23
25{/*
26 myTof1VolumeName="TOF1";
27 myTof2VolumeName="TOF2";
28 myEmcVolumeName="EMC";
29 myMucVolumeName="MUC";
30 Hep3Vector zeroVector(0.,0.,0.);
31 myTof1Position = zeroVector;
32 myTof1Momentum = zeroVector;
33 myTof2Position = zeroVector;
34 myTof2Momentum = zeroVector;
35 myEmcPosition = zeroVector;
36 myEmcMomentum = zeroVector;
37 myMucPosition = zeroVector;
38 myMucMomentum = zeroVector;
39
40 myTof1VolumeNumber=-1;
41 myTof2VolumeNumber=-1;
42 myEmcVolumeNumber=-1;
43 myMucVolumeNumber=-1;
44
45 myTof1=0.;
46 myTof1Path=0.;
47 myTof1PosSigmaAlongZ=0.;
48 myTof1PosSigmaAlongT=0.;
49 myTof1PosSigmaAlongX=0.;
50 myTof1PosSigmaAlongY=0.;
51 myTof2=0.;
52 myTof2Path=0.;
53 myTof2PosSigmaAlongZ=0.;
54 myTof2PosSigmaAlongT=0.;
55 myTof2PosSigmaAlongX=0.;
56 myTof2PosSigmaAlongY=0.;
57 myEmcPosSigmaAlongTheta=0.;
58 myEmcPosSigmaAlongPhi=0.;
59 myMucPosSigmaAlongZ=0.;
60 myMucPosSigmaAlongT=0.;
61 myMucPosSigmaAlongX=0.;
62 myMucPosSigmaAlongY=0.;
63
64 HepSymMatrix zeroMatrix(6,0);
65 myTof1ErrorMatrix=zeroMatrix;
66 myTof2ErrorMatrix=zeroMatrix;
67 myEmcErrorMatrix=zeroMatrix;
68 myMucErrorMatrix=zeroMatrix;
69
70 myEmcPath = 0;*/
71
72 //myPathInTof1 = 0.0;
73 //myPathInTof2 = 0.0;
74
75 vector<double> vd;
76 ExtMucHitVec muHitVec;
77 for(int i=0; i<5; i++)
78 {
79 myExtMucHitVec.push_back(muHitVec);
80 myPathInTof1.push_back(vd);
81 myPathInTof2.push_back(vd);
82 }
83}
84
86
87/*
88const int ExtTrack::GetTrackID() const {return myTrackID;}
89
90//Tof layer1 data:
91const Hep3Vector ExtTrack::GetTof1Position() const {return myTof1Position;}
92
93const Hep3Vector ExtTrack::GetTof1Momentum() const {return myTof1Momentum;}
94
95const string ExtTrack::GetTof1VolumeName() const {return myTof1VolumeName;}
96
97const int ExtTrack::GetTof1VolumeNumber() const {return myTof1VolumeNumber;}
98
99const double ExtTrack::GetTof1() const {return myTof1;}
100
101const double ExtTrack::GetTof1Path() const {return myTof1Path;}
102
103const double ExtTrack::GetTof1PosSigmaAlongZ() const {return myTof1PosSigmaAlongZ;}
104
105const double ExtTrack::GetTof1PosSigmaAlongT() const {return myTof1PosSigmaAlongT;}
106
107const double ExtTrack::GetTof1PosSigmaAlongX() const {return myTof1PosSigmaAlongX;}
108
109const double ExtTrack::GetTof1PosSigmaAlongY() const {return myTof1PosSigmaAlongY;}
110
111const HepSymMatrix ExtTrack::GetTof1ErrorMatrix() const {return myTof1ErrorMatrix;}
112
113//Tof layer2 data:
114const Hep3Vector ExtTrack::GetTof2Position() const {return myTof2Position;}
115
116const Hep3Vector ExtTrack::GetTof2Momentum() const {return myTof2Momentum;}
117
118const string ExtTrack::GetTof2VolumeName() const {return myTof2VolumeName;}
119
120const int ExtTrack::GetTof2VolumeNumber() const {return myTof2VolumeNumber;}
121
122const double ExtTrack::GetTof2() const {return myTof2;}
123
124const double ExtTrack::GetTof2Path() const {return myTof2Path;}
125
126const double ExtTrack::GetTof2PosSigmaAlongZ() const {return myTof2PosSigmaAlongZ;}
127
128const double ExtTrack::GetTof2PosSigmaAlongT() const {return myTof2PosSigmaAlongT;}
129
130const double ExtTrack::GetTof2PosSigmaAlongX() const {return myTof2PosSigmaAlongX;}
131
132const double ExtTrack::GetTof2PosSigmaAlongY() const {return myTof2PosSigmaAlongY;}
133
134const HepSymMatrix ExtTrack::GetTof2ErrorMatrix() const {return myTof2ErrorMatrix;}
135
136//Emc data
137const Hep3Vector ExtTrack::GetEmcPosition() const {return myEmcPosition;}
138
139const Hep3Vector ExtTrack::GetEmcMomentum() const {return myEmcMomentum;}
140
141const string ExtTrack::GetEmcVolumeName() const {return myEmcVolumeName;}
142
143const int ExtTrack::GetEmcVolumeNumber() const {return myEmcVolumeNumber;}
144
145const double ExtTrack::GetEmcPosSigmaAlongTheta() const {return myEmcPosSigmaAlongTheta;}
146
147const double ExtTrack::GetEmcPosSigmaAlongPhi() const {return myEmcPosSigmaAlongPhi;}
148
149const HepSymMatrix ExtTrack::GetEmcErrorMatrix() const {return myEmcErrorMatrix;}
150
151//Muc data
152const Hep3Vector ExtTrack::GetMucPosition() const {return myMucPosition;}
153
154const Hep3Vector ExtTrack::GetMucMomentum() const {return myMucMomentum;}
155
156const string ExtTrack::GetMucVolumeName() const {return myMucVolumeName;}
157
158const int ExtTrack::GetMucVolumeNumber() const {return myMucVolumeNumber;}
159
160const double ExtTrack::GetMucPosSigmaAlongZ() const {return myMucPosSigmaAlongZ;}
161
162const double ExtTrack::GetMucPosSigmaAlongT() const {return myMucPosSigmaAlongT;}
163
164const double ExtTrack::GetMucPosSigmaAlongX() const {return myMucPosSigmaAlongX;}
165
166const double ExtTrack::GetMucPosSigmaAlongY() const {return myMucPosSigmaAlongY;}
167
168const HepSymMatrix ExtTrack::GetMucErrorMatrix() const {return myMucErrorMatrix;}
169
170
171
172//Set
173void ExtTrack::SetTrackID(int aTrackID) {myTrackID = aTrackID;}
174
175void ExtTrack::SetTof1Data(Hep3Vector aPosition,Hep3Vector aMomentum,string aVolumeName,
176 int aVolumeNumber,double aTof,double aPath,HepSymMatrix aErrorMatrix,
177
178
179 double aZSigma,double aTSigma,double aXSigma,double aYSigma)
180{
181 myTof1Position = aPosition;
182 myTof1Momentum = aMomentum;
183 myTof1VolumeName = aVolumeName;
184 myTof1VolumeNumber = aVolumeNumber;
185 myTof1 = aTof;
186 myTof1Path = aPath;
187 myTof1PosSigmaAlongZ = aZSigma;
188 myTof1PosSigmaAlongT = aTSigma;
189 myTof1PosSigmaAlongX = aXSigma;
190 myTof1PosSigmaAlongY = aYSigma;
191 myTof1ErrorMatrix = aErrorMatrix;
192}
193
194void ExtTrack::SetTof2Data(Hep3Vector aPosition,Hep3Vector aMomentum,string aVolumeName,
195 int aVolumeNumber,double aTof,double aPath,HepSymMatrix aErrorMatrix,
196 double aZSigma,double aTSigma,double aXSigma,double aYSigma)
197{
198 myTof2Position = aPosition;
199 myTof2Momentum = aMomentum;
200 myTof2VolumeName = aVolumeName;
201 myTof2VolumeNumber = aVolumeNumber;
202 myTof2 = aTof;
203 myTof2Path = aPath;
204 myTof2PosSigmaAlongZ = aZSigma;
205 myTof2PosSigmaAlongT = aTSigma;
206 myTof2PosSigmaAlongX = aXSigma;
207 myTof2PosSigmaAlongY = aYSigma;
208 myTof2ErrorMatrix = aErrorMatrix;
209}
210
211void ExtTrack::SetEmcData(Hep3Vector aPosition,Hep3Vector aMomentum,string aVolumeName,
212 int aVolumeNumber,double aThetaSigma,double aPhiSigma,
213 HepSymMatrix aErrorMatrix)
214{
215 myEmcPosition = aPosition;
216 myEmcMomentum = aMomentum;
217 myEmcVolumeName = aVolumeName;
218 myEmcVolumeNumber = aVolumeNumber;
219 myEmcPosSigmaAlongTheta = aThetaSigma;
220 myEmcPosSigmaAlongPhi = aPhiSigma;
221 myEmcErrorMatrix = aErrorMatrix;
222}
223
224void ExtTrack::SetMucData(Hep3Vector aPosition,Hep3Vector aMomentum,string aVolumeName,
225 int aVolumeNumber,HepSymMatrix aErrorMatrix,double aZSigma,
226 double aTSigma,double aXSigma,double aYSigma)
227{
228 myMucPosition = aPosition;
229 myMucMomentum = aMomentum;
230 myMucVolumeName = aVolumeName;
231 myMucVolumeNumber = aVolumeNumber;
232 myMucPosSigmaAlongZ = aZSigma;
233 myMucPosSigmaAlongT = aTSigma;
234 myMucPosSigmaAlongX = aXSigma;
235 myMucPosSigmaAlongY = aYSigma;
236 myMucErrorMatrix = aErrorMatrix;
237}
238*/
vector< ExtMucHit > ExtMucHitVec
Definition: ExtMucHit.h:50
RecExtTrack & operator=(const DstExtTrack &aDstExtTrack)
Definition: RecExtTrack.cxx:13