2 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r10 |
* version v1r12 |
6 |
* Parameters: |
* Parameters: |
7 |
* file - the data file to analyze |
* file - the data file to analyze |
8 |
* fromevent - first event to analyze |
* fromevent - first event to analyze |
136 |
} else if (toevent > nevent) { |
} else if (toevent > nevent) { |
137 |
maxevent = nevent; |
maxevent = nevent; |
138 |
} else { |
} else { |
139 |
maxevent = toevent+1; |
maxevent = nevent; |
140 |
} |
} |
141 |
nevent=maxevent-minevent ; |
nevent=maxevent-minevent ; |
142 |
} |
} |
263 |
alarm1 << "================================================="<< endl<<endl; |
alarm1 << "================================================="<< endl<<endl; |
264 |
|
|
265 |
alarm1 << "Alarm variables (range 0-1)"<<endl; |
alarm1 << "Alarm variables (range 0-1)"<<endl; |
266 |
alarm1 << " ALARM[1]= 0x"<< hex << (Int_t)al->ALARM[1]<<endl; |
alarm1 << " ALARM[1]= 0x"<< hex << (Int_t)al->ALARM[0]<<endl; |
267 |
alarm1 << " ALARM[2]= 0x"<< (Int_t)al->ALARM[2]<<endl; |
alarm1 << " ALARM[2]= 0x"<< (Int_t)al->ALARM[1]<<endl; |
268 |
alarm1 << " CmdDuringTrig= 0x"<< (Int_t)al->CmdDuringTrig<<endl; |
alarm1 << " CmdDuringTrig= 0x"<< (Int_t)al->CmdDuringTrig<<endl; |
269 |
alarm1 << " FinalCheck= 0x"<< (Int_t)al->FinalCheck<<endl; |
alarm1 << " FinalCheck= 0x"<< (Int_t)al->FinalCheck<<endl; |
270 |
alarm1 << " FlashData= 0x"<< (Int_t)al->FlashData<<endl; |
alarm1 << " FlashData= 0x"<< (Int_t)al->FlashData<<endl; |
463 |
pad6[i]->cd(); |
pad6[i]->cd(); |
464 |
temp[i][ii]= new TGraph(v,xt_tmp,tempt_tmp); |
temp[i][ii]= new TGraph(v,xt_tmp,tempt_tmp); |
465 |
temp[i][ii]->SetTitle(tit.str().c_str()); |
temp[i][ii]->SetTitle(tit.str().c_str()); |
466 |
|
if(v==1) temp[i][ii]->GetXaxis()->SetNdivisions(502,kTRUE); |
467 |
temp[i][ii]->GetXaxis()->SetLabelSize(0.04); |
temp[i][ii]->GetXaxis()->SetLabelSize(0.04); |
468 |
temp[i][ii]->GetXaxis()->SetTitleSize(0.04); |
temp[i][ii]->GetXaxis()->SetTitleSize(0.04); |
469 |
temp[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
temp[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
579 |
mag[i][ii]->GetXaxis()->CenterTitle(); |
mag[i][ii]->GetXaxis()->CenterTitle(); |
580 |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
581 |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
582 |
else mag[i][ii]->GetYaxis()->SetRangeUser(2060,2066); |
else mag[i][ii]->GetYaxis()->SetRangeUser(2060,2067); |
583 |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
584 |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
585 |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
627 |
break; |
break; |
628 |
|
|
629 |
case 4: |
case 4: |
630 |
li.DrawLine(min,2065.,max,2065.); |
li.DrawLine(min,2066.,max,2066.); |
631 |
li.DrawLine(min,2061.,max,2061.); |
li.DrawLine(min,2061.,max,2061.); |
632 |
t1->DrawLatex(xlat,2065.15,ma.str().c_str()); |
t1->DrawLatex(xlat,2066.15,ma.str().c_str()); |
633 |
t1->DrawLatex(xlat,2060.85,mi.str().c_str()); |
t1->DrawLatex(xlat,2060.85,mi.str().c_str()); |
634 |
break; |
break; |
635 |
|
|
871 |
CompTimeCanv[ii]->Update(); |
CompTimeCanv[ii]->Update(); |
872 |
} |
} |
873 |
|
|
874 |
|
|
875 |
EventNumCanv[ii]->cd(); |
EventNumCanv[ii]->cd(); |
876 |
pt = new TPad("pt"," ",0.02,0.01,1.,0.98,18,0,0); |
pt = new TPad("pt"," ",0.02,0.01,1.,0.98,18,0,0); |
877 |
pt->SetFillColor(10); |
pt->SetFillColor(10); |
894 |
eventnumb[ii]->SetMarkerStyle(21); |
eventnumb[ii]->SetMarkerStyle(21); |
895 |
eventnumb[ii]->SetMarkerColor(kBlue); |
eventnumb[ii]->SetMarkerColor(kBlue); |
896 |
eventnumb[ii]->SetMarkerSize(0.2); |
eventnumb[ii]->SetMarkerSize(0.2); |
897 |
|
oss1.str(""); |
898 |
|
oss1<<"number of events in this graph: "<<maxev-minev; |
899 |
|
t->SetTextColor(kBlue); |
900 |
|
t->SetTextSize(0.02); |
901 |
|
double xtex=0,ytex=0; |
902 |
|
xtex=x[maxev-minev-1]-(x[maxev-minev-1]-x[0])/3; |
903 |
|
ytex=1000.+eventnumb[ii]->GetYaxis()->GetXmax(); |
904 |
|
t->DrawLatex(xtex,ytex,oss1.str().c_str()); |
905 |
|
oss1.str(""); |
906 |
eventnumb[ii]->Draw("ap"); |
eventnumb[ii]->Draw("ap"); |
907 |
EventNumCanv[ii]->Update(); |
EventNumCanv[ii]->Update(); |
908 |
|
|
914 |
|
|
915 |
} |
} |
916 |
|
|
|
|
|
917 |
alarm.close(); |
alarm.close(); |
918 |
|
|
919 |
//**************************************************************************************** |
//**************************************************************************************** |
1069 |
b.SetFillColor(6); |
b.SetFillColor(6); |
1070 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
1071 |
b.DrawBox(2560.,0.,2816.,maxhist); |
b.DrawBox(2560.,0.,2816.,maxhist); |
1072 |
b.DrawBox(1024.,0.,1792.,maxhist); |
b.DrawBox(1024.,0.,1535.,maxhist); |
1073 |
|
|
1074 |
b.SetFillColor(107); |
b.SetFillColor(107); |
1075 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
1076 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
1077 |
|
b.DrawBox(1536.,0.,1792.,maxhist); |
1078 |
} |
} |
1079 |
else if(i==7){ |
else if(i==7){ |
1080 |
maxhist= illuminazione[i]->GetMaximum(); |
maxhist= illuminazione[i]->GetMaximum(); |
1092 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
1093 |
b.DrawBox(0.,0.,512.,maxhist); |
b.DrawBox(0.,0.,512.,maxhist); |
1094 |
b.DrawBox(1920.,0.,2048.,maxhist); |
b.DrawBox(1920.,0.,2048.,maxhist); |
1095 |
|
b.DrawBox(2176.,0.,2304.,maxhist); |
1096 |
} |
} |
1097 |
IlluminaCanv->Update(); |
IlluminaCanv->Update(); |
1098 |
} |
} |
1108 |
else if(cntpgtemp<=cntpgdat) totpg=cntpgdat; |
else if(cntpgtemp<=cntpgdat) totpg=cntpgdat; |
1109 |
|
|
1110 |
for(Int_t fl=0;fl<totpg;fl++){ |
for(Int_t fl=0;fl<totpg;fl++){ |
1111 |
|
|
1112 |
if(!strcmp(outfile.Data(),"ps")||!strcmp(outfile.Data(),"pdf")){ |
if(!strcmp(outfile.Data(),"ps")||!strcmp(outfile.Data(),"pdf")){ |
1113 |
out1.str(""); |
out1.str(""); |
1114 |
out2.str(""); |
out2.str(""); |