14 :digi_tuple(digi),barrel_tuple(barrel),endcap_tuple(endcap),ext_tuple(ext),tof_tuple(tof),bb_tuple(bhabha) {
15 if(!digi_tuple) {
16 std::cerr<<" Error: invalid pionter in TofCheckDigi(NTuple::Tuple*) for digi_tuple "<<std::endl;
17 }
18 else{
19 digi_tuple->addItem("run", digi_run );
20 digi_tuple->addItem("event", digi_event );
21 digi_tuple->addItem("barrel", digi_barrel );
22 digi_tuple->addItem("layer", digi_layer );
23 digi_tuple->addItem("tofid", digi_tofId );
24 digi_tuple->addItem("end", digi_end );
25 digi_tuple->addItem("adc", digi_adc );
26 digi_tuple->addItem("tdc", digi_tdc );
27 digi_tuple->addItem("qclock", digi_qclock );
28 digi_tuple->addItem("tclock", digi_tclock );
29 digi_tuple->addItem("over", digi_overflow );
30 digi_tuple->addItem("noq", digi_noq );
31 digi_tuple->addItem("not", digi_not );
32 digi_tuple->addItem("multiq", digi_multiq );
33 digi_tuple->addItem("multit", digi_multit );
34 digi_tuple->addItem("overq", digi_overq );
35 digi_tuple->addItem("overt", digi_overt );
36 digi_tuple->addItem("t0", digi_t0 );
37 digi_tuple->addItem("t0stat", digi_t0stat );
38 digi_tuple->addItem("crate", digi_crate );
39 digi_tuple->addItem("geo", digi_geo );
40 digi_tuple->addItem("tdcnum", digi_tdcnum );
41 digi_tuple->addItem("err", digi_err );
42 }
43
44 if(!barrel_tuple) {
45 std::cerr<<" Error: invalid pionter in TofCheckDigi(NTuple::Tuple*) for barrel_tuple "<<std::endl;
46 }
47 else{
48 barrel_tuple->addItem("run", barrel_run );
49 barrel_tuple->addItem("event", barrel_event );
50 barrel_tuple->addItem("tofid", barrel_tofId );
51 barrel_tuple->addItem("icluster", barrel_tofTrackId );
52 barrel_tuple->addItem("layer", barrel_layer );
53 barrel_tuple->addItem("qch1", barrel_qchannel1 );
54 barrel_tuple->addItem("tch1", barrel_tchannel1 );
55 barrel_tuple->addItem("qch2", barrel_qchannel2 );
56 barrel_tuple->addItem("tch2", barrel_tchannel2 );
57 barrel_tuple->addItem("qtc1", barrel_qtc1 );
58 barrel_tuple->addItem("adc1", barrel_adc1 );
59 barrel_tuple->addItem("tdc1", barrel_tdc1 );
60 barrel_tuple->addItem("qtc2", barrel_qtc2 );
61 barrel_tuple->addItem("adc2", barrel_adc2 );
62 barrel_tuple->addItem("tdc2", barrel_tdc2 );
63 barrel_tuple->addItem("qclock1", barrel_qclock1 );
64 barrel_tuple->addItem("tclock1", barrel_tclock1 );
65 barrel_tuple->addItem("qclock2", barrel_qclock2 );
66 barrel_tuple->addItem("tclock2", barrel_tclock2 );
67 barrel_tuple->addItem("qual", barrel_quality );
68 barrel_tuple->addItem("tmatched", barrel_tmatched );
69 barrel_tuple->addItem("qtimes1", barrel_qtimes1 );
70 barrel_tuple->addItem("ttimes1", barrel_ttimes1 );
71 barrel_tuple->addItem("qtimes2", barrel_qtimes2 );
72 barrel_tuple->addItem("ttimes2", barrel_ttimes2 );
73 barrel_tuple->addItem("times1", barrel_times1 );
74 barrel_tuple->addItem("times2", barrel_times2 );
75 barrel_tuple->addItem("times", barrel_times );
76 barrel_tuple->addItem("qnum1", barrel_qnum1 );
77 barrel_tuple->addItem("tnum1", barrel_tnum1 );
78 barrel_tuple->addItem("qnum2", barrel_qnum2 );
79 barrel_tuple->addItem("tnum2", barrel_tnum2 );
80 barrel_tuple->addItem("tsum", barrel_tsum );
81 barrel_tuple->addItem("tsub", barrel_tsub );
82 barrel_tuple->addItem("ztdc", barrel_ztdc );
83 barrel_tuple->addItem("zadc", barrel_zadc );
84 barrel_tuple->addItem("t0", barrel_t0 );
85 barrel_tuple->addItem("t0stat", barrel_t0stat );
86 }
87
88 if(!endcap_tuple) {
89 std::cerr<<" Error: invalid pionter in TofCheckDigi(NTuple::Tuple*) for endcap_tuple "<<std::endl;
90 }
91 else{
92 endcap_tuple->addItem("run", endcap_run );
93 endcap_tuple->addItem("event", endcap_event );
94 endcap_tuple->addItem("tofid", endcap_tofId );
95 endcap_tuple->addItem("icluster", endcap_tofTrackId );
96 endcap_tuple->addItem("qch", endcap_qchannel );
97 endcap_tuple->addItem("tch", endcap_tchannel );
98 endcap_tuple->addItem("qtc", endcap_qtc );
99 endcap_tuple->addItem("adc", endcap_adc );
100 endcap_tuple->addItem("tdc", endcap_tdc );
101 endcap_tuple->addItem("qual", endcap_quality );
102 endcap_tuple->addItem("qclock", endcap_qclock );
103 endcap_tuple->addItem("tclock", endcap_tclock );
104 endcap_tuple->addItem("qtimes", endcap_qtimes );
105 endcap_tuple->addItem("ttimes", endcap_ttimes );
106 endcap_tuple->addItem("times", endcap_times );
107 endcap_tuple->addItem("qnum", endcap_qnum );
108 endcap_tuple->addItem("tnum", endcap_tnum );
109 endcap_tuple->addItem("t0", endcap_t0 );
110 endcap_tuple->addItem("t0stat", endcap_t0stat );
111 }
112
113 if(!ext_tuple) {
114 std::cerr<<" Error: invalid pionter in TofCheckDigi(NTuple::Tuple*) for ext_tple"<<std::endl;
115 }
116 else{
117 ext_tuple->addItem("run", ext_run );
118 ext_tuple->addItem("event", ext_event );
119 ext_tuple->addItem("track", ext_trackid );
120 ext_tuple->addItem("kal", 5, ext_kalman );
121 ext_tuple->addItem("tofid1", 5, ext_tofid1 );
122 ext_tuple->addItem("tofid2", 5, ext_tofid2 );
123 ext_tuple->addItem("texp1", 5, ext_texp1 );
124 ext_tuple->addItem("texp2", 5, ext_texp2 );
125 ext_tuple->addItem("p", 5, ext_p );
126 ext_tuple->addItem("path1", 5, ext_path1 );
127 ext_tuple->addItem("path2", 5, ext_path2 );
128 ext_tuple->addItem("zrhit1", 5, ext_zrhit1 );
129 ext_tuple->addItem("zrhit2", 5, ext_zrhit2 );
130 ext_tuple->addItem("errzr1", 5, ext_errzr1 );
131 ext_tuple->addItem("errzr2", 5, ext_errzr2 );
132 ext_tuple->addItem("cost1", 5, ext_theta1 );
133 ext_tuple->addItem("cost2", 5, ext_theta2 );
134 ext_tuple->addItem("phi1", 5, ext_phi1 );
135 ext_tuple->addItem("phi2", 5, ext_phi2 );
136 ext_tuple->addItem("hitcase", 5, ext_hitcase );
137 ext_tuple->addItem("qual", 5, ext_quality );
138 }
139
140 if(!tof_tuple) {
141 std::cerr<<" Error: invalid pionter in TofCheckDigi(NTuple::Tuple*) for tof_tple"<<std::endl;
142 }
143 else{
144 tof_tuple->addItem("run", tof_run );
145 tof_tuple->addItem("event", tof_event );
146 tof_tuple->addItem("toftrack", tof_toftrackid );
147 tof_tuple->addItem("track", tof_trackid );
148 tof_tuple->addItem("charge", tof_charge );
149 tof_tuple->addItem("pt", 5, tof_pt );
150 tof_tuple->addItem("p", 5, tof_p );
151 tof_tuple->addItem("id1", tof_id1 );
152 tof_tuple->addItem("id2", tof_id2 );
153 tof_tuple->addItem("barrel", tof_barrel );
154 tof_tuple->addItem("hitcase", tof_hitcase );
155 tof_tuple->addItem("mom", tof_momentum );
156 tof_tuple->addItem("path1", tof_path1 );
157 tof_tuple->addItem("path2", tof_path2 );
158 tof_tuple->addItem("zrhit1", tof_zrhit1 );
159 tof_tuple->addItem("zrhit2", tof_zrhit2 );
160 tof_tuple->addItem("errzr1", tof_errzr1 );
161 tof_tuple->addItem("errzr2", tof_errzr2 );
162 tof_tuple->addItem("kal", 5, tof_kal );
163 tof_tuple->addItem("zr1", 5, tof_zr1 );
164 tof_tuple->addItem("zr2", 5, tof_zr2 );
165 tof_tuple->addItem("ztdc1", tof_ztdc1 );
166 tof_tuple->addItem("ztdc2", tof_ztdc2 );
167 tof_tuple->addItem("zadc1", tof_zadc1 );
168 tof_tuple->addItem("zadc2", tof_zadc2 );
169 tof_tuple->addItem("zt1", tof_zt1 );
170 tof_tuple->addItem("zt2", tof_zt2 );
171 tof_tuple->addItem("zt3", tof_zt3 );
172 tof_tuple->addItem("zt4", tof_zt4 );
173 tof_tuple->addItem("zq1", tof_zq1 );
174 tof_tuple->addItem("zq2", tof_zq2 );
175 tof_tuple->addItem("zq3", tof_zq3 );
176 tof_tuple->addItem("zq4", tof_zq4 );
177 tof_tuple->addItem("size1", tof_size1 );
178 tof_tuple->addItem("size2", tof_size2 );
179 tof_tuple->addItem("size3", tof_size3 );
180 tof_tuple->addItem("size4", tof_size4 );
181 tof_tuple->addItem("theta1", tof_theta1 );
182 tof_tuple->addItem("theta2", tof_theta2 );
183 tof_tuple->addItem("phi1", tof_phi1 );
184 tof_tuple->addItem("phi2", tof_phi2 );
185 tof_tuple->addItem("qual1", tof_quality1 );
186 tof_tuple->addItem("qual2", tof_quality2 );
187 tof_tuple->addItem("qual", tof_quality );
188 tof_tuple->addItem("change", tof_changed );
189 tof_tuple->addItem("tofid1", tof_tofid1 );
190 tof_tuple->addItem("tofid2", tof_tofid2 );
191 tof_tuple->addItem("board1", tof_board1 );
192 tof_tuple->addItem("board2", tof_board2 );
193 tof_tuple->addItem("crate1", tof_crate1 );
194 tof_tuple->addItem("crate2", tof_crate2 );
195 tof_tuple->addItem("fee1", tof_fee1 );
196 tof_tuple->addItem("fee2", tof_fee2 );
197 tof_tuple->addItem("channel1", tof_channel1 );
198 tof_tuple->addItem("channel2", tof_channel2 );
199 tof_tuple->addItem("channel3", tof_channel3 );
200 tof_tuple->addItem("channel4", tof_channel4 );
201 tof_tuple->addItem("ph11", tof_ph11 );
202 tof_tuple->addItem("ph12", tof_ph12 );
203 tof_tuple->addItem("ph21", tof_ph21 );
204 tof_tuple->addItem("ph22", tof_ph22 );
205 tof_tuple->addItem("ph1", tof_ph1 );
206 tof_tuple->addItem("ph2", tof_ph2 );
207 tof_tuple->addItem("ph", tof_ph );
208 tof_tuple->addItem("tofe11", tof_tofe11 );
209 tof_tuple->addItem("tofe12", tof_tofe12 );
210 tof_tuple->addItem("tofe21", tof_tofe21 );
211 tof_tuple->addItem("tofe22", tof_tofe22 );
212 tof_tuple->addItem("tofe1", tof_tofe1 );
213 tof_tuple->addItem("tofe2", tof_tofe2 );
214 tof_tuple->addItem("tofe", tof_tofe );
215 tof_tuple->addItem("tofmu11", tof_tofmu11 );
216 tof_tuple->addItem("tofmu12", tof_tofmu12 );
217 tof_tuple->addItem("tofmu21", tof_tofmu21 );
218 tof_tuple->addItem("tofmu22", tof_tofmu22 );
219 tof_tuple->addItem("tofmu1", tof_tofmu1 );
220 tof_tuple->addItem("tofmu2", tof_tofmu2 );
221 tof_tuple->addItem("tofmu", tof_tofmu );
222 tof_tuple->addItem("tofpi11", tof_tofpi11 );
223 tof_tuple->addItem("tofpi12", tof_tofpi12 );
224 tof_tuple->addItem("tofpi21", tof_tofpi21 );
225 tof_tuple->addItem("tofpi22", tof_tofpi22 );
226 tof_tuple->addItem("tofpi1", tof_tofpi1 );
227 tof_tuple->addItem("tofpi2", tof_tofpi2 );
228 tof_tuple->addItem("tofpi", tof_tofpi );
229 tof_tuple->addItem("tofk11", tof_tofk11 );
230 tof_tuple->addItem("tofk12", tof_tofk12 );
231 tof_tuple->addItem("tofk21", tof_tofk21 );
232 tof_tuple->addItem("tofk22", tof_tofk22 );
233 tof_tuple->addItem("tofk1", tof_tofk1 );
234 tof_tuple->addItem("tofk2", tof_tofk2 );
235 tof_tuple->addItem("tofk", tof_tofk );
236 tof_tuple->addItem("tofp11", tof_tofp11 );
237 tof_tuple->addItem("tofp12", tof_tofp12 );
238 tof_tuple->addItem("tofp21", tof_tofp21 );
239 tof_tuple->addItem("tofp22", tof_tofp22 );
240 tof_tuple->addItem("tofp1", tof_tofp1 );
241 tof_tuple->addItem("tofp2", tof_tofp2 );
242 tof_tuple->addItem("tofp", tof_tofp );
243 tof_tuple->addItem("qch1", tof_qch1 );
244 tof_tuple->addItem("qch2", tof_qch2 );
245 tof_tuple->addItem("qch3", tof_qch3 );
246 tof_tuple->addItem("qch4", tof_qch4 );
247 tof_tuple->addItem("adc1", tof_adc1 );
248 tof_tuple->addItem("adc2", tof_adc2 );
249 tof_tuple->addItem("adc3", tof_adc3 );
250 tof_tuple->addItem("adc4", tof_adc4 );
251 tof_tuple->addItem("tdc1", tof_tdc1 );
252 tof_tuple->addItem("tdc2", tof_tdc2 );
253 tof_tuple->addItem("tdc3", tof_tdc3 );
254 tof_tuple->addItem("tdc4", tof_tdc4 );
255 tof_tuple->addItem("texpe1", tof_texpe1 );
256 tof_tuple->addItem("texpmu1", tof_texpmu1 );
257 tof_tuple->addItem("texppi1", tof_texppi1 );
258 tof_tuple->addItem("texpk1", tof_texpk1 );
259 tof_tuple->addItem("texpp1", tof_texpp1 );
260 tof_tuple->addItem("texpe2", tof_texpe2 );
261 tof_tuple->addItem("texpmu2", tof_texpmu2 );
262 tof_tuple->addItem("texppi2", tof_texppi2 );
263 tof_tuple->addItem("texpk2", tof_texpk2 );
264 tof_tuple->addItem("texpp2", tof_texpp2 );
265 tof_tuple->addItem("texpe", tof_texpe );
266 tof_tuple->addItem("texpmu", tof_texpmu );
267 tof_tuple->addItem("texppi", tof_texppi );
268 tof_tuple->addItem("texpk", tof_texpk );
269 tof_tuple->addItem("texpp", tof_texpp );
270 tof_tuple->addItem("tdiff1", tof_tdiff1 );
271 tof_tuple->addItem("tdiff2", tof_tdiff2 );
272 tof_tuple->addItem("trig", tof_trig );
273 tof_tuple->addItem("t0", tof_estime );
274 tof_tuple->addItem("t0stat", tof_t0stat );
275 tof_tuple->addItem("mctrkid", tof_mctrkid );
276 tof_tuple->addItem("mcp", tof_mcp );
277 tof_tuple->addItem("mctofp", tof_mctofp );
278 tof_tuple->addItem("mczrhit", tof_mczrhit );
279 tof_tuple->addItem("mcpath", tof_mcpath );
280 tof_tuple->addItem("mctexp", tof_mctexp );
281 }
282
283 if(!bb_tuple) {
284 std::cerr<<" Error: invalid pionter in TofCheckDigi(NTuple::Tuple*) for bb_tple"<<std::endl;
285 }
286 else{
287 bb_tuple->addItem("run", bb_run );
288 bb_tuple->addItem("event", bb_event );
289 bb_tuple->addItem("trksize", bb_trksize );
290 bb_tuple->addItem("mdcsize", bb_mdcsize );
291 bb_tuple->addItem("emcsize", bb_emcsize );
292 bb_tuple->addItem("trk1", bb_trk1 );
293 bb_tuple->addItem("pmdc1", bb_pmdc1 );
294 bb_tuple->addItem("ptmdc1", bb_ptmdc1 );
295 bb_tuple->addItem("theta1", bb_theta1 );
296 bb_tuple->addItem("phi1", bb_phi1 );
297 bb_tuple->addItem("x1", bb_x1 );
298 bb_tuple->addItem("y1", bb_y1 );
299 bb_tuple->addItem("z1", bb_z1 );
300 bb_tuple->addItem("r1", bb_r1 );
301 bb_tuple->addItem("charge1", bb_charge1 );
302 bb_tuple->addItem("chi1", bb_chi1 );
303 bb_tuple->addItem("ndof1", bb_ndof1 );
304 bb_tuple->addItem("layer1", bb_layer1 );
305 bb_tuple->addItem("trk2", bb_trk2 );
306 bb_tuple->addItem("pmdc2", bb_pmdc2 );
307 bb_tuple->addItem("ptmdc2", bb_ptmdc2 );
308 bb_tuple->addItem("theta2", bb_theta2 );
309 bb_tuple->addItem("phi2", bb_phi2 );
310 bb_tuple->addItem("x2", bb_x2 );
311 bb_tuple->addItem("y2", bb_y2 );
312 bb_tuple->addItem("z2", bb_z2 );
313 bb_tuple->addItem("r2", bb_r2 );
314 bb_tuple->addItem("charge2", bb_charge2 );
315 bb_tuple->addItem("chi2", bb_chi2 );
316 bb_tuple->addItem("ndof2", bb_ndof2 );
317 bb_tuple->addItem("layer2", bb_layer2 );
318 bb_tuple->addItem("dang", bb_dang );
319 bb_tuple->addItem("dphi", bb_dphi );
320 bb_tuple->addItem("pe1", bb_pe1 );
321 bb_tuple->addItem("pte1", bb_pte1 );
322 bb_tuple->addItem("pe2", bb_pe2 );
323 bb_tuple->addItem("pte2", bb_pte2 );
324 bb_tuple->addItem("pmu1", bb_pmu1 );
325 bb_tuple->addItem("ptmu1", bb_ptmu1 );
326 bb_tuple->addItem("pmu2", bb_pmu2 );
327 bb_tuple->addItem("ptmu2", bb_ptmu2 );
328 bb_tuple->addItem("extx1", bb_extx1 );
329 bb_tuple->addItem("exty1", bb_exty1 );
330 bb_tuple->addItem("extz1", bb_extz1 );
331 bb_tuple->addItem("extx2", bb_extx2 );
332 bb_tuple->addItem("exty2", bb_exty2 );
333 bb_tuple->addItem("extz2", bb_extz2 );
334 bb_tuple->addItem("emctrk1", bb_emctrk1 );
335 bb_tuple->addItem("emcx1", bb_emcx1 );
336 bb_tuple->addItem("emcy1", bb_emcy1 );
337 bb_tuple->addItem("emcz1", bb_emcz1 );
338 bb_tuple->addItem("e1", bb_e1 );
339 bb_tuple->addItem("th1", bb_th1 );
340 bb_tuple->addItem("ph1", bb_ph1 );
341 bb_tuple->addItem("emctrk2", bb_emctrk2 );
342 bb_tuple->addItem("emcx2", bb_emcx2 );
343 bb_tuple->addItem("emcy2", bb_emcy2 );
344 bb_tuple->addItem("emcz2", bb_emcz2 );
345 bb_tuple->addItem("e2", bb_e2 );
346 bb_tuple->addItem("th2", bb_th2 );
347 bb_tuple->addItem("ph2", bb_ph2 );
348 bb_tuple->addItem("dr1", bb_dr1 );
349 bb_tuple->addItem("drxy1", bb_drxy1 );
350 bb_tuple->addItem("dz1", bb_dz1 );
351 bb_tuple->addItem("dr2", bb_dr2 );
352 bb_tuple->addItem("drxy2", bb_drxy2 );
353 bb_tuple->addItem("dz2", bb_dz2 );
354 bb_tuple->addItem("etot", bb_etot );
355 }
356
357 return;
358}