2 |
* FTrkScanQlook_EXPERT.cxx |
* FTrkScanQlook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r13 |
* version v1r14 |
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.); |