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