BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DstTofTrack.cxx
Go to the documentation of this file.
1
#include "DstEvent/DstTofTrack.h"
2
#include "DstEvent/TofHitStatus.h"
3
/*
4
the following code maybe cause
5
DstEvent and RecEvent use each other
6
to avoid conflict, comment it
7
8
#include "TofRecEvent/RecBTofTrack.h"
9
#include "TofRecEvent/RecETofTrack.h"
10
11
class RecBTofTrack ;
12
class RecETofTrack ;
13
14
*/
15
16
DstTofTrack::DstTofTrack
() {
17
18
m_tofTrackID = -1;
19
m_trackID = -1;
20
m_tofID = -1;
21
m_status = -1;
22
m_path = 9999.0;
23
m_zrhit = 9999.0;
24
m_ph = 9999.0;
25
m_tof = 9999.0;
26
m_beta = 9999.0;
27
for
(
int
i = 0; i < 6; i++ )
28
{
29
m_toffset[i] = 9999.0;
30
m_sigma[i] = 9999.0;
31
}
32
m_quality = 10;
33
m_t0 = 0.0;
34
m_errt0 = 0.0;
35
36
m_errz = 9999.0;
37
m_phi = 9999.0;
38
m_errphi = 9999.0;
39
m_energy = 9999.0;
40
m_errenergy = 9999.0;
41
}
42
43
int
DstTofTrack::tofID
() {
44
if
( m_tofID < 0 )
return
m_tofID;
45
if
(
TofHitStatus::is_mrpc
( m_status ) ) {
return
static_cast<
int
>
( m_tofID / 12 ); }
46
else
{
return
m_tofID; }
47
return
-1;
48
}
49
50
int
DstTofTrack::strip
() {
51
if
( m_tofID < 0 )
return
-1;
52
if
(
TofHitStatus::is_mrpc
( m_status ) ) {
return
static_cast<
int
>
( m_tofID % 12 ); }
53
return
-1;
54
}
55
56
/*
57
DstTofTrack&
58
DstTofTrack::operator=(const RecBTofTrack& source){
59
60
m_tofTrackID = source.m_tofTrackID;
61
m_trackID = source.m_trackID;
62
m_tofID = source.m_tofID;
63
m_status = source.m_status;
64
m_path = source.m_path;
65
m_zrhit = source.m_zrhit;
66
m_ph = source.m_ph;
67
m_tof = source.m_tof;
68
m_beta = source.m_beta;
69
for( int i=0; i<6; i++ ) {
70
m_toffset[i] = source.m_toffset[i];
71
m_sigma[i] = source.m_sigma[i];
72
}
73
m_quality = source.m_quality;
74
m_t0 = source.m_t0;
75
m_errt0 = source.m_errt0;
76
77
m_errz = source.m_errz;
78
m_phi = source.m_phi;
79
m_errphi = source.m_errphi;
80
m_errenergy = source.m_errenergy;
81
82
return *this;
83
}
84
85
86
void
87
DstTofTrack::copy(const RecBTofTrack* orig) {
88
89
m_tofTrackID = orig->m_tofTrackID;
90
m_trackID = orig->m_trackID;
91
m_tofID = orig->m_tofID;
92
m_status = orig->m_status;
93
m_path = orig->m_path;
94
m_zrhit = orig->m_zrhit;
95
m_ph = orig->m_ph;
96
m_tof = orig->m_tof;
97
m_beta = orig->m_beta;
98
for( int i=0; i<6; i++ ) {
99
m_toffset[i] = orig->m_toffset[i];
100
m_sigma[i] = orig->m_sigma[i];
101
}
102
m_quality = orig->m_quality;
103
m_t0 = orig->m_t0;
104
m_errt0 = orig->m_errt0;
105
106
m_errz = orig->m_errz;
107
m_phi = orig->m_phi;
108
m_errphi = orig->m_errphi;
109
m_errenergy = orig->m_errenergy;
110
}
111
112
113
DstTofTrack::DstTofTrack(const RecBTofTrack& source) {
114
115
m_tofTrackID = source.m_tofTrackID;
116
m_trackID = source.m_trackID;
117
m_tofID = source.m_tofID;
118
m_status = source.m_status;
119
m_path = source.m_path;
120
m_zrhit = source.m_zrhit;
121
m_ph = source.m_ph;
122
m_tof = source.m_tof;
123
m_beta = source.m_beta;
124
for( int i=0; i<6; i++ ) {
125
m_toffset[i] = source.m_toffset[i];
126
m_sigma[i] = source.m_sigma[i];
127
}
128
m_quality = source.m_quality;
129
m_t0 = source.m_t0;
130
m_errt0 = source.m_errt0;
131
132
m_errz = source.m_errz;
133
m_phi = source.m_phi;
134
m_errphi = source.m_errphi;
135
m_errenergy = source.m_errenergy;
136
}
137
138
139
DstTofTrack&
140
DstTofTrack::operator=(const RecETofTrack& source){
141
142
m_tofTrackID = source.m_tofTrackID;
143
m_trackID = source.m_trackID;
144
m_tofID = source.m_tofID;
145
m_status = source.m_status;
146
m_path = source.m_path;
147
m_zrhit = source.m_zrhit;
148
m_ph = source.m_ph;
149
m_tof = source.m_tof;
150
m_beta = source.m_beta;
151
for( int i=0; i<6; i++ ) {
152
m_toffset[i] = source.m_toffset[i];
153
m_sigma[i] = source.m_sigma[i];
154
}
155
m_quality = source.m_quality;
156
m_t0 = source.m_t0;
157
m_errt0 = source.m_errt0;
158
159
m_errz = source.m_errz;
160
m_phi = source.m_phi;
161
m_errphi = source.m_errphi;
162
m_errenergy = source.m_errenergy;
163
164
return *this;
165
}
166
167
168
void
169
DstTofTrack::copy(const RecETofTrack* orig) {
170
171
m_tofTrackID = orig->m_tofTrackID;
172
m_trackID = orig->m_trackID;
173
m_tofID = orig->m_tofID;
174
m_status = orig->m_status;
175
m_path = orig->m_path;
176
m_zrhit = orig->m_zrhit;
177
m_ph = orig->m_ph;
178
m_tof = orig->m_tof;
179
m_beta = orig->m_beta;
180
for( int i=0; i<6; i++ ) {
181
m_toffset[i] = orig->m_toffset[i];
182
m_sigma[i] = orig->m_sigma[i];
183
}
184
m_quality = orig->m_quality;
185
m_t0 = orig->m_t0;
186
m_errt0 = orig->m_errt0;
187
188
m_errz = orig->m_errz;
189
m_phi = orig->m_phi;
190
m_errphi = orig->m_errphi;
191
m_errenergy = orig->m_errenergy;
192
}
193
194
195
DstTofTrack::DstTofTrack(const RecETofTrack& source) {
196
197
m_tofTrackID = source.m_tofTrackID;
198
m_trackID = source.m_trackID;
199
m_tofID = source.m_tofID;
200
m_status = source.m_status;
201
m_path = source.m_path;
202
m_zrhit = source.m_zrhit;
203
m_ph = source.m_ph;
204
m_tof = source.m_tof;
205
m_beta = source.m_beta;
206
for( int i=0; i<6; i++ ) {
207
m_toffset[i] = source.m_toffset[i];
208
m_sigma[i] = source.m_sigma[i];
209
}
210
m_quality = source.m_quality;
211
m_t0 = source.m_t0;
212
m_errt0 = source.m_errt0;
213
214
m_errz = source.m_errz;
215
m_phi = source.m_phi;
216
m_errphi = source.m_errphi;
217
m_errenergy = source.m_errenergy;
218
}
219
*/
DstTofTrack::strip
int strip()
Definition
DstTofTrack.cxx:50
DstTofTrack::tofID
int tofID()
Definition
DstTofTrack.cxx:43
DstTofTrack::DstTofTrack
DstTofTrack()
Definition
DstTofTrack.cxx:16
TofHitStatus::is_mrpc
bool is_mrpc() const
Definition
Event/DstEvent/include/DstEvent/TofHitStatus.h:34
8.0.0
BOSS_Source
Event
DstEvent
src
DstTofTrack.cxx
Generated by
1.16.1