| 2 |
* FTrkScanQlook_EXPERT.cxx |
* FTrkScanQlook_EXPERT.cxx |
| 3 |
* |
* |
| 4 |
* autor: D.Fedele |
* autor: D.Fedele |
| 5 |
* version v1r12 |
* version v1r15 |
| 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){ |
else if(nn==9){ |
| 544 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 545 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 553 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 554 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 555 |
b.DrawBox(0.,-500.,512.,4500); |
b.DrawBox(0.,-500.,512.,4500); |
| 556 |
b.DrawBox(1920.,-500.,2048.,4500); |
b.DrawBox(1920.,-500.,2560.,4500); |
|
b.DrawBox(2176.,-500.,2304.,4500); |
|
| 557 |
} |
} |
| 558 |
c1[e]->Update(); |
c1[e]->Update(); |
| 559 |
} |
} |