1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | #include <stdint.h> |
9 | #include <vector> |
10 | |
11 | #include <TMath.h> |
12 | |
13 | |
14 | #include "JEventProcessor_CDC_expert.h" |
15 | #include <JANA/JApplication.h> |
16 | |
17 | |
18 | using namespace std; |
19 | using namespace jana; |
20 | |
21 | |
22 | #include "CDC/DCDCHit.h" |
23 | #include "CDC/DCDCDigiHit.h" |
24 | #include "DAQ/Df125PulseIntegral.h" |
25 | #include "DAQ/Df125PulsePedestal.h" |
26 | #include "DAQ/Df125WindowRawData.h" |
27 | #include "DAQ/Df125CDCPulse.h" |
28 | |
29 | #include <TDirectory.h> |
30 | #include <TH2.h> |
31 | #include <TH1.h> |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | static TH1D *cdc_e = NULL__null; |
39 | static TH2D *cdc_e_vs_n = NULL__null; |
40 | |
41 | static TH1D *cdc_t = NULL__null; |
42 | static TH2D *cdc_t_vs_n = NULL__null; |
43 | |
44 | |
45 | static TH2D *cdc_e_ring[29]; |
46 | static TH2D *cdc_t_ring[29]; |
47 | |
48 | |
49 | static TH2D *cdc_e_vs_t; |
50 | static TH2D *cdc_e_vs_t_ring[29]; |
51 | |
52 | static TH2I *cdc_raw_int_vs_t; |
53 | static TH2I *cdc_raw_int_vs_t_ring[29]; |
54 | |
55 | |
56 | static TH2I *cdc_o_badt; |
57 | static TH2I *cdc_o_overflow; |
58 | |
59 | static TH2I *cdc_ped_ring[29]; |
60 | static TH1I *cdc_ped_badt; |
61 | static TH1I *cdc_ped_overflow; |
62 | |
63 | static TH2I *cdc_windata_ped_ring[29]; |
64 | |
65 | static TH2I *cdc_windata_ped_roc25; |
66 | static TH2I *cdc_windata_ped_roc26; |
67 | static TH2I *cdc_windata_ped_roc27; |
68 | static TH2I *cdc_windata_ped_roc28; |
69 | |
70 | static TH2I *cdc_raw_t_ring[29]; |
71 | static TH1I *cdc_raw_t_badt; |
72 | static TH1I *cdc_raw_t_overflow; |
73 | |
74 | static TH2I *cdc_raw_amp_ring[29]; |
75 | static TH1I *cdc_raw_amp_badt; |
76 | static TH1I *cdc_raw_amp_overflow; |
77 | |
78 | |
79 | |
80 | static TH2I *cdc_raw_intpp_ring[29]; |
81 | static TH1I *cdc_raw_intpp_badt; |
82 | static TH1I *cdc_raw_intpp_overflow; |
83 | |
84 | |
85 | |
86 | static TH2I *cdc_raw_int_ring[29]; |
87 | static TH1I *cdc_raw_int_badt; |
88 | static TH1I *cdc_raw_int_overflow; |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | extern "C"{ |
98 | void InitPlugin(JApplication *app){ |
99 | InitJANAPlugin(app); |
100 | app->AddProcessor(new JEventProcessor_CDC_expert()); |
101 | } |
102 | } |
103 | |
104 | |
105 | |
106 | |
107 | |
108 | JEventProcessor_CDC_expert::JEventProcessor_CDC_expert() { |
109 | } |
110 | |
111 | |
112 | |
113 | |
114 | |
115 | JEventProcessor_CDC_expert::~JEventProcessor_CDC_expert() { |
116 | } |
117 | |
118 | |
119 | |
120 | |
121 | jerror_t JEventProcessor_CDC_expert::init(void) { |
122 | |
123 | |
124 | |
125 | |
126 | |
127 | |
128 | |
129 | |
130 | return NOERROR; |
131 | } |
132 | |
133 | |
134 | |
135 | |
136 | |
137 | jerror_t JEventProcessor_CDC_expert::brun(JEventLoop *eventLoop, int32_t runnumber) { |
138 | |
139 | |
140 | |
141 | |
142 | japp->RootWriteLock(); |
143 | |
144 | |
145 | |
146 | |
147 | Int_t IMAX = 400000; |
148 | Int_t PMAX = 512; |
149 | Int_t AMAX = 4096; |
150 | Int_t RTMAX = 12000; |
151 | Int_t RTVSNMAX = 8192; |
152 | |
153 | Char_t rtunits[8] = "0.125ns"; |
154 | |
155 | if (runnumber > 3675) { |
156 | |
157 | |
158 | |
159 | |
160 | |
161 | |
162 | |
163 | |
164 | |
165 | |
166 | |
167 | |
168 | IMAX = 16384; |
169 | PMAX = 256; |
170 | AMAX = 512; |
171 | RTMAX = 2048; |
172 | RTVSNMAX = 1024; |
173 | |
174 | sprintf(rtunits,"0.8ns"); |
175 | |
176 | } |
177 | |
178 | |
179 | const Int_t EMAX = 21000; |
180 | |
181 | |
182 | |
183 | const Int_t TMAX = 2000; |
184 | |
185 | |
186 | |
187 | const Int_t NSTRAWS = 3522; |
188 | const Float_t HALF = 0.5; |
189 | const Float_t NSTRAWSPH = 3522.5; |
190 | |
191 | |
192 | |
193 | TDirectory *main = gDirectory(TDirectory::CurrentDirectory()); |
194 | gDirectory(TDirectory::CurrentDirectory())->mkdir("CDC_expert")->cd(); |
195 | |
196 | |
197 | |
198 | |
199 | |
200 | |
201 | const Int_t straws[29] = {0,42,42,54,54,66,66,80,80,93,93,106,106,123,123,135,135,146,146,158,158,170,170,182,182,197,197,209,209}; |
202 | |
203 | |
204 | cdc_e = new TH1D("cdc_e","CDC charge (fC);charge (fC)",200,0,EMAX); |
205 | cdc_e_vs_n = new TH2D("cdc_e_vs_n","CDC charge (fC) vs straw number;straw;charge (fC)",NSTRAWS,HALF,NSTRAWSPH,100,0,EMAX); |
206 | |
207 | cdc_e_vs_t = new TH2D("cdc_e_vs_t","CDC charge (fC) vs time (ns);time (ns);charge (fC)",150,-250,TMAX,100,0,EMAX); |
208 | |
209 | |
210 | cdc_t = new TH1D("cdc_t","CDC time (ns);time (ns)",300,-250,TMAX); |
211 | cdc_t_vs_n = new TH2D("cdc_t_vs_n","CDC time (ns) vs straw number;straw;time (ns)",NSTRAWS,HALF,NSTRAWSPH,150,-250,TMAX); |
212 | |
213 | |
214 | |
215 | |
216 | cdc_raw_int_vs_t = new TH2I("cdc_raw_int_vs_t",Form("CDC integral (ADC units), pedestal subtracted, vs raw time (units of %s);time (%s);integral, pedestal subtracted (ADC units)",rtunits,rtunits),(Int_t)256,0,RTVSNMAX,100,0,IMAX); |
217 | |
218 | |
219 | |
220 | cdc_windata_ped_roc25 = new TH2I("cdc_windata_ped_roc25","CDC pedestal (ADC units) from raw window data vs slot*100+channel, ROC 25;slot*100 + channel;pedestal",1600,200+HALF,1800+HALF,(Int_t)PMAX/4,0,PMAX); |
221 | cdc_windata_ped_roc26 = new TH2I("cdc_windata_ped_roc26","CDC pedestal (ADC units) from raw window data vs slot*100+channel, ROC 26;slot*100 + channel;pedestal",1600,200+HALF,1800+HALF,(Int_t)PMAX/4,0,PMAX); |
222 | cdc_windata_ped_roc27 = new TH2I("cdc_windata_ped_roc27","CDC pedestal (ADC units) from raw window data vs slot*100+channel, ROC 27;slot*100 + channel;pedestal",1600,200+HALF,1800+HALF,(Int_t)PMAX/4,0,PMAX); |
223 | cdc_windata_ped_roc28 = new TH2I("cdc_windata_ped_roc28","CDC pedestal (ADC units) from raw window data vs slot*100+channel, ROC 28;slot*100 + channel;pedestal",1600,200+HALF,1800+HALF,(Int_t)PMAX/4,0,PMAX); |
224 | |
225 | |
226 | |
227 | if (runnumber > 3675) { |
228 | |
229 | gDirectory(TDirectory::CurrentDirectory())->mkdir("bad_t","CDC Bad time flagged")->cd(); |
230 | |
231 | cdc_o_badt = new TH2I("cdc_o_badt","CDC occupancy by straw,ring, events with bad time flagged;straw;ring",209,0.5,209.5,28,0.5,28.5); |
232 | cdc_ped_badt = new TH1I("cdc_ped_badt","CDC pedestal, events with bad time flagged;straw;pedestal",256,0,PMAX); |
233 | cdc_raw_t_badt = new TH1I("cdc_raw_t_badt",Form("CDC raw time (units of %s), events with bad time flagged;straw;raw time (%s)",rtunits,rtunits),256,0,RTMAX); |
234 | cdc_raw_amp_badt = new TH1I("cdc_raw_amp_badt","CDC amplitude (ADC units), events with bad time flagged;ADC units",256,0,AMAX); |
235 | cdc_raw_int_badt = new TH1I("cdc_raw_intpp_badt","CDC integral (ADC units), pedestal subtracted, events with bad time flagged;ADC units",100,0,IMAX); |
236 | cdc_raw_intpp_badt = new TH1I("cdc_raw_intpp_badt","CDC integral (ADC units), including pedestal, events with bad time flagged;ADC units",100,0,IMAX); |
237 | |
238 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
239 | gDirectory(TDirectory::CurrentDirectory())->mkdir("overflows","CDC overflow flagged")->cd(); |
240 | |
241 | cdc_o_overflow = new TH2I("cdc_o_overflow","CDC overflow occupancy by straw,ring;straw;ring",209,0.5,209.5,28,0.5,28.5); |
242 | cdc_ped_overflow = new TH1I("cdc_ped_overflow","CDC pedestal, events with ADC overflow;pedestal",256,0,PMAX); |
243 | cdc_raw_t_overflow = new TH1I("cdc_raw_t_overflow",Form("CDC raw time (units of %s), events with ADC overflow;raw time (%s)",rtunits,rtunits),256,0,RTMAX); |
244 | cdc_raw_amp_overflow = new TH1I("cdc_raw_amp_overflow","CDC amplitude (ADC units), events with ADC overflow;ADC units",256,0,AMAX); |
245 | cdc_raw_int_overflow = new TH1I("cdc_raw_intpp_overflow","CDC integral (ADC units), pedestal subtracted, events with ADC overflow;ADC units",100,0,IMAX); |
246 | cdc_raw_intpp_overflow = new TH1I("cdc_raw_intpp_overflow","CDC integral (ADC units), including pedestal, events with ADC overflow;ADC units",100,0,IMAX); |
247 | |
248 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
249 | |
250 | } |
251 | |
252 | Int_t i; |
253 | |
254 | |
255 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_e_vs_t","CDC rings: charge vs time")->cd(); |
256 | |
257 | for (i=1; i<29; i++) { |
258 | cdc_e_vs_t_ring[i] = new TH2D(Form("cdc_e_vs_t_ring[%i]",i),"CDC charge (fC) vs time (ns);time (ns);charge (fC)",150,0,TMAX,100,0,EMAX); |
259 | } |
260 | |
261 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
262 | |
263 | |
264 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_int_vs_raw_t","CDC rings: integral vs raw time (pedestal subtracted)")->cd(); |
265 | |
266 | for (i=1; i<29; i++) { |
267 | cdc_raw_int_vs_t_ring[i] = new TH2I(Form("cdc_raw_int_vs_t_ring[%i]",i),Form("CDC integral (ADC units), pedestal subtracted, vs raw time (%s);raw time (%s);integral, pedestal subtracted (ADC units)",rtunits,rtunits),256,0,RTVSNMAX,100,0,IMAX); |
268 | |
269 | } |
270 | |
271 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
272 | |
273 | |
274 | |
275 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_e","CDC rings: charge vs straw")->cd(); |
276 | |
277 | for (i=1; i<29; i++) { |
278 | cdc_e_ring[i] = new TH2D(Form("cdc_e_ring[%i]",i),Form("CDC charge (fC), ring %i;straw;charge (fC)",i),straws[i],HALF,straws[i]+HALF,100,0,EMAX); |
279 | } |
280 | |
281 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
282 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings__t","CDC rings: time vs straw")->cd(); |
283 | |
284 | for (i=1; i<29; i++) { |
285 | cdc_t_ring[i] = new TH2D(Form("cdc_t_ring[%i]",i),Form("CDC time (ns), ring %i;straw;time (ns)",i),straws[i],HALF,straws[i]+HALF,150,0,TMAX); |
286 | } |
287 | |
288 | |
289 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
290 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_pedestal","CDC rings: pedestal vs straw")->cd(); |
291 | |
292 | for (i=1; i<29; i++) { |
293 | cdc_ped_ring[i] = new TH2I(Form("cdc_ped_ring[%i]",i),Form("CDC pedestal (ADC units), ring %i;straw;pedestal",i),straws[i],HALF,straws[i]+HALF,(Int_t)PMAX/2,0,PMAX); |
294 | } |
295 | |
296 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
297 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_windata_pedestal","CDC rings: pedestal from raw window data vs straw")->cd(); |
298 | |
299 | for (i=1; i<29; i++) { |
300 | cdc_windata_ped_ring[i] = new TH2I(Form("cdc_windata_ped_ring[%i]",i),Form("CDC pedestal (ADC units) from raw window data, ring %i;straw;pedestal",i),straws[i],HALF,straws[i]+HALF,(Int_t)PMAX/2,0,PMAX); |
301 | } |
302 | |
303 | |
304 | |
305 | |
306 | |
307 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
308 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_raw_t","CDC rings: raw time vs straw")->cd(); |
309 | |
310 | for (i=1; i<29; i++) { |
311 | cdc_raw_t_ring[i] = new TH2I(Form("cdc_raw_t_ring[%i]",i),Form("CDC raw time (units of %s), ring %i;straw;raw time (%s)",rtunits,i,rtunits),straws[i],HALF,straws[i]+HALF,256,0,RTVSNMAX); |
312 | } |
313 | |
314 | |
315 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
316 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_raw_amp","CDC rings: amplitude")->cd(); |
317 | |
318 | for (i=1; i<29; i++) { |
319 | cdc_raw_amp_ring[i] = new TH2I(Form("cdc_raw_amp_ring[%i]",i),Form("CDC amplitude (ADC units), ring %i",i),straws[i],HALF,straws[i]+HALF,256,0,AMAX); |
320 | } |
321 | |
322 | |
323 | |
324 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
325 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_raw_integral","CDC rings: integral vs straw (pedestal subtracted)")->cd(); |
326 | |
327 | for (i=1; i<29; i++) { |
328 | cdc_raw_int_ring[i] = new TH2I(Form("cdc_raw_int_ring[%i]",i),Form("CDC integral (ADC units), pedestal subtracted, ring %i",i),straws[i],HALF,straws[i]+HALF,100,0,IMAX); |
329 | } |
330 | |
331 | |
332 | gDirectory(TDirectory::CurrentDirectory())->cd("../"); |
333 | gDirectory(TDirectory::CurrentDirectory())->mkdir("rings_raw_integral_incl_ped","CDC rings: integral vs straw (including pedestal)")->cd(); |
334 | |
335 | for (i=1; i<29; i++) { |
336 | cdc_raw_intpp_ring[i] = new TH2I(Form("cdc_raw_intpp_ring[%i]",i),Form("CDC integral (ADC units), including pedestal, ring %i",i),straws[i],HALF,straws[i]+HALF,100,0,IMAX); |
337 | } |
338 | |
339 | |
340 | |
341 | |
342 | main->cd(); |
343 | |
344 | japp->RootUnLock(); |
345 | |
346 | return NOERROR; |
347 | } |
348 | |
349 | |
350 | |
351 | |
352 | |
353 | jerror_t JEventProcessor_CDC_expert::evnt(JEventLoop *eventLoop, uint64_t eventnumber) { |
354 | |
355 | |
356 | |
357 | |
358 | |
359 | |
360 | float q,t; |
361 | |
362 | uint32_t qf,ocount; |
363 | uint32_t tr,p,a; |
364 | uint32_t integral; |
365 | uint32_t integ; |
366 | |
367 | uint16_t ring,straw; |
368 | uint16_t n; |
369 | |
370 | Bool_t PED_SUB; |
371 | |
372 | uint32_t total_ped; |
373 | uint32_t nsamples_integral; |
374 | uint32_t nsamples_pedestal; |
375 | |
376 | uint32_t rocid; |
377 | uint32_t slot; |
378 | uint32_t channel; |
379 | |
380 | |
381 | const uint16_t NPEDSAMPLES=16; |
382 | |
383 | |
384 | int straw_offset[29] = {0,0,42,84,138,192,258,324,404,484,577,670,776,882,1005,1128,1263,1398,1544,1690,1848,2006,2176,2346,2528,2710,2907,3104,3313}; |
385 | |
386 | |
387 | |
388 | |
389 | |
390 | |
391 | vector<const DCDCHit*> hits; |
392 | eventLoop->Get(hits); |
393 | |
394 | |
395 | vector<const DCDCDigiHit*> digihits; |
396 | eventLoop->Get(digihits); |
397 | |
398 | |
399 | vector<const Df125WindowRawData*> wrdvector; |
400 | eventLoop->Get(wrdvector); |
401 | |
402 | japp->RootWriteLock(); |
403 | |
404 | |
405 | for(uint32_t i=0; i<hits.size(); i++) { |
406 | |
407 | const DCDCHit *hit = hits[i]; |
408 | |
409 | if(hit->q>0.0) { |
410 | |
411 | q = hit->q; |
412 | t = hit->t; |
413 | ring = hit->ring; |
414 | straw = hit->straw; |
415 | |
416 | n = straw_offset[ring] + straw; |
417 | |
418 | if (q > 0.0) { |
419 | cdc_e->Fill(q); |
420 | cdc_e_vs_n->Fill(n,q); |
421 | } |
422 | |
423 | |
424 | cdc_t->Fill(t); |
425 | cdc_t_vs_n->Fill(n,t); |
426 | |
427 | |
428 | cdc_e_vs_t->Fill(t,q); |
429 | cdc_e_vs_t_ring[ring]->Fill(t,q); |
430 | |
431 | cdc_e_ring[ring]->Fill(straw,q); |
432 | cdc_t_ring[ring]->Fill(straw,t); |
433 | } |
434 | } |
435 | |
436 | |
437 | for(uint32_t i=0; i<digihits.size(); i++) { |
438 | |
439 | const DCDCDigiHit *digihit = digihits[i]; |
440 | |
441 | |
442 | const Df125PulseIntegral *pi = NULL__null; |
443 | const Df125PulsePedestal *pp = NULL__null; |
444 | const Df125WindowRawData *windat = NULL__null; |
445 | const Df125CDCPulse *cp = NULL__null; |
446 | |
447 | |
448 | vector<uint16_t> samples; |
449 | uint32_t winped=0; |
450 | |
451 | PED_SUB = kFALSE; |
452 | total_ped = 0; |
| Value stored to 'total_ped' is never read |
453 | |
454 | rocid = 0; |
455 | slot = 0; |
456 | channel = 0; |
457 | qf = 0; |
458 | ocount = 0; |
459 | a = 0; |
460 | |
461 | |
462 | digihit->GetSingle(pi); |
463 | if (pi) { |
464 | rocid = pi->rocid; |
465 | slot = pi->slot; |
466 | channel = pi->channel; |
467 | pi->GetSingle(windat); |
468 | } else if (i < (uint32_t)wrdvector.size()) { |
469 | windat = wrdvector[i]; |
470 | } |
471 | |
472 | nsamples_integral = pi ? pi->nsamples_integral : 0; |
473 | nsamples_pedestal = pi ? pi->nsamples_pedestal : 0; |
474 | |
475 | if ((nsamples_integral > 0) && (nsamples_pedestal > 0)) PED_SUB = kTRUE; |
476 | |
477 | digihit->GetSingle(pp); |
478 | if(pp) a = pp->pulse_peak; |
479 | |
480 | |
481 | digihit->GetSingle(cp); |
482 | if (cp) { |
483 | rocid = cp->rocid; |
484 | slot = cp->slot; |
485 | channel = cp->channel; |
486 | a = cp->first_max_amp; |
487 | qf = cp->time_quality_bit; |
488 | ocount = cp->overflow_count; |
489 | } |
490 | |
491 | |
492 | |
493 | if (windat) { |
494 | |
495 | if (windat->samples.size()>=NPEDSAMPLES) { |
496 | |
497 | winped = 0; |
498 | |
499 | for (uint16_t j=0; j<NPEDSAMPLES; j++) winped += (uint32_t)windat->samples[j]; |
500 | |
501 | winped = (uint32_t)winped/16.0; |
502 | |
503 | if (winped > 0) { |
504 | |
505 | if (rocid == 25) cdc_windata_ped_roc25->Fill(100*slot + channel,winped); |
506 | if (rocid == 26) cdc_windata_ped_roc26->Fill(100*slot + channel,winped); |
507 | if (rocid == 27) cdc_windata_ped_roc27->Fill(100*slot + channel,winped); |
508 | if (rocid == 28) cdc_windata_ped_roc28->Fill(100*slot + channel,winped); |
509 | |
510 | } |
511 | |
512 | } |
513 | } |
514 | |
515 | |
516 | |
517 | |
518 | if((digihit->pulse_integral>0)||(digihit->pulse_time>0)) { |
519 | |
520 | ring = digihit->ring; |
521 | straw = digihit->straw; |
522 | |
523 | p = digihit->pedestal; |
524 | tr = digihit->pulse_time; |
525 | integral = digihit->pulse_integral; |
526 | |
527 | integ = 0; |
528 | |
529 | |
530 | |
531 | if (PED_SUB) { |
532 | total_ped = p*nsamples_integral/nsamples_pedestal; |
533 | integ = integral - total_ped; |
534 | } |
535 | |
536 | straw_offset[ring] + straw; |
537 | |
538 | if (PED_SUB) cdc_raw_int_vs_t->Fill(tr,integ); |
539 | if (PED_SUB) cdc_raw_int_vs_t_ring[ring]->Fill(tr,integ); |
540 | |
541 | cdc_ped_ring[ring]->Fill(straw,p); |
542 | cdc_raw_t_ring[ring]->Fill(straw,tr); |
543 | cdc_raw_amp_ring[ring]->Fill(straw,a); |
544 | if (PED_SUB) cdc_raw_int_ring[ring]->Fill(straw,integ); |
545 | cdc_raw_intpp_ring[ring]->Fill(straw,integral); |
546 | if (winped) cdc_windata_ped_ring[ring]->Fill(straw,winped); |
547 | |
548 | |
549 | if (cp) { |
550 | if (qf==1) { |
551 | cdc_o_badt->Fill(straw,ring); |
552 | cdc_ped_badt->Fill(p); |
553 | cdc_raw_t_badt->Fill(tr); |
554 | cdc_raw_amp_badt->Fill(a); |
555 | if (PED_SUB) cdc_raw_int_badt->Fill(integ); |
556 | cdc_raw_intpp_badt->Fill(integral); |
557 | } |
558 | |
559 | |
560 | if (ocount>0) { |
561 | cdc_o_overflow->Fill(straw,ring); |
562 | cdc_ped_overflow->Fill(p); |
563 | cdc_raw_t_overflow->Fill(tr); |
564 | cdc_raw_amp_overflow->Fill(a); |
565 | if (PED_SUB) cdc_raw_int_overflow->Fill(integ); |
566 | cdc_raw_intpp_overflow->Fill(integral); |
567 | } |
568 | } |
569 | |
570 | |
571 | } |
572 | |
573 | } |
574 | |
575 | |
576 | japp->RootUnLock(); |
577 | |
578 | |
579 | return NOERROR; |
580 | } |
581 | |
582 | |
583 | |
584 | |
585 | |
586 | jerror_t JEventProcessor_CDC_expert::erun(void) { |
587 | |
588 | |
589 | |
590 | return NOERROR; |
591 | } |
592 | |
593 | |
594 | |
595 | |
596 | |
597 | jerror_t JEventProcessor_CDC_expert::fini(void) { |
598 | |
599 | return NOERROR; |
600 | } |
601 | |
602 | |
603 | |
604 | |