BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Record Class Reference

#include <TofDataSet.h>

Public Member Functions

 Record ()
 
 ~Record ()
 
 Record (RecBTofCalHit *hit)
 
 Record (RecETofCalHit *hit)
 
 Record (const rootRecord &one)
 
void initial ()
 
bool cutBarrel ()
 
bool cutEndcap ()
 
bool cutEtf ()
 
int run () const
 
int event () const
 
int tofid () const
 
int strip () const
 
double qleft () const
 
double qright () const
 
double tleft () const
 
double tright () const
 
double zrhit () const
 
double dt () const
 
double texp () const
 
double path () const
 
double phi () const
 
double theta () const
 
double p () const
 
double t0 () const
 
double q0 () const
 
int hitcase () const
 
void settleft (double tleft)
 
void settright (double tright)
 
void setT0 (double t0)
 
void setQ0 (double q0)
 

Detailed Description

Definition at line 39 of file TofDataSet.h.

Constructor & Destructor Documentation

◆ Record() [1/4]

Record::Record ( )

Definition at line 4 of file TofDataSet.cxx.

4 {
5 initial();
6 return;
7}
void initial()

◆ ~Record()

Record::~Record ( )

Definition at line 10 of file TofDataSet.cxx.

10{}

◆ Record() [2/4]

Record::Record ( RecBTofCalHit * hit)

Definition at line 36 of file TofDataSet.cxx.

36 {
37 initial();
38 if( hit ) {
39 m_run = hit->run();
40 m_event = hit->event();
41 m_tofid = hit->mod();
42 m_strip = int( hit->sinTheta() );
43 m_qleft = hit->adc1();
44 m_qright = hit->adc2();
45 m_tleft = hit->tdc1();
46 m_tright = hit->tdc2();
47 m_zrhit = hit->zHit();
48 m_dt = ( hit->tdc2() - hit->tdc1() )/2.0;
49 m_texp = hit->tpred();
50 m_path = hit->path();
51 m_phi = hit->deltaPhi();
52 m_theta = hit->sinTheta();
53 m_p = hit->p();
54 m_hitcase = hit->qual();
55 }
56 return;
57}
double tpred() const
double p() const
double zHit() const
double tdc1() const
int event() const
int mod() const
double adc1() const
double deltaPhi() const
double tdc2() const
int qual() const
double adc2() const
int run() const
double sinTheta() const
double path() const

◆ Record() [3/4]

Record::Record ( RecETofCalHit * hit)

Definition at line 60 of file TofDataSet.cxx.

60 {
61 initial();
62 if( hit ) {
63 m_run = hit->run();
64 m_event = hit->event();
65 m_tofid = hit->mod();
66 m_qleft = hit->adc();
67 m_tleft = hit->tdc();
68 m_zrhit = hit->rHit();
69 m_texp = hit->tpred();
70 m_path = hit->path();
71 m_phi = hit->deltaPhi();
72 m_theta = hit->cosTheta();
73 m_p = hit->p();
74 m_hitcase = hit->qual();
75 }
76 return;
77}
double p() const
double tpred() const
double deltaPhi() const
int run() const
double path() const
double cosTheta() const
int mod() const
double adc() const
double tdc() const
double rHit() const
int event() const
int qual() const

◆ Record() [4/4]

Record::Record ( const rootRecord & one)

Definition at line 80 of file TofDataSet.cxx.

80 {
81 initial();
82 if( &one ) {
83 m_run = one.run;
84 m_event = one.event;
85 m_tofid = one.tofid;
86 m_strip = one.strip;
87 m_qleft = one.qleft;
88 m_tleft = one.tleft;
89 if( ( one.hitcase >= 0 && one.hitcase <=2 ) || ( one.hitcase==5 || one.hitcase==6 ) ) {
90 m_qright = one.qright;
91 m_tright = one.tright;
92 }
93 m_zrhit = one.zrhit;
94 m_dt = one.dt;
95 m_texp = one.texp;
96 m_path = one.path;
97 m_phi = one.phi;
98 m_theta = one.theta;
99 m_p = one.p;
100 m_hitcase = one.hitcase;
101 }
102 return;
103}
double precision pisqo6 one
Definition qlconstants.h:4

Member Function Documentation

◆ cutBarrel()

bool Record::cutBarrel ( )

Definition at line 3 of file cut.cxx.

3 {
4 if( m_run>0 ) {
5 if( m_texp<2.7 || m_texp>4.9 ) return false;
6 if( fabs(m_zrhit)>115.0 ) return false;
7
8 // 090308-090413 psip
9 if( m_run>=8107 && m_run<9671 ) {
10 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
11 if( m_qright<200.|| m_qright>20000. ) return false;
12 if( ( m_tofid != 141 ) && ( m_tleft<17.5 || m_tleft>39.0 ) ) return false;
13 if( m_tright<17.5 || m_tright>39.0 ) return false;
14 if( ( m_tofid != 141 ) && ( fabs(m_tleft-27.4+0.07*m_zrhit ) > 4.0 ) ) return false;
15 if( fabs(m_tright-27.6-0.07*m_zrhit) > 4.0 ) return false;
16 }
17
18 // 090528-090603 continue
19 else if( m_run>=9671 && m_run<9947 ) {
20 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
21 if( m_qright<200.|| m_qright>20000. ) return false;
22 if( ( m_tofid != 141 ) && ( m_tleft<13.5 || m_tleft>35.0 ) ) return false;
23 if( m_tright<13.5 || m_tright>35.0 ) return false;
24 if( ( m_tofid != 141 ) && ( fabs(m_tleft-23.7+0.07*m_zrhit ) > 4.0 ) ) return false;
25 if( fabs(m_tright-23.7-0.07*m_zrhit) > 4.0 ) return false;
26 }
27
28 // 090612-090727 jpsi
29 else if( m_run>=9947 && m_run<=10878 ) {
30 if( ( m_tofid != 141 ) && ( m_qleft<200.|| m_qleft>20000. ) ) return false;
31 if( m_qright<200.|| m_qright>20000. ) return false;
32 if( ( m_tofid != 141 ) && ( m_tleft<14.0 || m_tleft>35.0 ) ) return false;
33 if( m_tright<14.0 || m_tright>35.0 ) return false;
34 if( ( m_tofid != 141 ) && ( fabs(m_tleft-23.6+0.07*m_zrhit ) > 4.0 ) ) return false;
35 if( fabs(m_tright-23.6-0.07*m_zrhit) > 4.0 ) return false;
36 }
37
38 // 100116-100713 psipp
39 else if( m_run>=11397 && m_run<12002 ) {
40 if( m_qleft<200.|| m_qleft>20000. ) return false;
41 if( m_qright<200.|| m_qright>20000. ) return false;
42 if( m_tleft<13.5 || m_tleft>34.5 ) return false;
43 if( m_tright<13.5 || m_tright>34.5 ) return false;
44 if( fabs(m_tleft-23.5+0.07*m_zrhit ) > 4.0 ) return false;
45 if( fabs(m_tright-23.5-0.07*m_zrhit) > 4.0 ) return false;
46 }
47
48 // 110504-1106 psi(4040)
49 else if( m_run>=23463 && m_run<=24896 ) {
50 if( m_qleft<200.|| m_qleft>20000. ) return false;
51 if( m_qright<200.|| m_qright>20000. ) return false;
52 if( m_tleft<14.0 || m_tleft>35.0 ) return false;
53 if( m_tright<14.0 || m_tright>35.0 ) return false;
54 if( fabs(m_tleft-23.75+0.07*m_zrhit ) > 4.0 ) return false;
55 if( fabs(m_tright-23.75-0.07*m_zrhit) > 4.0 ) return false;
56 }
57
58 // 111221-120331 psip
59 else if( m_run>=24897 && m_run<=27101 ) {
60 if( m_qleft<200.|| m_qleft>20000. ) return false;
61 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
62 if( m_tleft<14.5 || m_tleft>35.5 ) return false;
63 if((m_tofid != 137 ) && ( m_tright<14.5 || m_tright>35.5 )) return false;
64 if( fabs(m_tleft-24.35+0.07*m_zrhit ) > 4.0 ) return false;
65 if(( m_tofid != 137 ) && (fabs(m_tright-24.35-0.07*m_zrhit) > 4.0 )) return false;
66 }
67
68 // 120407-120617 jpsi
69 else if( m_run>=27102 && m_run<=29675 ) {
70 if( m_qleft<200.|| m_qleft>20000. ) return false;
71 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
72 if( m_tleft<14.5 || m_tleft>35.5 ) return false;
73 if((m_tofid != 137 ) && ( m_tright<14.5 || m_tright>35.5 )) return false;
74 if( fabs(m_tleft-25.40+0.07*m_zrhit ) > 4.0 ) return false;
75 if(( m_tofid != 137 ) && (fabs(m_tright-25.40-0.07*m_zrhit) > 4.0 )) return false;
76 }
77
78 // 121215 - 130606 Y4260/4360
79 else if( m_run>=29676 && m_run<33996 ) {
80 if( m_qleft<200.|| m_qleft>20000. ) return false;
81 if((m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
82 if( m_tleft<11 || m_tleft>32.5 ) return false;
83 if((m_tofid != 137 ) && ( m_tright<11 || m_tright>32.5 )) return false;
84 if( fabs(m_tleft-21.00+0.07*m_zrhit ) > 4.0 ) return false;
85 if(( m_tofid != 137 ) && (fabs(m_tright-21.01-0.07*m_zrhit) > 4.0 )) return false;
86 }
87
88 // 131209 - 130529 R value scan
89 else if( m_run>=33997 && m_run<39355 ) {
90 if( m_qleft<200.|| m_qleft>20000. ) return false;
91 if((m_tofid != 8 && m_tofid != 137 ) && ( m_qright<200.|| m_qright>20000.) ) return false;
92 if( m_tleft<11 || m_tleft>32.5 ) return false;
93 if((m_tofid !=8 && m_tofid != 137 ) && ( m_tright<11 || m_tright>32.5 )) return false;
94 if( fabs(m_tleft-21.00+0.07*m_zrhit ) > 4.0 ) return false;
95 if((m_tofid !=8 && m_tofid != 137 ) && (fabs(m_tright-21.00-0.07*m_zrhit) > 4.0 )) return false;
96 }
97
98 // 141231 - 150202 R value scan
99 else if( m_run>=39355 && m_run<40208 ) {
100 if( m_qleft<200.|| m_qleft>20000. ) return false;
101 if( m_qright<200.|| m_qright>20000.) return false;
102 if( m_tleft<11 || m_tleft>32.5 ) return false;
103 if( m_tright<11 || m_tright>32.5 ) return false;
104 if( fabs(m_tleft-21.00+0.07*m_zrhit ) > 3.0 ) return false;
105 if( fabs(m_tright-21.00-0.07*m_zrhit) > 3.0 ) return false;
106 }
107
108 // 150202 - R value scan
109 else if( m_run>=40208 && m_run<43646 ) {
110 if( m_qleft<200.|| m_qleft>20000. ) return false;
111 if( m_qright<200.|| m_qright>20000.) return false;
112 if( m_tleft<11.5 || m_tleft>33.0 ) return false;
113 if( m_tright<11.5 || m_tright>33.0 ) return false;
114 if( fabs(m_tleft-21.50+0.07*m_zrhit ) > 3.0 ) return false;
115 if( fabs(m_tright-21.50-0.07*m_zrhit) > 3.0 ) return false;
116 }
117
118 // 160106 - 4170
119 else if( m_run>=43646 && m_run<47432 ) {
120 if( m_qleft<200.|| m_qleft>20000. ) return false;
121 if( m_qright<200.|| m_qright>20000.) return false;
122 if( m_tleft<9.0 || m_tleft>30.0 ) return false;
123 if( m_tright<9.0 || m_tright>30.0 ) return false;
124 if( fabs(m_tleft-18.90+0.07*m_zrhit ) > 3.5 ) return false;
125 if( fabs(m_tright-18.90-0.07*m_zrhit) > 3.5 ) return false;
126 }
127
128 // 161211 - XYZ
129 else if( m_run>=47432 && m_run<52940 ) {
130 if( m_qleft<200.|| m_qleft>20000. ) return false;
131 if( m_qright<200.|| m_qright>20000.) return false;
132 if( m_tleft<8.5 || m_tleft>29.5 ) return false;
133 if( m_tright<8.5 || m_tright>29.5 ) return false;
134 if( fabs(m_tleft-18.50+0.07*m_zrhit ) > 3.5 ) return false;
135 if( fabs(m_tright-18.50-0.07*m_zrhit) > 3.5 ) return false;
136 }
137 // 171208 - Jpsi
138 else if( m_run>=52940 && m_run<53500 ) {
139 if( m_qleft<200.|| m_qleft>20000. ) return false;
140 if( m_qright<200.|| m_qright>20000.) return false;
141 if( m_tleft<8.5 || m_tleft>29.5 ) return false;
142 if( m_tright<8.5 || m_tright>29.5 ) return false;
143 if( fabs(m_tleft-18.50+0.07*m_zrhit ) > 3.5 ) return false;
144 if( fabs(m_tright-18.50-0.07*m_zrhit) > 3.5 ) return false;
145 }
146 // 180202 - Jpsi
147 else if( m_run>=53500 && m_run<53586 ) {
148 if( m_qleft<200.|| m_qleft>20000. ) return false;
149 if( m_qright<200.|| m_qright>20000.) return false;
150 if( ( m_tofid>=9 && m_tofid<=12 ) || ( m_tofid>=97 && m_tofid<=100 ) ) {
151 if( m_tleft<-12.0 || m_tleft>9.0 ) return false;
152 if( m_tright<-12.0 || m_tright>9.0 ) return false;
153 if( fabs(m_tleft+2.7+0.07*m_zrhit ) > 3.5 ) return false;
154 if( fabs(m_tright+2.7-0.07*m_zrhit) > 3.5 ) return false;
155 }
156 else {
157 if( m_tleft<9.5 || m_tleft>31.0 ) return false;
158 if( m_tright<9.5 || m_tright>31.0 ) return false;
159 if( fabs(m_tleft-18.50+0.07*m_zrhit ) > 3.5 ) return false;
160 if( fabs(m_tright-18.50-0.07*m_zrhit) > 3.5 ) return false;
161 }
162 }
163 // 180207 - 180405 Jpsi
164 else if( m_run>=53586 && m_run<54780 ) {
165 if( m_qleft<200.|| m_qleft>20000. ) return false;
166 if( m_qright<200.|| m_qright>20000.) return false;
167 if( m_tleft<8.5 || m_tleft>31.0 ) return false;
168 if( m_tright<8.5 || m_tright>31.0 ) return false;
169 if( (m_tleft+0.07*m_zrhit)<15.0 || (m_tleft+0.07*m_zrhit)>24.0 ) return false;
170 if( (m_tright-0.07*m_zrhit)<15.0 || (m_tright-0.07*m_zrhit)>24.0 ) return false;
171 }
172 // 180405 Jpsi MDC t0 changed
173 else if( m_run>=54780 && m_run<55115 ) {
174 if( m_qleft<200.|| m_qleft>20000. ) return false;
175 if( m_qright<200.|| m_qright>20000.) return false;
176 if( m_tleft<9.4 || m_tleft>32.0 ) return false;
177 if( m_tright<9.4 || m_tright>32.0 ) return false;
178 if( (m_tleft+0.07*m_zrhit)<16.0 || (m_tleft+0.07*m_zrhit)>25.0 ) return false;
179 if( (m_tright-0.07*m_zrhit)<16.0 || (m_tright-0.07*m_zrhit)>25.0 ) return false;
180 }
181 // 180420 - Tau and psip scan
182 else if( m_run>=55115 && m_run<55861 ) {
183 if( m_qleft<200.|| m_qleft>20000. ) return false;
184 if( m_qright<200.|| m_qright>20000. ) return false;
185 if( m_tleft<9.0 || m_tleft>30.5 ) return false;
186 if( m_tright<9.0 || m_tright>30.5 ) return false;
187 if( fabs(m_tleft+0.07*m_zrhit-19.0 ) > 3.5 ) return false;
188 if( fabs(m_tright-0.07*m_zrhit-19.0) > 3.5 ) return false;
189 }
190 // 180526 - Jpsi
191 else if( m_run>=55861 && m_run<56769 ) {
192 if( m_qleft<200.|| m_qleft>20000. ) return false;
193 if( m_qright<200.|| m_qright>20000. ) return false;
194 if( m_tleft<10.0 || m_tleft>31.0 ) return false;
195 if( m_tright<10.0 || m_tright>31.0 ) return false;
196 if( fabs(m_tleft+0.07*m_zrhit-20.0 ) > 3.5 ) return false;
197 if( fabs(m_tright-0.07*m_zrhit-20.0) > 3.5 ) return false;
198 }
199 // 181118 - Jpsi
200 else if( m_run>=56769 && m_run<1000000 ) {
201 if( m_qleft<200.|| m_qleft>20000. ) return false;
202 if( m_qright<200.|| m_qright>20000. ) return false;
203 if( m_tleft<10.5 || m_tleft>31.5 ) return false;
204 if( m_tright<10.5 || m_tright>31.5 ) return false;
205 if( fabs(m_tleft+0.07*m_zrhit-20.0 ) > 3.5 ) return false;
206 if( fabs(m_tright-0.07*m_zrhit-20.0) > 3.5 ) return false;
207 }
208
209 }
210 else {
211 if( m_texp<2.7 || m_texp>4.9 ) return false;
212 if( m_tleft<15. || m_tleft>33.5 ) return false;
213 if( m_tright<15. || m_tright>33.5 ) return false;
214 if( m_qleft<200. || m_qleft>20000. ) return false;
215 if( m_qright<200.|| m_qright>20000.) return false;
216 if( fabs(m_zrhit)>115.0 ) return false;
217 }
218
219 return true;
220}

Referenced by TofDataSet::setBarrelData(), and TofDataSet::setData().

◆ cutEndcap()

bool Record::cutEndcap ( )

Definition at line 223 of file cut.cxx.

223 {
224 if( m_run>0 ) {
225 if( m_texp<4.6 || m_texp>5.4 ) return false;
226 if( m_qleft<50.|| m_qleft>20000.) return false;
227 // if( m_path<130. || m_path>170.) return false;
228 if( m_zrhit<50. || m_zrhit>83.) return false;
229
230 // 090308-090413 psip
231 if( m_run>=8107 && m_run<9671 ) {
232 if( m_tleft<24.0 || m_tleft>32.0 ) return false;
233 if( fabs(m_tleft-21.4-0.1*m_zrhit)>4.0 ) return false;
234 }
235
236 // 090528-090603 continue
237 else if( m_run>=9671 && m_run<9947 ) {
238 if( m_tleft<20.0 || m_tleft>28.0 ) return false;
239 if( fabs(m_tleft-17.3-0.1*m_zrhit)>4.0 ) return false;
240 }
241
242 // 090612-090727 jpsi
243 else if( m_run>=9947 && m_run<=10878 ) {
244 if( m_tleft<20.5 || m_tleft>28.5 ) return false;
245 if( fabs(m_tleft-17.6-0.1*m_zrhit)>4.0 ) return false;
246 }
247
248 // 100116-10713 psipp
249 else if( m_run>=11397 && m_run<12002 ) {
250 if( m_tleft<20.5 || m_tleft>28.5 ) return false;
251 if( fabs(m_tleft-17.8-0.1*m_zrhit)>4.0 ) return false;
252 }
253
254 // 110504-11060 psi(4040)
255 else if( m_run>=23463 && m_run<=24896 ) {
256 if( m_tleft<20.5 || m_tleft>28.5 ) return false;
257 if( fabs(m_tleft-18.0-0.1*m_zrhit)>4.0 ) return false;
258 }
259
260 // 111221-120331 psip
261 else if( m_run>=24897 && m_run<=27101 ) {
262 if( m_tleft<21.0 || m_tleft>30.0 ) return false;
263 if( fabs(m_tleft-18.60-0.1*m_zrhit)>4.0 ) return false;
264 }
265
266 // 120407-120617 jpsi
267 else if( m_run>=27102 && m_run<=29675 ) {
268 if( m_tleft<22.0 || m_tleft>30.0 ) return false;
269 if( fabs(m_tleft-20.17-0.1*m_zrhit)>4.0 ) return false;
270 }
271
272 // 121215 - 130606 pisp4260
273 else if( m_run>=29676 && m_run<33996 ) {
274 if( m_tleft<18.0 || m_tleft>27.0 ) return false;
275 if( fabs(m_tleft-15.63-0.1*m_zrhit)>4.0 ) return false;
276 }
277
278 // 131209-130529 R value scan
279 else if( m_run>=33997 && m_run<39355 ) {
280 if( m_tleft<17.5 || m_tleft>26.5 ) return false;
281 if( fabs(m_tleft-15.44-0.1*m_zrhit)>4.0 ) return false;
282 }
283
284 // 141231-150203 R value scan
285 else if( m_run>=39355 && m_run<40208 ) {
286 if( m_tleft<18.0 || m_tleft>27.0 ) return false;
287 if( fabs(m_tleft-15.8-0.1*m_zrhit)>3.0 ) return false;
288 }
289
290 // 150202- R value scan
291 else if( m_run>=40208 && m_run<1000000 ) {
292 if( m_tleft<18.5 || m_tleft>27.5 ) return false;
293 if( fabs(m_tleft-16.5-0.1*m_zrhit)>3.0 ) return false;
294 }
295
296 }
297 else {
298 if( m_tleft<16.|| m_tleft>22. ) return false;
299 if( m_texp<4.5 || m_texp>5.4 ) return false;
300 if( m_qleft<200.|| m_qleft>20000.) return false;
301 if( m_path<120. || m_path>180.) return false;
302 if( m_zrhit<50. || m_zrhit>83.) return false;
303 }
304 return true;
305}

Referenced by TofDataSet::setData(), and TofDataSet::setEndcapData().

◆ cutEtf()

bool Record::cutEtf ( )

Definition at line 308 of file cut.cxx.

308 {
309 if( m_run>0 ) {
310 if( m_texp<4.5 || m_texp>5.6 ) return false;
311 if( fabs(m_zrhit)>7.8 ) return false;
312 // dead channels
313 bool rightDead = ( ( m_tofid==3 && ( m_strip==1 || m_strip==3 || ( m_strip>=5 && m_strip<=11 ) ) ) || ( m_tofid==13 && m_strip==7 ) );
314 bool leftDead = ( m_tofid==34 && ( m_strip>=0 && m_strip<=5 ) );
315 bool leftSpecial = ( m_tofid==13 && m_strip==5 );
316
317 // 150202 - R value scan
318 if( m_run>=40208 && m_run<43646 ) {
319 if( m_qleft<5.|| m_qleft>60. ) return false;
320 if( m_qright<5.|| m_qright>60.) return false;
321 if( m_tleft<21.5 || m_tleft>27.5 ) return false;
322 if( m_tright<21.5 || m_tright>27.5 ) return false;
323 }
324 // 160106 - 160108 4170
325 else if( m_run>=43646 && m_run<43682 ) {
326 if( m_qleft<5.|| m_qleft>60. ) return false;
327 if( m_qright<5.|| m_qright>60.) return false;
328 if( m_tleft<9.5 || m_tleft>15.5 ) return false;
329 if( m_tright<9.5 || m_tright>15.5 ) return false;
330 }
331 // 160108 4170
332 else if( m_run>=43682 && m_run<43809 ) {
333 if( m_qleft<5.|| m_qleft>60. ) return false;
334 if( m_qright<5.|| m_qright>60.) return false;
335 if( m_tleft<-254.5 || m_tleft>-248.5 ) return false;
336 if( m_tright<-254.5 || m_tright>-248.5 ) return false;
337 }
338 // 160114 4170
339 else if( m_run>=43809 && m_run<43810 ) {
340 if( m_qleft<5.|| m_qleft>60. ) return false;
341 if( m_qright<5.|| m_qright>60.) return false;
342 if( m_tleft<-14.5 || m_tleft>-8.5 ) return false;
343 if( m_tright<-14.5 || m_tright>-8.5 ) return false;
344 }
345 // 160114 4170
346 else if( m_run>=43810 && m_run<43879 ) {
347 if( m_qleft<5.|| m_qleft>60. ) return false;
348 if( m_qright<5.|| m_qright>60.) return false;
349 if( m_tleft<33.5 || m_tleft>39.5 ) return false;
350 if( m_tright<33.5 || m_tright>39.5 ) return false;
351 }
352 // 160116 4170
353 else if( m_run>=43879 && m_run<47432 ) {
354 if( m_qleft<5.|| m_qleft>60. ) return false;
355 if( m_qright<5.|| m_qright>60.) return false;
356 if( m_tleft<9.5 || m_tleft>15.5 ) return false;
357 if( m_tright<9.5 || m_tright>15.5 ) return false;
358 }
359 // 161211 XYZ
360 else if( m_run>=47432 && m_run<52940 ) {
361 if( m_qleft<5.|| m_qleft>60. ) return false;
362 if( m_qright<5.|| m_qright>60.) return false;
363 if( m_tleft<9.5 || m_tleft>15.5 ) return false;
364 if( m_tright<9.5 || m_tright>15.5 ) return false;
365 }
366 // 171208 - 180405 Jpsi also add dead channel
367 else if( m_run>=52940 && m_run<54780 ) {
368 if( !leftDead && ( m_qleft<5.|| m_qleft>60. ) ) return false;
369 if( !rightDead && ( m_qright<5.|| m_qright>60.) ) return false;
370 if( !leftDead && ( m_tleft<9.5 || m_tleft>15.5 ) ) return false;
371 if( !rightDead && ( m_tright<9.5 || m_tright>15.5 ) ) return false;
372 }
373 // 180405 Jpsi MDC t0 changed
374 else if( m_run>=54780 && m_run<55115 ) {
375 if( !leftDead && ( m_qleft<5.|| m_qleft>60. ) ) return false;
376 if( !rightDead && ( m_qright<5.|| m_qright>60.) ) return false;
377 if( !leftDead && ( m_tleft<9.5 || m_tleft>15.5 ) ) return false;
378 if( !rightDead && ( m_tright<9.5 || m_tright>15.5 ) ) return false;
379 }
380 // 180420 - Tau and psip scan
381 else if( m_run>=55115 && m_run<55861 ) {
382 if( !leftDead && ( m_qleft<5.|| m_qleft>60. ) ) return false;
383 if( !rightDead && ( m_qright<5.|| m_qright>60.) ) return false;
384 if( !leftDead && ( m_tleft<10.0 || m_tleft>16.0 ) ) return false;
385 if( !rightDead && ( m_tright<10.0 || m_tright>16.0 ) ) return false;
386 }
387 // 180526 - Tau and psip scan
388 else if( m_run>=55861 && m_run<56769 ) {
389 if( !leftDead && ( m_qleft<5.|| m_qleft>60. ) ) return false;
390 if( !rightDead && ( m_qright<5.|| m_qright>60.) ) return false;
391 if( !leftDead && ( m_tleft<11.0 || m_tleft>17.0 ) ) return false;
392 if( !rightDead && ( m_tright<11.0 || m_tright>17.0 ) ) return false;
393 }
394 // 181118 - 190108 Jpsi
395 else if( m_run>=56769 && m_run<58239 ) {
396 if( !leftDead && ( m_qleft<5.|| m_qleft>60. ) ) return false;
397 if( !rightDead && ( m_qright<5.|| m_qright>60.) ) return false;
398 if( !leftDead && ( m_tleft<11.0 || m_tleft>18.0 ) ) return false;
399 if( !rightDead && ( m_tright<11.0 || m_tright>18.0 ) ) return false;
400 }
401 // 190109 Jpsi
402 else if( m_run>=58239 && m_run<1000000 ) {
403 if( !leftDead && ( m_qleft<5.|| m_qleft>60. ) ) return false;
404 if( !rightDead && ( m_qright<5.|| m_qright>60.) ) return false;
405 if( !leftDead && ( m_tleft<11.0 || m_tleft>17.5 ) ) return false;
406 if( !rightDead && ( m_tright<11.0 || m_tright>17.5 ) ) return false;
407 }
408
409 }
410 else {
411 if( m_texp<4.5 || m_texp>5.6 ) return false;
412 if( fabs(m_zrhit)>7.8 ) return false;
413 if( m_qleft<5.|| m_qleft>20. ) return false;
414 if( m_qright<5.|| m_qright>20.) return false;
415 if( m_tleft<4.5 || m_tleft>7.5 ) return false;
416 if( m_tright<4.5 || m_tright>7.5 ) return false;
417 }
418
419 return true;
420}

Referenced by TofDataSet::setData(), and TofDataSet::setEtfData().

◆ dt()

double Record::dt ( ) const
inline

Definition at line 62 of file TofDataSet.h.

62{ return m_dt; }

◆ event()

int Record::event ( ) const
inline

Definition at line 54 of file TofDataSet.h.

54{ return m_event; }

◆ hitcase()

int Record::hitcase ( ) const
inline

Definition at line 70 of file TofDataSet.h.

70{ return m_hitcase; }

◆ initial()

void Record::initial ( )

Definition at line 13 of file TofDataSet.cxx.

13 {
14 m_run = 0;
15 m_event = -1;
16 m_tofid = -1;
17 m_strip = -1;
18 m_qleft = -99.0;
19 m_qright = -99.0;
20 m_tleft = -99.0;
21 m_tright = -99.0;
22 m_zrhit = -999.0;
23 m_dt = -999.0;
24 m_texp = -99.0;
25 m_path = -99.0;
26 m_phi = -99.0;
27 m_theta = -99.0;
28 m_p = -9.0;
29 m_t0 = -99.0;
30 m_q0 = -99.0;
31 m_hitcase = -1;
32 return;
33}

Referenced by Record(), Record(), Record(), and Record().

◆ p()

double Record::p ( ) const
inline

Definition at line 67 of file TofDataSet.h.

67{ return m_p; }

◆ path()

double Record::path ( ) const
inline

Definition at line 64 of file TofDataSet.h.

64{ return m_path; }

◆ phi()

double Record::phi ( ) const
inline

Definition at line 65 of file TofDataSet.h.

65{ return m_phi; }

Referenced by calib_barrel_left_offset1_bunch0_3::calculate_funcs(), calib_barrel_left_offset1_bunch0_4::calculate_funcs(), calib_barrel_left_offset1_bunch1_3::calculate_funcs(), calib_barrel_left_offset1_bunch1_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_3::calculate_funcs(), calib_barrel_left_offset1_bunch2_4::calculate_funcs(), calib_barrel_left_offset1_bunch3_4::calculate_funcs(), calib_barrel_left_offset2_bunch0_3::calculate_funcs(), calib_barrel_left_offset2_bunch0_4::calculate_funcs(), calib_barrel_left_offset2_bunch1_3::calculate_funcs(), calib_barrel_left_offset2_bunch1_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_3::calculate_funcs(), calib_barrel_left_offset2_bunch2_4::calculate_funcs(), calib_barrel_left_offset2_bunch3_4::calculate_funcs(), calib_barrel_right_offset1_bunch0_3::calculate_funcs(), calib_barrel_right_offset1_bunch0_4::calculate_funcs(), calib_barrel_right_offset1_bunch1_3::calculate_funcs(), calib_barrel_right_offset1_bunch1_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_3::calculate_funcs(), calib_barrel_right_offset1_bunch2_4::calculate_funcs(), calib_barrel_right_offset1_bunch3_4::calculate_funcs(), calib_barrel_right_offset2_bunch0_3::calculate_funcs(), calib_barrel_right_offset2_bunch0_4::calculate_funcs(), calib_barrel_right_offset2_bunch1_3::calculate_funcs(), calib_barrel_right_offset2_bunch1_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_3::calculate_funcs(), calib_barrel_right_offset2_bunch2_4::calculate_funcs(), calib_barrel_right_offset2_bunch3_4::calculate_funcs(), calib_barrel_left_offset1_bunch0_3::calculate_y(), calib_barrel_left_offset1_bunch0_4::calculate_y(), calib_barrel_left_offset1_bunch1_3::calculate_y(), calib_barrel_left_offset1_bunch1_4::calculate_y(), calib_barrel_left_offset1_bunch2_3::calculate_y(), calib_barrel_left_offset1_bunch2_4::calculate_y(), calib_barrel_left_offset1_bunch3_4::calculate_y(), calib_barrel_left_offset2_bunch0_3::calculate_y(), calib_barrel_left_offset2_bunch0_4::calculate_y(), calib_barrel_left_offset2_bunch1_3::calculate_y(), calib_barrel_left_offset2_bunch1_4::calculate_y(), calib_barrel_left_offset2_bunch2_3::calculate_y(), calib_barrel_left_offset2_bunch2_4::calculate_y(), calib_barrel_left_offset2_bunch3_4::calculate_y(), calib_barrel_right_offset1_bunch0_3::calculate_y(), calib_barrel_right_offset1_bunch0_4::calculate_y(), calib_barrel_right_offset1_bunch1_3::calculate_y(), calib_barrel_right_offset1_bunch1_4::calculate_y(), calib_barrel_right_offset1_bunch2_3::calculate_y(), calib_barrel_right_offset1_bunch2_4::calculate_y(), calib_barrel_right_offset1_bunch3_4::calculate_y(), calib_barrel_right_offset2_bunch0_3::calculate_y(), calib_barrel_right_offset2_bunch0_4::calculate_y(), calib_barrel_right_offset2_bunch1_3::calculate_y(), calib_barrel_right_offset2_bunch1_4::calculate_y(), calib_barrel_right_offset2_bunch2_3::calculate_y(), calib_barrel_right_offset2_bunch2_4::calculate_y(), and calib_barrel_right_offset2_bunch3_4::calculate_y().

◆ q0()

double Record::q0 ( ) const
inline

Definition at line 69 of file TofDataSet.h.

69{ return m_q0; }

Referenced by setQ0().

◆ qleft()

◆ qright()

◆ run()

int Record::run ( ) const
inline

Definition at line 53 of file TofDataSet.h.

53{ return m_run; }

Referenced by calib_barrel_left_offset1_bunch0_3::calculate_funcs(), calib_barrel_left_offset1_bunch0_4::calculate_funcs(), calib_barrel_left_offset1_bunch1_3::calculate_funcs(), calib_barrel_left_offset1_bunch1_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_3::calculate_funcs(), calib_barrel_left_offset1_bunch2_4::calculate_funcs(), calib_barrel_left_offset1_bunch3_4::calculate_funcs(), calib_barrel_left_offset2_bunch0_3::calculate_funcs(), calib_barrel_left_offset2_bunch0_4::calculate_funcs(), calib_barrel_left_offset2_bunch1_3::calculate_funcs(), calib_barrel_left_offset2_bunch1_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_3::calculate_funcs(), calib_barrel_left_offset2_bunch2_4::calculate_funcs(), calib_barrel_left_offset2_bunch3_4::calculate_funcs(), calib_barrel_right_offset1_bunch0_3::calculate_funcs(), calib_barrel_right_offset1_bunch0_4::calculate_funcs(), calib_barrel_right_offset1_bunch1_3::calculate_funcs(), calib_barrel_right_offset1_bunch1_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_3::calculate_funcs(), calib_barrel_right_offset1_bunch2_4::calculate_funcs(), calib_barrel_right_offset1_bunch3_4::calculate_funcs(), calib_barrel_right_offset2_bunch0_3::calculate_funcs(), calib_barrel_right_offset2_bunch0_4::calculate_funcs(), calib_barrel_right_offset2_bunch1_3::calculate_funcs(), calib_barrel_right_offset2_bunch1_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_3::calculate_funcs(), calib_barrel_right_offset2_bunch2_4::calculate_funcs(), calib_barrel_right_offset2_bunch3_4::calculate_funcs(), calib_barrel_left_offset1_bunch0_3::calculate_y(), calib_barrel_left_offset1_bunch0_4::calculate_y(), calib_barrel_left_offset1_bunch1_3::calculate_y(), calib_barrel_left_offset1_bunch1_4::calculate_y(), calib_barrel_left_offset1_bunch2_3::calculate_y(), calib_barrel_left_offset1_bunch2_4::calculate_y(), calib_barrel_left_offset1_bunch3_4::calculate_y(), calib_barrel_left_offset2_bunch0_3::calculate_y(), calib_barrel_left_offset2_bunch0_4::calculate_y(), calib_barrel_left_offset2_bunch1_3::calculate_y(), calib_barrel_left_offset2_bunch1_4::calculate_y(), calib_barrel_left_offset2_bunch2_3::calculate_y(), calib_barrel_left_offset2_bunch2_4::calculate_y(), calib_barrel_left_offset2_bunch3_4::calculate_y(), calib_barrel_right_offset1_bunch0_3::calculate_y(), calib_barrel_right_offset1_bunch0_4::calculate_y(), calib_barrel_right_offset1_bunch1_3::calculate_y(), calib_barrel_right_offset1_bunch1_4::calculate_y(), calib_barrel_right_offset1_bunch2_3::calculate_y(), calib_barrel_right_offset1_bunch2_4::calculate_y(), calib_barrel_right_offset1_bunch3_4::calculate_y(), calib_barrel_right_offset2_bunch0_3::calculate_y(), calib_barrel_right_offset2_bunch0_4::calculate_y(), calib_barrel_right_offset2_bunch1_3::calculate_y(), calib_barrel_right_offset2_bunch1_4::calculate_y(), calib_barrel_right_offset2_bunch2_3::calculate_y(), calib_barrel_right_offset2_bunch2_4::calculate_y(), and calib_barrel_right_offset2_bunch3_4::calculate_y().

◆ setQ0()

void Record::setQ0 ( double q0)
inline

Definition at line 76 of file TofDataSet.h.

76{ m_q0 = q0; }
double q0() const
Definition TofDataSet.h:69

◆ setT0()

void Record::setT0 ( double t0)
inline

Definition at line 75 of file TofDataSet.h.

75{ m_t0 = t0; }
double t0() const
Definition TofDataSet.h:68

◆ settleft()

void Record::settleft ( double tleft)
inline

Definition at line 73 of file TofDataSet.h.

73{ m_tleft = tleft; }
double tleft() const
Definition TofDataSet.h:59

◆ settright()

void Record::settright ( double tright)
inline

Definition at line 74 of file TofDataSet.h.

74{ m_tright = tright; }
double tright() const
Definition TofDataSet.h:60

◆ strip()

int Record::strip ( ) const
inline

Definition at line 56 of file TofDataSet.h.

56{ return m_strip; }

◆ t0()

double Record::t0 ( ) const
inline

Definition at line 68 of file TofDataSet.h.

68{ return m_t0; }

Referenced by setT0().

◆ texp()

◆ theta()

double Record::theta ( ) const
inline

Definition at line 66 of file TofDataSet.h.

66{ return m_theta; }

◆ tleft()

double Record::tleft ( ) const
inline

Definition at line 59 of file TofDataSet.h.

59{ return m_tleft; }

Referenced by calib_barrel_left_offset1_bunch0_3::calculate_funcs(), calib_barrel_left_offset1_bunch0_4::calculate_funcs(), calib_barrel_left_offset1_bunch1_3::calculate_funcs(), calib_barrel_left_offset1_bunch1_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_3::calculate_funcs(), calib_barrel_left_offset1_bunch2_4::calculate_funcs(), calib_barrel_left_offset1_bunch3_4::calculate_funcs(), calib_barrel_left_offset2_bunch0_3::calculate_funcs(), calib_barrel_left_offset2_bunch0_4::calculate_funcs(), calib_barrel_left_offset2_bunch1_3::calculate_funcs(), calib_barrel_left_offset2_bunch1_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_3::calculate_funcs(), calib_barrel_left_offset2_bunch2_4::calculate_funcs(), calib_barrel_left_offset2_bunch3_4::calculate_funcs(), calib_etf_weight::calculate_funcs(), calib_barrel_left::calculate_y(), calib_barrel_left_offset1_bunch0_3::calculate_y(), calib_barrel_left_offset1_bunch0_4::calculate_y(), calib_barrel_left_offset1_bunch1_3::calculate_y(), calib_barrel_left_offset1_bunch1_4::calculate_y(), calib_barrel_left_offset1_bunch2_3::calculate_y(), calib_barrel_left_offset1_bunch2_4::calculate_y(), calib_barrel_left_offset1_bunch3_4::calculate_y(), calib_barrel_left_offset2_bunch0_3::calculate_y(), calib_barrel_left_offset2_bunch0_4::calculate_y(), calib_barrel_left_offset2_bunch1_3::calculate_y(), calib_barrel_left_offset2_bunch1_4::calculate_y(), calib_barrel_left_offset2_bunch2_3::calculate_y(), calib_barrel_left_offset2_bunch2_4::calculate_y(), calib_barrel_left_offset2_bunch3_4::calculate_y(), calib_barrel_veff::calculate_y(), calib_endcap_left::calculate_y(), calib_endcap_veff::calculate_y(), calib_etf_combine::calculate_y(), calib_etf_left::calculate_y(), calib_etf_veff::calculate_y(), calib_mc_etf_combine::calculate_y(), calib_mc_etf_left::calculate_y(), and settleft().

◆ tofid()

int Record::tofid ( ) const
inline

Definition at line 55 of file TofDataSet.h.

55{ return m_tofid; }

◆ tright()

double Record::tright ( ) const
inline

Definition at line 60 of file TofDataSet.h.

60{ return m_tright; }

Referenced by calib_barrel_right_offset1_bunch0_3::calculate_funcs(), calib_barrel_right_offset1_bunch0_4::calculate_funcs(), calib_barrel_right_offset1_bunch1_3::calculate_funcs(), calib_barrel_right_offset1_bunch1_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_3::calculate_funcs(), calib_barrel_right_offset1_bunch2_4::calculate_funcs(), calib_barrel_right_offset1_bunch3_4::calculate_funcs(), calib_barrel_right_offset2_bunch0_3::calculate_funcs(), calib_barrel_right_offset2_bunch0_4::calculate_funcs(), calib_barrel_right_offset2_bunch1_3::calculate_funcs(), calib_barrel_right_offset2_bunch1_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_3::calculate_funcs(), calib_barrel_right_offset2_bunch2_4::calculate_funcs(), calib_barrel_right_offset2_bunch3_4::calculate_funcs(), calib_etf_weight::calculate_funcs(), calib_barrel_right::calculate_y(), calib_barrel_right_offset1_bunch0_3::calculate_y(), calib_barrel_right_offset1_bunch0_4::calculate_y(), calib_barrel_right_offset1_bunch1_3::calculate_y(), calib_barrel_right_offset1_bunch1_4::calculate_y(), calib_barrel_right_offset1_bunch2_3::calculate_y(), calib_barrel_right_offset1_bunch2_4::calculate_y(), calib_barrel_right_offset1_bunch3_4::calculate_y(), calib_barrel_right_offset2_bunch0_3::calculate_y(), calib_barrel_right_offset2_bunch0_4::calculate_y(), calib_barrel_right_offset2_bunch1_3::calculate_y(), calib_barrel_right_offset2_bunch1_4::calculate_y(), calib_barrel_right_offset2_bunch2_3::calculate_y(), calib_barrel_right_offset2_bunch2_4::calculate_y(), calib_barrel_right_offset2_bunch3_4::calculate_y(), calib_barrel_veff::calculate_y(), calib_etf_combine::calculate_y(), calib_etf_right::calculate_y(), calib_etf_veff::calculate_y(), calib_etf_weight::calculate_y(), calib_mc_etf_combine::calculate_y(), calib_mc_etf_right::calculate_y(), and settright().

◆ zrhit()

double Record::zrhit ( ) const
inline

Definition at line 61 of file TofDataSet.h.

61{ return m_zrhit; }

Referenced by calib_barrel_atten::calculate_funcs(), calib_barrel_left::calculate_funcs(), calib_barrel_left_offset1_bunch0_3::calculate_funcs(), calib_barrel_left_offset1_bunch0_4::calculate_funcs(), calib_barrel_left_offset1_bunch1_3::calculate_funcs(), calib_barrel_left_offset1_bunch1_4::calculate_funcs(), calib_barrel_left_offset1_bunch2_3::calculate_funcs(), calib_barrel_left_offset1_bunch2_4::calculate_funcs(), calib_barrel_left_offset1_bunch3_4::calculate_funcs(), calib_barrel_left_offset2_bunch0_3::calculate_funcs(), calib_barrel_left_offset2_bunch0_4::calculate_funcs(), calib_barrel_left_offset2_bunch1_3::calculate_funcs(), calib_barrel_left_offset2_bunch1_4::calculate_funcs(), calib_barrel_left_offset2_bunch2_3::calculate_funcs(), calib_barrel_left_offset2_bunch2_4::calculate_funcs(), calib_barrel_left_offset2_bunch3_4::calculate_funcs(), calib_barrel_right::calculate_funcs(), calib_barrel_right_offset1_bunch0_3::calculate_funcs(), calib_barrel_right_offset1_bunch0_4::calculate_funcs(), calib_barrel_right_offset1_bunch1_3::calculate_funcs(), calib_barrel_right_offset1_bunch1_4::calculate_funcs(), calib_barrel_right_offset1_bunch2_3::calculate_funcs(), calib_barrel_right_offset1_bunch2_4::calculate_funcs(), calib_barrel_right_offset1_bunch3_4::calculate_funcs(), calib_barrel_right_offset2_bunch0_3::calculate_funcs(), calib_barrel_right_offset2_bunch0_4::calculate_funcs(), calib_barrel_right_offset2_bunch1_3::calculate_funcs(), calib_barrel_right_offset2_bunch1_4::calculate_funcs(), calib_barrel_right_offset2_bunch2_3::calculate_funcs(), calib_barrel_right_offset2_bunch2_4::calculate_funcs(), calib_barrel_right_offset2_bunch3_4::calculate_funcs(), calib_barrel_veff::calculate_funcs(), calib_endcap_left::calculate_funcs(), calib_endcap_veff::calculate_funcs(), calib_etf_combine::calculate_funcs(), calib_etf_left::calculate_funcs(), calib_etf_right::calculate_funcs(), calib_etf_veff::calculate_funcs(), calib_etf_weight::calculate_funcs(), calib_mc_etf_combine::calculate_funcs(), calib_mc_etf_left::calculate_funcs(), calib_mc_etf_right::calculate_funcs(), calib_barrel_left_offset1_bunch0_3::calculate_y(), calib_barrel_left_offset1_bunch0_4::calculate_y(), calib_barrel_left_offset1_bunch1_3::calculate_y(), calib_barrel_left_offset1_bunch1_4::calculate_y(), calib_barrel_left_offset1_bunch2_3::calculate_y(), calib_barrel_left_offset1_bunch2_4::calculate_y(), calib_barrel_left_offset1_bunch3_4::calculate_y(), calib_barrel_left_offset2_bunch0_3::calculate_y(), calib_barrel_left_offset2_bunch0_4::calculate_y(), calib_barrel_left_offset2_bunch1_3::calculate_y(), calib_barrel_left_offset2_bunch1_4::calculate_y(), calib_barrel_left_offset2_bunch2_3::calculate_y(), calib_barrel_left_offset2_bunch2_4::calculate_y(), calib_barrel_left_offset2_bunch3_4::calculate_y(), calib_barrel_right_offset1_bunch0_3::calculate_y(), calib_barrel_right_offset1_bunch0_4::calculate_y(), calib_barrel_right_offset1_bunch1_3::calculate_y(), calib_barrel_right_offset1_bunch1_4::calculate_y(), calib_barrel_right_offset1_bunch2_3::calculate_y(), calib_barrel_right_offset1_bunch2_4::calculate_y(), calib_barrel_right_offset1_bunch3_4::calculate_y(), calib_barrel_right_offset2_bunch0_3::calculate_y(), calib_barrel_right_offset2_bunch0_4::calculate_y(), calib_barrel_right_offset2_bunch1_3::calculate_y(), calib_barrel_right_offset2_bunch1_4::calculate_y(), calib_barrel_right_offset2_bunch2_3::calculate_y(), calib_barrel_right_offset2_bunch2_4::calculate_y(), and calib_barrel_right_offset2_bunch3_4::calculate_y().


The documentation for this class was generated from the following files: