2 |
* FTrkScanQlook_EXPERT.cxx |
* FTrkScanQlook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r11 |
* version v1r16 |
6 |
* Parameters: |
* Parameters: |
7 |
* file - the path to the root file to analyze |
* file - the path to the root file to analyze |
8 |
* outdir - total path of output file |
* outdir - total path of output file |
197 |
tr->GetEntry(i); |
tr->GetEntry(i); |
198 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
199 |
if(ph->GetOrbitalTime()>obt){ |
if(ph->GetOrbitalTime()>obt){ |
200 |
ev[0]=i+2; |
ev[0]=i+3; |
201 |
ev[1]=i+3; |
ev[1]=i+4; |
202 |
break; |
break; |
203 |
} |
} |
204 |
} |
} |
211 |
TCanvas *c1[2]; |
TCanvas *c1[2]; |
212 |
|
|
213 |
for(Int_t e=0;e<2;e++){ |
for(Int_t e=0;e<2;e++){ |
214 |
event=ev[e]; |
if(event==0) |
215 |
|
event=ev[e]; |
216 |
|
else { |
217 |
|
event=event+e; |
218 |
|
if(event>ev[e] && ev[0]!=2) |
219 |
|
cal="Event with online calibration"; |
220 |
|
else |
221 |
|
cal="***** ONLINE CALIBRATION NOT FOUND IN THIS FILE *****"; |
222 |
|
} |
223 |
printf("Scan of Entry %d\n",event); |
printf("Scan of Entry %d\n",event); |
224 |
|
|
225 |
tr->GetEntry(event); |
tr->GetEntry(event); |
499 |
if(icomp[nn]==1) histocomp[nn][e]->Draw("9bsame]["); |
if(icomp[nn]==1) histocomp[nn][e]->Draw("9bsame]["); |
500 |
if(imax[nn]==1) histomax[nn][e]->Draw("same]["); |
if(imax[nn]==1) histomax[nn][e]->Draw("same]["); |
501 |
histocomp[nn][e]->Draw("axis same"); |
histocomp[nn][e]->Draw("axis same"); |
502 |
if(nn==1){ |
if(nn==0){ |
503 |
|
b.SetFillColor(107); |
504 |
|
b.SetFillStyle(3945); |
505 |
|
b.DrawBox(768.,-500.,2047.,4500.); |
506 |
|
} |
507 |
|
else if(nn==1){ |
508 |
b.SetFillColor(6); |
b.SetFillColor(6); |
509 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
510 |
b.DrawBox(2944.,-500.,3060.,4500.); |
b.DrawBox(2944.,-500.,3060.,4500.); |
535 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
536 |
b.DrawBox(512.,-500.,768.,4500.); |
b.DrawBox(512.,-500.,768.,4500.); |
537 |
} |
} |
538 |
|
else if(nn==8){ |
539 |
|
b.SetFillColor(107); |
540 |
|
b.SetFillStyle(3954); |
541 |
|
b.DrawBox(512.,-500.,768.,4500.); |
542 |
|
} |
543 |
|
else if(nn==9){ |
544 |
|
b.SetFillColor(107); |
545 |
|
b.SetFillStyle(3954); |
546 |
|
b.DrawBox(256.,-500.,384.,4500.); |
547 |
|
} |
548 |
|
else if(nn==10){ |
549 |
|
b.SetFillColor(107); |
550 |
|
b.SetFillStyle(3954); |
551 |
|
b.DrawBox(2560.,-500.,3070.,4500.); |
552 |
|
} |
553 |
else if(nn==11){ |
else if(nn==11){ |
554 |
b.SetFillColor(6); |
b.SetFillColor(6); |
555 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
557 |
|
|
558 |
b.SetFillColor(107); |
b.SetFillColor(107); |
559 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
560 |
b.DrawBox(0.,-500.,512.,4500); |
b.DrawBox(0.,-500.,512.,4500.); |
561 |
b.DrawBox(1920.,-500.,2048.,4500); |
b.DrawBox(1920.,-500.,2560.,4500.); |
|
b.DrawBox(2176.,-500.,2304.,4500); |
|
562 |
} |
} |
563 |
c1[e]->Update(); |
c1[e]->Update(); |
564 |
} |
} |