2 |
* FTrkScanQlook_EXPERT.cxx |
* FTrkScanQlook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v2r01 |
* version v2r02 |
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 |
202 |
printf(" Number of Header Entries: %d\n",neventH); |
printf(" Number of Header Entries: %d\n",neventH); |
203 |
printf(" Number of Calibration: %d\n",cevents); |
printf(" Number of Calibration: %d\n",cevents); |
204 |
|
|
205 |
Long64_t obt=0; |
Long64_t obt=0,hobt[neventH]; |
206 |
Int_t eve,cin=0,cins=0; |
Int_t eve,cin=0,cins=0,br=0; |
207 |
TString cal=""; |
TString cal=""; |
208 |
|
|
209 |
eve=3; |
eve=3; |
210 |
for(Int_t i=0;i<neventH;i++){ |
for(Int_t i=0;i<neventH;i++){ |
211 |
otr->GetEntry(i); |
otr->GetEntry(i); |
212 |
pH = eH->GetPscuHeader(); |
pH = eH->GetPscuHeader(); |
213 |
if(reh->TRK_CALIB_USED!=104){ |
hobt[i]= pH->GetOrbitalTime(); |
214 |
|
if(reh->TRK_CALIB_USED!=104 && br==0){ |
215 |
obt = pH->GetOrbitalTime(); |
obt = pH->GetOrbitalTime(); |
216 |
cal="Event with online calibration"; |
cal="Event with online calibration"; |
217 |
break; |
br=1; |
218 |
} |
} |
219 |
if(i==neventH-1){ |
if(i==neventH-1 && br==0){ |
220 |
cal="***** ONLINE CALIBRATION NOT FOUND IN THIS FILE *****"; |
cal="***** ONLINE CALIBRATION NOT FOUND IN THIS FILE *****"; |
221 |
eve=2; |
eve=2; |
222 |
} |
} |
302 |
csum[cins-1]->SetFillColor(10); |
csum[cins-1]->SetFillColor(10); |
303 |
csum[cins-1]->Range(0,0,1,1); |
csum[cins-1]->Range(0,0,1,1); |
304 |
fromfile.str(""); |
fromfile.str(""); |
305 |
fromfile<<"FTrkScanQLook_EXPERT File: "<<ffile<<" ----> Sum of "<<totsum<<" events after the "<<cins<<" calibration "; |
fromfile<<"FTrkScanQLook_EXPERT File: "<<ffile<<" ----> Sum of "<<totsum<<" events after the "<<cins<<" calibration at OBT= "<<hobt[(cod->Get(pctp->RunHeader))-1]; |
306 |
t->SetTextSize(0.02); |
t->SetTextSize(0.02); |
307 |
t->DrawLatex(0.02,0.98,fromfile.str().c_str()); |
t->DrawLatex(0.02,0.98,fromfile.str().c_str()); |
308 |
|
|
890 |
b.SetFillColor(107); |
b.SetFillColor(107); |
891 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
892 |
b.DrawBox(384.,-500.,512.,4500.); |
b.DrawBox(384.,-500.,512.,4500.); |
893 |
|
b.DrawBox(2048.,-500.,2432.,4500.); |
894 |
b.DrawBox(2816.,-500.,2944.,4500.); |
b.DrawBox(2816.,-500.,2944.,4500.); |
|
b.DrawBox(2048.,-500.,2176.,4500.); |
|
895 |
} |
} |
896 |
else if(nn==4){ |
else if(nn==4){ |
897 |
b.SetFillColor(107); |
b.SetFillColor(107); |
898 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
899 |
b.DrawBox(384.,-500.,512.,4500.); |
b.DrawBox(384.,-500.,512.,4500.); |
900 |
|
b.DrawBox(2816.,-500.,2944.,4500); |
901 |
} |
} |
902 |
else if(nn==6){ |
else if(nn==6){ |
903 |
b.SetFillColor(6); |
b.SetFillColor(6); |
904 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
|
b.DrawBox(2560.,-500.,2816.,4500.); |
|
905 |
b.DrawBox(1024.,-500.,1280.,4500.); |
b.DrawBox(1024.,-500.,1280.,4500.); |
906 |
|
|
907 |
b.SetFillColor(107); |
b.SetFillColor(107); |
908 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
909 |
b.DrawBox(512.,-500.,768.,4500.); |
b.DrawBox(512.,-500.,768.,4500.); |
910 |
b.DrawBox(1280.,-500.,1792.,4500.); |
b.DrawBox(1280.,-500.,1792.,4500.); |
911 |
|
b.DrawBox(2560.,-500.,2816.,4500.); |
912 |
} |
} |
913 |
else if(nn==7){ |
else if(nn==7){ |
914 |
b.SetFillColor(107); |
b.SetFillColor(107); |
930 |
else if(nn==10){ |
else if(nn==10){ |
931 |
b.SetFillColor(107); |
b.SetFillColor(107); |
932 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
933 |
|
b.DrawBox(1024.,-500.,1152.,4500); |
934 |
b.DrawBox(2048.,-500.,3070.,4500.); |
b.DrawBox(2048.,-500.,3070.,4500.); |
935 |
} |
} |
936 |
else if(nn==11){ |
else if(nn==11){ |