94 |
finalCanv1->SetFillColor(10); |
finalCanv1->SetFillColor(10); |
95 |
TMultiGraph *mg1 = new TMultiGraph(); |
TMultiGraph *mg1 = new TMultiGraph(); |
96 |
mg1->SetTitle(oss.str().c_str()); |
mg1->SetTitle(oss.str().c_str()); |
97 |
TLegend *leg1 = new TLegend(0.82,0.60,0.99,0.99, ""); |
TLegend *leg1b = new TLegend(0.80,0.67,0.99,0.99, ""); |
98 |
|
|
99 |
|
|
100 |
TCanvas *finalCanv2 = new TCanvas("Packet_2", "PacketScan2", 1280, 1024); |
TCanvas *finalCanv2 = new TCanvas("Packet_2", "PacketScan2", 1280, 1024); |
101 |
finalCanv2->SetFillColor(10); |
finalCanv2->SetFillColor(10); |
102 |
TMultiGraph *mg2 = new TMultiGraph(); |
TMultiGraph *mg2 = new TMultiGraph(); |
103 |
mg2->SetTitle(oss.str().c_str()); |
mg2->SetTitle(oss.str().c_str()); |
104 |
TLegend *leg2 = new TLegend(0.82,0.60,0.99,0.99, ""); |
TLegend *leg2 = new TLegend(0.87,0.70,0.99,0.99, ""); |
105 |
|
|
106 |
|
|
107 |
|
|
108 |
TCanvas *finalCanv3 = new TCanvas("Packet_3", "PacketScan3", 1280, 1024); |
TCanvas *finalCanv3 = new TCanvas("Packet_3", "PacketScan3", 1280, 1024); |
109 |
finalCanv3->SetFillColor(10); |
finalCanv3->SetFillColor(10); |
110 |
TMultiGraph *mg3 = new TMultiGraph(); |
TMultiGraph *mg3 = new TMultiGraph(); |
111 |
mg3->SetTitle(oss.str().c_str()); |
mg3->SetTitle(oss.str().c_str()); |
112 |
TLegend *leg3 = new TLegend(0.82,0.60,0.99,0.99, ""); |
TLegend *leg3 = new TLegend(0.87,0.65,0.99,0.99, ""); |
113 |
|
|
114 |
|
|
115 |
for (Int_t i=0; i<numkey; i++){ |
for (Int_t i=0; i<numkey; i++){ |
139 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
140 |
graph->SetMarkerSize(0.7); |
graph->SetMarkerSize(0.7); |
141 |
mg1->Add(graph); |
mg1->Add(graph); |
142 |
if (cont[0]==0) leg1->AddEntry(graph,"Physic End_Run (7=0x07)","p"); |
if (cont[0]==0) leg1b->AddEntry(graph,"PhysEndRun (0x07)","p"); |
143 |
cont[0]++; |
cont[0]++; |
144 |
break; |
break; |
145 |
} |
} |
149 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
150 |
graph->SetMarkerSize(0.6); |
graph->SetMarkerSize(0.6); |
151 |
mg1->Add(graph); |
mg1->Add(graph); |
152 |
if (cont[1]==0) leg1->AddEntry(graph,"EVENT PACKET (16=0x10)","p"); |
if (cont[1]==0) leg1b->AddEntry(graph,"Physics (0x10)","p"); |
153 |
cont[1]++; |
cont[1]++; |
154 |
break; |
break; |
155 |
} |
} |
159 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
160 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
161 |
mg1->Add(graph); |
mg1->Add(graph); |
162 |
if (cont[2]==0) leg1->AddEntry(graph,"Run Header (32=0x20)- Run Trailer (33=0x21)","p"); |
if (cont[2]==0) leg1b->AddEntry(graph,"RunHeader/Trailer (0x20/21)","p"); |
163 |
cont[2]++; |
cont[2]++; |
164 |
break; |
break; |
165 |
} |
} |
169 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
170 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
171 |
mg1->Add(graph); |
mg1->Add(graph); |
172 |
if (cont[2]==0) leg1->AddEntry(graph,"Run Header (32=0x20)- Run Trailer (33=0x21)","p"); |
if (cont[2]==0) leg1b->AddEntry(graph,"RunHeader/Trailer (0x20/21)","p"); |
173 |
cont[2]++; |
cont[2]++; |
174 |
break; |
break; |
175 |
} |
} |
180 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
181 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
182 |
mg1->Add(graph); |
mg1->Add(graph); |
183 |
if (cont[23]==0) leg1->AddEntry(graph,"Calib Cal_Pulse1 (8=0x08)","p"); |
if (cont[23]==0) leg1b->AddEntry(graph,"CalibCalPulse1 (0x08)","p"); |
184 |
cont[23]++; |
cont[23]++; |
185 |
break; |
break; |
186 |
} |
} |
190 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
191 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
192 |
mg1->Add(graph); |
mg1->Add(graph); |
193 |
if (cont[24]==0) leg1->AddEntry(graph,"Calib Cal_Pulse2 (9=0x09)","p"); |
if (cont[24]==0) leg1b->AddEntry(graph,"CalibCalPulse2 (0x09)","p"); |
194 |
cont[24]++; |
cont[24]++; |
195 |
break; |
break; |
196 |
} |
} |
200 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
201 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
202 |
mg1->Add(graph); |
mg1->Add(graph); |
203 |
if (cont[25]==0) leg1->AddEntry(graph,"Calib_Trk_Both (17=0x11)","p"); |
if (cont[25]==0) leg1b->AddEntry(graph,"CalibTrkBoth (0x11)","p"); |
204 |
cont[25]++; |
cont[25]++; |
205 |
break; |
break; |
206 |
} |
} |
210 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
211 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
212 |
mg1->Add(graph); |
mg1->Add(graph); |
213 |
if (cont[26]==0) leg1->AddEntry(graph,"Calib_Trk_1 (18=0x12)","p"); |
if (cont[26]==0) leg1b->AddEntry(graph,"CalibTrk1 (0x12)","p"); |
214 |
cont[26]++; |
cont[26]++; |
215 |
break; |
break; |
216 |
} |
} |
220 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
221 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
222 |
mg1->Add(graph); |
mg1->Add(graph); |
223 |
if (cont[27]==0) leg1->AddEntry(graph,"Calib_Trk_2 (19=0x13)","p"); |
if (cont[27]==0) leg1b->AddEntry(graph,"CalibTrk2 (0x13)","p"); |
224 |
cont[27]++; |
cont[27]++; |
225 |
break; |
break; |
226 |
} |
} |
227 |
case 21:{ |
case 29:{ |
228 |
TGraph *graph = new TGraph(1, obt, id); |
TGraph *graph = new TGraph(1, obt, id); |
229 |
graph->SetMarkerColor(30); |
graph->SetMarkerColor(30); |
230 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
231 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
232 |
mg1->Add(graph); |
mg1->Add(graph); |
233 |
if (cont[28]==0) leg1->AddEntry(graph,"Calib_Trd (21=0x15)","p"); |
if (cont[28]==0) leg1b->AddEntry(graph,"Calib_Cal (0x1d)","p"); |
234 |
cont[28]++; |
cont[28]++; |
235 |
break; |
break; |
236 |
} |
} |
240 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
241 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
242 |
mg1->Add(graph); |
mg1->Add(graph); |
243 |
if (cont[29]==0) leg1->AddEntry(graph,"Calib_Tof (22=0x16)","p"); |
if (cont[29]==0) leg1b->AddEntry(graph,"CalibTof (0x16)","p"); |
244 |
cont[29]++; |
cont[29]++; |
245 |
break; |
break; |
246 |
} |
} |
250 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
251 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
252 |
mg1->Add(graph); |
mg1->Add(graph); |
253 |
if (cont[30]==0) leg1->AddEntry(graph,"Calib_S4 (23=0x17)","p"); |
if (cont[30]==0) leg1b->AddEntry(graph,"CalibS4 (0x17)","p"); |
254 |
cont[30]++; |
cont[30]++; |
255 |
break; |
break; |
256 |
} |
} |
260 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
261 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
262 |
mg1->Add(graph); |
mg1->Add(graph); |
263 |
if (cont[31]==0) leg1->AddEntry(graph,"Calib_Cal_Ped (24=0x18)","p"); |
if (cont[31]==0) leg1b->AddEntry(graph,"CalibCalPed (0x18)","p"); |
264 |
cont[31]++; |
cont[31]++; |
265 |
break; |
break; |
266 |
} |
} |
270 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
271 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
272 |
mg1->Add(graph); |
mg1->Add(graph); |
273 |
if (cont[32]==0) leg1->AddEntry(graph,"Calib1_Ac_1 (25=0x19)","p"); |
if (cont[32]==0) leg1b->AddEntry(graph,"Calib1_Ac1 (0x19)","p"); |
274 |
cont[32]++; |
cont[32]++; |
275 |
break; |
break; |
276 |
} |
} |
280 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
281 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
282 |
mg1->Add(graph); |
mg1->Add(graph); |
283 |
if (cont[33]==0) leg1->AddEntry(graph,"Calib2_Ac_1 (26=0x1a)","p"); |
if (cont[33]==0) leg1b->AddEntry(graph,"Calib2_Ac1 (0x1a)","p"); |
284 |
cont[33]++; |
cont[33]++; |
285 |
break; |
break; |
286 |
} |
} |
290 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
291 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
292 |
mg1->Add(graph); |
mg1->Add(graph); |
293 |
if (cont[34]==0) leg1->AddEntry(graph,"Calib1_Ac_2 (27=0x1b)","p"); |
if (cont[34]==0) leg1b->AddEntry(graph,"Calib1_Ac2 (0x1b)","p"); |
294 |
cont[34]++; |
cont[34]++; |
295 |
break; |
break; |
296 |
} |
} |
300 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
301 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
302 |
mg1->Add(graph); |
mg1->Add(graph); |
303 |
if (cont[35]==0) leg1->AddEntry(graph,"Calib2_Ac_2 (28=0x1c)","p"); |
if (cont[35]==0) leg1b->AddEntry(graph,"Calib2_Ac2 (0x1c)","p"); |
304 |
cont[35]++; |
cont[35]++; |
305 |
break; |
break; |
306 |
} |
} |
310 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
311 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
312 |
mg1->Add(graph); |
mg1->Add(graph); |
313 |
if (cont[36]==0) leg1->AddEntry(graph,"Calib_Header (34=0x22) - Calib Trailer (35=0x23)","p"); |
if (cont[36]==0) leg1b->AddEntry(graph,"CalibHeader/Trailer (0x22/23)","p"); |
314 |
cont[36]++; |
cont[36]++; |
315 |
break; |
break; |
316 |
} |
} |
320 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
321 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
322 |
mg1->Add(graph); |
mg1->Add(graph); |
323 |
if (cont[36]==0) leg1->AddEntry(graph,"Calib_Header (34=0x22) - Calib Trailer (35=0x23)","p"); |
if (cont[36]==0) leg1b->AddEntry(graph,"CalibHeader/Trailer (0x22/23)","p"); |
324 |
cont[36]++; |
cont[36]++; |
325 |
break; |
break; |
326 |
} |
} |
331 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
332 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
333 |
mg1->Add(graph); |
mg1->Add(graph); |
334 |
if (cont[4]==0) leg1->AddEntry(graph,"init header (36=0x24)- init trailer (37=0x25)","p"); |
if (cont[4]==0) leg1b->AddEntry(graph,"InitHeader/Trailer (0x24/25)","p"); |
335 |
cont[4]++; |
cont[4]++; |
336 |
break; |
break; |
337 |
} |
} |
341 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
342 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
343 |
mg1->Add(graph); |
mg1->Add(graph); |
344 |
if (cont[4]==0) leg1->AddEntry(graph,"init header (36=0x24)- init trailer (37=0x25)","p"); |
if (cont[4]==0) leg1b->AddEntry(graph,"InitHeader/Trailer (0x24/25)","p"); |
345 |
cont[4]++; |
cont[4]++; |
346 |
break; |
break; |
347 |
} |
} |
351 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
352 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
353 |
mg2->Add(graph); |
mg2->Add(graph); |
354 |
if (cont[38]==0) leg2->AddEntry(graph,"Event_Tracker (48=0x30)","p"); |
if (cont[38]==0) leg2->AddEntry(graph,"EventTrk (0x30)","p"); |
355 |
cont[38]++; |
cont[38]++; |
356 |
break; |
break; |
357 |
} |
} |
362 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
363 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
364 |
mg2->Add(graph); |
mg2->Add(graph); |
365 |
if (cont[39]==0) leg2->AddEntry(graph,"Test_trk (64=0x40)","p"); |
if (cont[39]==0) leg2->AddEntry(graph,"Test_trk (0x40)","p"); |
366 |
cont[39]++; |
cont[39]++; |
367 |
break; |
break; |
368 |
} |
} |
372 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
373 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
374 |
mg2->Add(graph); |
mg2->Add(graph); |
375 |
if (cont[40]==0) leg2->AddEntry(graph,"Test_Tof (65=0x41)","p"); |
if (cont[40]==0) leg2->AddEntry(graph,"Test_Tof (0x41)","p"); |
376 |
cont[40]++; |
cont[40]++; |
377 |
break; |
break; |
378 |
} |
} |
383 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
384 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
385 |
mg2->Add(graph); |
mg2->Add(graph); |
386 |
if (cont[41]==0) leg2->AddEntry(graph,"Log Block (80=0x50)","p"); |
if (cont[41]==0) leg2->AddEntry(graph,"Log (0x50)","p"); |
387 |
cont[41]++; |
cont[41]++; |
388 |
break; |
break; |
389 |
} |
} |
394 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
395 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
396 |
mg2->Add(graph); |
mg2->Add(graph); |
397 |
if (cont[42]==0) leg2->AddEntry(graph,"Vardump Block (81=0X51)","p"); |
if (cont[42]==0) leg2->AddEntry(graph,"VarDump (0X51)","p"); |
398 |
cont[42]++; |
cont[42]++; |
399 |
break; |
break; |
400 |
} |
} |
404 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
405 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
406 |
mg2->Add(graph); |
mg2->Add(graph); |
407 |
if (cont[43]==0) leg2->AddEntry(graph,"Arrdump Block (82=0x52)","p"); |
if (cont[43]==0) leg2->AddEntry(graph,"ArrDump (x52)","p"); |
408 |
cont[43]++; |
cont[43]++; |
409 |
break; |
break; |
410 |
} |
} |
414 |
graph->SetMarkerStyle(23); |
graph->SetMarkerStyle(23); |
415 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
416 |
mg2->Add(graph); |
mg2->Add(graph); |
417 |
if (cont[44]==0) leg2->AddEntry(graph,"Tabdump Block (83=0x53)","p"); |
if (cont[44]==0) leg2->AddEntry(graph,"TabDump (0x53)","p"); |
418 |
cont[44]++; |
cont[44]++; |
419 |
break; |
break; |
420 |
} |
} |
425 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
426 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
427 |
mg2->Add(graph); |
mg2->Add(graph); |
428 |
if (cont[45]==0) leg2->AddEntry(graph,"Tmtc Block (84=0x54)","p"); |
if (cont[45]==0) leg2->AddEntry(graph,"Tmtc (0x54)","p"); |
429 |
cont[45]++; |
cont[45]++; |
430 |
break; |
break; |
431 |
} |
} |
436 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
437 |
graph->SetMarkerSize(1); |
graph->SetMarkerSize(1); |
438 |
mg2->Add(graph); |
mg2->Add(graph); |
439 |
if (cont[46]==0) leg2->AddEntry(graph,"Mcmd Block (85=0x55)","p"); |
if (cont[46]==0) leg2->AddEntry(graph,"Mcmd (0x55)","p"); |
440 |
cont[46]++; |
cont[46]++; |
441 |
break; |
break; |
442 |
} |
} |
443 |
|
case 96:{ |
444 |
|
TGraph *graph = new TGraph(1, obt, id); |
445 |
|
graph->SetMarkerColor(20); |
446 |
|
graph->SetMarkerStyle(21); |
447 |
|
graph->SetMarkerSize(1); |
448 |
|
mg2->Add(graph); |
449 |
|
if (cont[22]==0) leg2->AddEntry(graph,"ForceFECmd (0x60)","p"); |
450 |
|
cont[22]++; |
451 |
|
break; |
452 |
|
} |
453 |
case 112:{ |
case 112:{ |
454 |
TGraph *graph = new TGraph(1, obt, id); |
TGraph *graph = new TGraph(1, obt, id); |
455 |
graph->SetMarkerColor(1); |
graph->SetMarkerColor(1); |
456 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
457 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
458 |
mg3->Add(graph); |
mg3->Add(graph); |
459 |
if (cont[6]==0) leg3->AddEntry(graph,"ac_1_init (112=0x70)","p"); |
if (cont[6]==0) leg3->AddEntry(graph,"Ac1Init (0x70)","p"); |
460 |
cont[6]++; |
cont[6]++; |
461 |
break; |
break; |
462 |
} |
} |
466 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
467 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
468 |
mg3->Add(graph); |
mg3->Add(graph); |
469 |
if (cont[7]==0) leg3->AddEntry(graph,"cal_init (113=0x71)","p"); |
if (cont[7]==0) leg3->AddEntry(graph,"CalInit (0x71)","p"); |
470 |
cont[7]++; |
cont[7]++; |
471 |
break; |
break; |
472 |
} |
} |
476 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
477 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
478 |
mg3->Add(graph); |
mg3->Add(graph); |
479 |
if (cont[8]==0) leg3->AddEntry(graph,"trk_init (114=0x72)","p"); |
if (cont[8]==0) leg3->AddEntry(graph,"TrkInit (0x72)","p"); |
480 |
cont[8]++; |
cont[8]++; |
481 |
break; |
break; |
482 |
} |
} |
486 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
487 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
488 |
mg3->Add(graph); |
mg3->Add(graph); |
489 |
if (cont[9]==0) leg3->AddEntry(graph,"tof_init (115=0x73)","p"); |
if (cont[9]==0) leg3->AddEntry(graph,"TofInit (0x73)","p"); |
490 |
cont[9]++; |
cont[9]++; |
491 |
break; |
break; |
492 |
} |
} |
496 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
497 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
498 |
mg3->Add(graph); |
mg3->Add(graph); |
499 |
if (cont[10]==0) leg3->AddEntry(graph,"trg_init (116=0x74)","p"); |
if (cont[10]==0) leg3->AddEntry(graph,"TrgInit (0x74)","p"); |
500 |
cont[10]++; |
cont[10]++; |
501 |
break; |
break; |
502 |
} |
} |
506 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
507 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
508 |
mg3->Add(graph); |
mg3->Add(graph); |
509 |
if (cont[11]==0) leg3->AddEntry(graph,"nd_init (117=0x75)","p"); |
if (cont[11]==0) leg3->AddEntry(graph,"NdInit (0x75)","p"); |
510 |
cont[11]++; |
cont[11]++; |
511 |
break; |
break; |
512 |
} |
} |
516 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
517 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
518 |
mg3->Add(graph); |
mg3->Add(graph); |
519 |
if (cont[12]==0) leg3->AddEntry(graph,"s4_init (118=0x76)","p"); |
if (cont[12]==0) leg3->AddEntry(graph,"S4Init (0x76)","p"); |
520 |
cont[12]++; |
cont[12]++; |
521 |
break; |
break; |
522 |
} |
} |
526 |
graph->SetMarkerStyle(22); |
graph->SetMarkerStyle(22); |
527 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
528 |
mg3->Add(graph); |
mg3->Add(graph); |
529 |
if (cont[13]==0) leg3->AddEntry(graph,"ac_2_init (119=0x77)","p"); |
if (cont[13]==0) leg3->AddEntry(graph,"Ac2Init (0x77)","p"); |
530 |
cont[13]++; |
cont[13]++; |
531 |
break; |
break; |
532 |
} |
} |
537 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
538 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
539 |
mg3->Add(graph); |
mg3->Add(graph); |
540 |
if (cont[14]==0) leg3->AddEntry(graph,"cal_alarm (129=0x81)","p"); |
if (cont[14]==0) leg3->AddEntry(graph,"CalAlarm (0x81)","p"); |
541 |
cont[14]++; |
cont[14]++; |
542 |
break; |
break; |
543 |
} |
} |
547 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
548 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
549 |
mg3->Add(graph); |
mg3->Add(graph); |
550 |
if (cont[15]==0) leg3->AddEntry(graph,"ac1_alarm (130=0x82)","p"); |
if (cont[15]==0) leg3->AddEntry(graph,"Ac1Alarm (0x82)","p"); |
551 |
cont[15]++; |
cont[15]++; |
552 |
break; |
break; |
553 |
} |
} |
557 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
558 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
559 |
mg3->Add(graph); |
mg3->Add(graph); |
560 |
if (cont[16]==0) leg3->AddEntry(graph,"trk_alarm (131=0x83)","p"); |
if (cont[16]==0) leg3->AddEntry(graph,"TrkAlarm (0x83)","p"); |
561 |
cont[16]++; |
cont[16]++; |
562 |
break; |
break; |
563 |
} |
} |
567 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
568 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
569 |
mg3->Add(graph); |
mg3->Add(graph); |
570 |
if (cont[17]==0) leg3->AddEntry(graph,"trg_alarm (132=0x84)","p"); |
if (cont[17]==0) leg3->AddEntry(graph,"TrgAlarm (0x84)","p"); |
571 |
cont[17]++; |
cont[17]++; |
572 |
break; |
break; |
573 |
} |
} |
577 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
578 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
579 |
mg3->Add(graph); |
mg3->Add(graph); |
580 |
if (cont[18]==0) leg3->AddEntry(graph,"tof_alarm (133=0x85)","p"); |
if (cont[18]==0) leg3->AddEntry(graph,"TofAlarm (0x85)","p"); |
581 |
cont[18]++; |
cont[18]++; |
582 |
break; |
break; |
583 |
} |
} |
587 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
588 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
589 |
mg3->Add(graph); |
mg3->Add(graph); |
590 |
if (cont[19]==0) leg3->AddEntry(graph,"s4_alarm (134=0x86)","p"); |
if (cont[19]==0) leg3->AddEntry(graph,"S4Alarm (0x86)","p"); |
591 |
cont[19]++; |
cont[19]++; |
592 |
break; |
break; |
593 |
} |
} |
597 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
598 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
599 |
mg3->Add(graph); |
mg3->Add(graph); |
600 |
if (cont[20]==0) leg3->AddEntry(graph,"ac_alarm (136=0x88)","p"); |
if (cont[20]==0) leg3->AddEntry(graph,"Ac2Alarm (0x88)","p"); |
601 |
cont[20]++; |
cont[20]++; |
602 |
break; |
break; |
603 |
} |
} |
604 |
case 137:{ |
/*case 137:{ |
605 |
TGraph *graph = new TGraph(1, obt, id); |
TGraph *graph = new TGraph(1, obt, id); |
606 |
graph->SetMarkerColor(32); |
graph->SetMarkerColor(32); |
607 |
graph->SetMarkerStyle(21); |
graph->SetMarkerStyle(21); |
610 |
if (cont[21]==0) leg3->AddEntry(graph,"ac2_alarm (137=0x89)","p"); |
if (cont[21]==0) leg3->AddEntry(graph,"ac2_alarm (137=0x89)","p"); |
611 |
cont[21]++; |
cont[21]++; |
612 |
break; |
break; |
613 |
} |
} |
614 |
case 138:{ |
case 138:{ |
615 |
TGraph *graph = new TGraph(1, obt, id); |
TGraph *graph = new TGraph(1, obt, id); |
616 |
graph->SetMarkerColor(20); |
graph->SetMarkerColor(20); |
620 |
if (cont[22]==0) leg3->AddEntry(graph,"s4_adc_ac_2 (138=0x8a)","p"); |
if (cont[22]==0) leg3->AddEntry(graph,"s4_adc_ac_2 (138=0x8a)","p"); |
621 |
cont[22]++; |
cont[22]++; |
622 |
break; |
break; |
623 |
} |
}*/ |
624 |
case 161:{ |
case 161:{ |
625 |
TGraph *graph = new TGraph(1, obt, id); |
TGraph *graph = new TGraph(1, obt, id); |
626 |
graph->SetMarkerColor(3); |
graph->SetMarkerColor(2); |
627 |
graph->SetMarkerStyle(5); |
graph->SetMarkerStyle(3); |
628 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
629 |
mg3->Add(graph); |
mg3->Add(graph); |
630 |
if (cont[3]==0) leg3->AddEntry(graph,"TSB_T (161=0xA1)","p"); |
if (cont[3]==0) leg3->AddEntry(graph,"TsbT (0xA1)","p"); |
631 |
cont[3]++; |
cont[3]++; |
632 |
break; |
break; |
633 |
} |
} |
634 |
case 171:{ |
case 171:{ |
635 |
TGraph *graph = new TGraph(1, obt, id); |
TGraph *graph = new TGraph(1, obt, id); |
636 |
graph->SetMarkerColor(6); |
graph->SetMarkerColor(4); |
637 |
graph->SetMarkerStyle(5); |
graph->SetMarkerStyle(3); |
638 |
graph->SetMarkerSize(1.3); |
graph->SetMarkerSize(1.3); |
639 |
mg3->Add(graph); |
mg3->Add(graph); |
640 |
if (cont[5]==0) leg3->AddEntry(graph,"TSB_B (171=0xAB)","p"); |
if (cont[5]==0) leg3->AddEntry(graph,"TsbB (0xAB)","p"); |
641 |
cont[5]++; |
cont[5]++; |
642 |
break; |
break; |
643 |
} |
} |
652 |
|
|
653 |
finalCanv1->cd(); |
finalCanv1->cd(); |
654 |
mg1->SetMinimum(0); |
mg1->SetMinimum(0); |
655 |
mg1->SetMaximum(50); |
mg1->SetMaximum(55); |
656 |
mg1->Draw("AP"); |
mg1->Draw("AP"); |
657 |
leg1->Draw(); |
mg1->GetXaxis()->SetTitle("OBT (ms)"); |
658 |
|
mg1->GetXaxis()->CenterTitle(); |
659 |
|
mg1->GetYaxis()->SetTitle("Packet ID"); |
660 |
|
mg1->GetYaxis()->CenterTitle(); |
661 |
|
leg1b->Draw(); |
662 |
oss1.str(""); |
oss1.str(""); |
663 |
oss1 << outDir.Data() << filename.Data() << "_PacketScan_1." << format.Data(); |
oss1 << outDir.Data() << filename.Data() << "_PacketScan_1." << format.Data(); |
664 |
|
finalCanv1->Update(); |
665 |
finalCanv1->SaveAs(oss1.str().c_str()); |
finalCanv1->SaveAs(oss1.str().c_str()); |
666 |
|
|
667 |
|
|
668 |
finalCanv2->cd(); |
finalCanv2->cd(); |
669 |
mg2->SetMinimum(50); |
mg2->SetMinimum(60); |
670 |
mg2->SetMaximum(110); |
mg2->SetMaximum(100); |
671 |
mg2->Draw("AP"); |
mg2->Draw("AP"); |
672 |
|
mg2->GetXaxis()->SetTitle("OBT (ms)"); |
673 |
|
mg2->GetXaxis()->CenterTitle(); |
674 |
|
mg2->GetYaxis()->SetTitle("Packet ID"); |
675 |
|
mg2->GetYaxis()->CenterTitle(); |
676 |
leg2->Draw(); |
leg2->Draw(); |
677 |
oss2.str(""); |
oss2.str(""); |
678 |
oss2 << outDir.Data() << filename.Data() << "_PacketScan_2." << format.Data(); |
oss2 << outDir.Data() << filename.Data() << "_PacketScan_2." << format.Data(); |
679 |
|
finalCanv2->Update(); |
680 |
finalCanv2->SaveAs(oss2.str().c_str()); |
finalCanv2->SaveAs(oss2.str().c_str()); |
681 |
|
|
682 |
|
|
684 |
mg3->SetMinimum(110); |
mg3->SetMinimum(110); |
685 |
mg3->SetMaximum(180); |
mg3->SetMaximum(180); |
686 |
mg3->Draw("AP"); |
mg3->Draw("AP"); |
687 |
|
mg3->GetXaxis()->SetTitle("OBT (ms)"); |
688 |
|
mg3->GetXaxis()->CenterTitle(); |
689 |
|
mg3->GetYaxis()->SetTitle("Packet ID"); |
690 |
|
mg3->GetYaxis()->CenterTitle(); |
691 |
leg3->Draw(); |
leg3->Draw(); |
692 |
oss3.str(""); |
oss3.str(""); |
693 |
oss3 << outDir.Data() << filename.Data() << "_PacketScan_3." << format.Data(); |
oss3 << outDir.Data() << filename.Data() << "_PacketScan_3." << format.Data(); |
694 |
|
finalCanv3->Update(); |
695 |
finalCanv3->SaveAs(oss3.str().c_str()); |
finalCanv3->SaveAs(oss3.str().c_str()); |
696 |
|
|
697 |
|
|