BOSS
7.1.2
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
11
#include "
ExtEvent/RecExtTrack.h
"
12
13
RecExtTrack
&
RecExtTrack::operator=
(
const
DstExtTrack
& aTrack)
14
{
15
DstExtTrack::operator=(aTrack);
16
return
*
this
;
17
}
18
19
RecExtTrack::RecExtTrack
(
const
DstExtTrack
& aTrack)
20
:
DstExtTrack
(aTrack)
21
{
22
}
23
24
RecExtTrack::RecExtTrack
()
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
85
RecExtTrack::~RecExtTrack
(){}
86
87
/*
88
const int ExtTrack::GetTrackID() const {return myTrackID;}
89
90
//Tof layer1 data:
91
const Hep3Vector ExtTrack::GetTof1Position() const {return myTof1Position;}
92
93
const Hep3Vector ExtTrack::GetTof1Momentum() const {return myTof1Momentum;}
94
95
const string ExtTrack::GetTof1VolumeName() const {return myTof1VolumeName;}
96
97
const int ExtTrack::GetTof1VolumeNumber() const {return myTof1VolumeNumber;}
98
99
const double ExtTrack::GetTof1() const {return myTof1;}
100
101
const double ExtTrack::GetTof1Path() const {return myTof1Path;}
102
103
const double ExtTrack::GetTof1PosSigmaAlongZ() const {return myTof1PosSigmaAlongZ;}
104
105
const double ExtTrack::GetTof1PosSigmaAlongT() const {return myTof1PosSigmaAlongT;}
106
107
const double ExtTrack::GetTof1PosSigmaAlongX() const {return myTof1PosSigmaAlongX;}
108
109
const double ExtTrack::GetTof1PosSigmaAlongY() const {return myTof1PosSigmaAlongY;}
110
111
const HepSymMatrix ExtTrack::GetTof1ErrorMatrix() const {return myTof1ErrorMatrix;}
112
113
//Tof layer2 data:
114
const Hep3Vector ExtTrack::GetTof2Position() const {return myTof2Position;}
115
116
const Hep3Vector ExtTrack::GetTof2Momentum() const {return myTof2Momentum;}
117
118
const string ExtTrack::GetTof2VolumeName() const {return myTof2VolumeName;}
119
120
const int ExtTrack::GetTof2VolumeNumber() const {return myTof2VolumeNumber;}
121
122
const double ExtTrack::GetTof2() const {return myTof2;}
123
124
const double ExtTrack::GetTof2Path() const {return myTof2Path;}
125
126
const double ExtTrack::GetTof2PosSigmaAlongZ() const {return myTof2PosSigmaAlongZ;}
127
128
const double ExtTrack::GetTof2PosSigmaAlongT() const {return myTof2PosSigmaAlongT;}
129
130
const double ExtTrack::GetTof2PosSigmaAlongX() const {return myTof2PosSigmaAlongX;}
131
132
const double ExtTrack::GetTof2PosSigmaAlongY() const {return myTof2PosSigmaAlongY;}
133
134
const HepSymMatrix ExtTrack::GetTof2ErrorMatrix() const {return myTof2ErrorMatrix;}
135
136
//Emc data
137
const Hep3Vector ExtTrack::GetEmcPosition() const {return myEmcPosition;}
138
139
const Hep3Vector ExtTrack::GetEmcMomentum() const {return myEmcMomentum;}
140
141
const string ExtTrack::GetEmcVolumeName() const {return myEmcVolumeName;}
142
143
const int ExtTrack::GetEmcVolumeNumber() const {return myEmcVolumeNumber;}
144
145
const double ExtTrack::GetEmcPosSigmaAlongTheta() const {return myEmcPosSigmaAlongTheta;}
146
147
const double ExtTrack::GetEmcPosSigmaAlongPhi() const {return myEmcPosSigmaAlongPhi;}
148
149
const HepSymMatrix ExtTrack::GetEmcErrorMatrix() const {return myEmcErrorMatrix;}
150
151
//Muc data
152
const Hep3Vector ExtTrack::GetMucPosition() const {return myMucPosition;}
153
154
const Hep3Vector ExtTrack::GetMucMomentum() const {return myMucMomentum;}
155
156
const string ExtTrack::GetMucVolumeName() const {return myMucVolumeName;}
157
158
const int ExtTrack::GetMucVolumeNumber() const {return myMucVolumeNumber;}
159
160
const double ExtTrack::GetMucPosSigmaAlongZ() const {return myMucPosSigmaAlongZ;}
161
162
const double ExtTrack::GetMucPosSigmaAlongT() const {return myMucPosSigmaAlongT;}
163
164
const double ExtTrack::GetMucPosSigmaAlongX() const {return myMucPosSigmaAlongX;}
165
166
const double ExtTrack::GetMucPosSigmaAlongY() const {return myMucPosSigmaAlongY;}
167
168
const HepSymMatrix ExtTrack::GetMucErrorMatrix() const {return myMucErrorMatrix;}
169
170
171
172
//Set
173
void ExtTrack::SetTrackID(int aTrackID) {myTrackID = aTrackID;}
174
175
void 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
194
void 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
211
void 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
224
void 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
*/
ExtMucHitVec
vector< ExtMucHit > ExtMucHitVec
Definition
ExtMucHit.h:50
RecExtTrack.h
DstExtTrack
Definition
DstExtTrack.h:27
RecExtTrack
Definition
RecExtTrack.h:29
RecExtTrack::RecExtTrack
RecExtTrack()
Definition
RecExtTrack.cxx:24
RecExtTrack::~RecExtTrack
~RecExtTrack()
Definition
RecExtTrack.cxx:85
RecExtTrack::operator=
RecExtTrack & operator=(const DstExtTrack &aDstExtTrack)
Definition
RecExtTrack.cxx:13
7.1.2
Event
ExtEvent
ExtEvent-00-00-13
src
RecExtTrack.cxx
Generated by
1.12.0