| 2 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
| 3 |
* |
* |
| 4 |
* autor: D.Fedele |
* autor: D.Fedele |
| 5 |
* version v1r14 |
* version v1r23 |
| 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 |
| 145 |
// information about the RunHeader |
// information about the RunHeader |
| 146 |
ULong64_t HOBT[neventH]; |
ULong64_t HOBT[neventH]; |
| 147 |
Int_t trk_cal_us[neventH]; |
Int_t trk_cal_us[neventH]; |
| 148 |
|
ULong_t acq_info[neventH]; |
| 149 |
Int_t countnboot=1; |
Int_t countnboot=1; |
| 150 |
for (Int_t vi=0; vi<neventH;vi++){ |
for (Int_t vi=0; vi<neventH;vi++){ |
| 151 |
HOBT[vi]=0; |
HOBT[vi]=0; |
| 152 |
trk_cal_us[vi]=0; |
trk_cal_us[vi]=0; |
| 153 |
|
acq_info[vi]=0; |
| 154 |
} |
} |
| 155 |
for (Int_t ev=0; ev<neventH; ev++){ |
for (Int_t ev=0; ev<neventH; ev++){ |
| 156 |
otr->GetEntry(ev); |
otr->GetEntry(ev); |
| 157 |
pH = eH->GetPscuHeader(); |
pH = eH->GetPscuHeader(); |
| 158 |
HOBT[ev]= pH->GetOrbitalTime(); |
HOBT[ev]= pH->GetOrbitalTime(); |
| 159 |
trk_cal_us[ev]=reh->TRK_CALIB_USED; |
trk_cal_us[ev]=reh->TRK_CALIB_USED; |
| 160 |
|
acq_info[ev]=reh->ACQ_BUILD_INFO; |
| 161 |
if((HOBT[ev]<HOBT[ev-1]) && ev>0) |
if((HOBT[ev]<HOBT[ev-1]) && ev>0) |
| 162 |
countnboot+=1; |
countnboot+=1; |
| 163 |
} |
} |
| 366 |
|
|
| 367 |
TLatex *t=new TLatex(); |
TLatex *t=new TLatex(); |
| 368 |
TLatex *t1=new TLatex(); |
TLatex *t1=new TLatex(); |
|
|
|
| 369 |
|
|
| 370 |
|
TLine li,liva1; |
| 371 |
|
|
| 372 |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
Int_t minev=minevent,maxev=maxevent,countTEMP=0,countMAG=0; |
| 373 |
ULong_t countALARMx=0,countALARMy=0; |
ULong_t countALARMx=0,countALARMy=0,countFC[12],countFL1[12],countFL2[12],countFL3[12],countFL4[12],countFL5[12],countFL6[12]; |
| 374 |
|
|
| 375 |
|
for(int i=0; i<12; i++){ |
| 376 |
|
countFC[i]=0; |
| 377 |
|
countFL1[i]=0; |
| 378 |
|
countFL2[i]=0; |
| 379 |
|
countFL3[i]=0; |
| 380 |
|
countFL4[i]=0; |
| 381 |
|
countFL5[i]=0; |
| 382 |
|
countFL6[i]=0; |
| 383 |
|
} |
| 384 |
|
|
| 385 |
// |
// |
| 386 |
// Fill temperature graphs |
// Fill temperature graphs |
| 456 |
break; |
break; |
| 457 |
} |
} |
| 458 |
else{ |
else{ |
| 459 |
tempt_tmp[v]=(Double_t)((Int_t)(((3.3*tempt[ev][i]/4096)-0.586)/0.0231)); |
tempt_tmp[v]=(Double_t)((Int_t)(((3.3*tempt[ev][i]/4096)-0.586)/0.0231)); |
| 460 |
if(tempt_tmp[v]>100) { |
if(tempt_tmp[v]>100) { |
| 461 |
tempt_tmp[v]=28.5; |
tempt_tmp[v]=28.5; |
| 462 |
tempt_tmpw[vv]=28.5; |
tempt_tmpw[vv]=28.5; |
| 463 |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
| 464 |
} |
} |
| 465 |
else if(tempt_tmp[v]<0){ |
else if(tempt_tmp[v]<0){ |
| 466 |
tempt_tmp[v]=25.5; |
tempt_tmp[v]=25.5; |
| 467 |
tempt_tmpw[vv]=25.5; |
tempt_tmpw[vv]=25.5; |
| 468 |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
xt_tmpw[vv++]=(Double_t)xt[ev]; |
| 469 |
} |
} |
| 470 |
xt_tmp[v++]=(Double_t)xt[ev]; |
xt_tmp[v++]=(Double_t)xt[ev]; |
| 471 |
} |
} |
| 472 |
} |
} |
| 473 |
TempCanv[ii]->cd(); |
TempCanv[ii]->cd(); |
| 477 |
pad6[i]->cd(); |
pad6[i]->cd(); |
| 478 |
temp[i][ii]= new TGraph(v,xt_tmp,tempt_tmp); |
temp[i][ii]= new TGraph(v,xt_tmp,tempt_tmp); |
| 479 |
temp[i][ii]->SetTitle(tit.str().c_str()); |
temp[i][ii]->SetTitle(tit.str().c_str()); |
| 480 |
if(v==1) temp[i][ii]->GetXaxis()->SetNdivisions(502,kTRUE); |
if(v==1) temp[i][ii]->GetXaxis()->SetNdivisions(-501); |
| 481 |
temp[i][ii]->GetXaxis()->SetLabelSize(0.04); |
temp[i][ii]->GetXaxis()->SetLabelSize(0.04); |
| 482 |
temp[i][ii]->GetXaxis()->SetTitleSize(0.04); |
temp[i][ii]->GetXaxis()->SetTitleSize(0.04); |
| 483 |
temp[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
temp[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
| 534 |
t1->DrawLatex(70.,98.7,isfile.str().c_str()); |
t1->DrawLatex(70.,98.7,isfile.str().c_str()); |
| 535 |
isfile.str(""); |
isfile.str(""); |
| 536 |
|
|
|
TLine li; |
|
| 537 |
li.SetLineStyle(1); |
li.SetLineStyle(1); |
| 538 |
li.SetLineWidth(1); |
li.SetLineWidth(1); |
| 539 |
li.SetLineColor(190); |
li.SetLineColor(190); |
| 585 |
pad7[i]->cd(); |
pad7[i]->cd(); |
| 586 |
mag[i][ii]= new TGraph(v,xb_tmp,magt_tmp); |
mag[i][ii]= new TGraph(v,xb_tmp,magt_tmp); |
| 587 |
mag[i][ii]->SetTitle(tit.str().c_str()); |
mag[i][ii]->SetTitle(tit.str().c_str()); |
| 588 |
mag[i][ii]->GetXaxis()->SetNdivisions(502,kTRUE); |
if(v==1) mag[i][ii]->GetXaxis()->SetNdivisions(-501); |
| 589 |
mag[i][ii]->GetXaxis()->SetLabelSize(0.04); |
mag[i][ii]->GetXaxis()->SetLabelSize(0.04); |
| 590 |
mag[i][ii]->GetXaxis()->SetTitleSize(0.04); |
mag[i][ii]->GetXaxis()->SetTitleSize(0.04); |
| 591 |
mag[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
mag[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); |
| 592 |
mag[i][ii]->GetXaxis()->CenterTitle(); |
mag[i][ii]->GetXaxis()->CenterTitle(); |
| 593 |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
| 594 |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
| 595 |
else mag[i][ii]->GetYaxis()->SetRangeUser(2060,2067); |
else mag[i][ii]->GetYaxis()->SetRangeUser(2059,2067); |
| 596 |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
| 597 |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
| 598 |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
| 611 |
ma<<"maximum recorded value"; |
ma<<"maximum recorded value"; |
| 612 |
t->SetTextSize(0.1); |
t->SetTextSize(0.1); |
| 613 |
switch(i){ |
switch(i){ |
| 614 |
case 0: |
case 0: |
| 615 |
li.DrawLine(min,2054.,max,2054.); |
li.DrawLine(min,2054.,max,2054.); |
| 616 |
li.DrawLine(min,2048.,max,2048.); |
li.DrawLine(min,2048.,max,2048.); |
| 617 |
t1->DrawLatex(xlat,2054.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2054.3,ma.str().c_str()); |
| 618 |
t1->DrawLatex(xlat,2047.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2047.7,mi.str().c_str()); |
| 619 |
break; |
break; |
| 620 |
|
|
| 621 |
case 1: |
case 1: |
| 622 |
li.DrawLine(min,2055.,max,2055.); |
li.DrawLine(min,2055.,max,2055.); |
| 623 |
li.DrawLine(min,2050.,max,2050.); |
li.DrawLine(min,2050.,max,2050.); |
| 624 |
t1->DrawLatex(xlat,2055.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2055.3,ma.str().c_str()); |
| 625 |
t1->DrawLatex(xlat,2049.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2049.7,mi.str().c_str()); |
| 626 |
break; |
break; |
| 627 |
|
|
| 628 |
case 2: |
case 2: |
| 629 |
li.DrawLine(min,2056.,max,2056.); |
li.DrawLine(min,2056.,max,2056.); |
| 630 |
li.DrawLine(min,2051.,max,2051.); |
li.DrawLine(min,2051.,max,2051.); |
| 631 |
t1->DrawLatex(xlat,2056.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2056.3,ma.str().c_str()); |
| 632 |
t1->DrawLatex(xlat,2050.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2050.7,mi.str().c_str()); |
| 633 |
break; |
break; |
| 634 |
|
|
| 635 |
case 3: |
case 3: |
| 636 |
li.DrawLine(min,2057.,max,2057.); |
li.DrawLine(min,2057.,max,2057.); |
| 637 |
li.DrawLine(min,2052.,max,2052.); |
li.DrawLine(min,2052.,max,2052.); |
| 638 |
t1->DrawLatex(xlat,2057.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2057.3,ma.str().c_str()); |
| 639 |
t1->DrawLatex(xlat,2051.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2051.7,mi.str().c_str()); |
| 640 |
break; |
break; |
| 641 |
|
|
| 642 |
case 4: |
case 4: |
| 643 |
li.DrawLine(min,2066.,max,2066.); |
li.DrawLine(min,2066.,max,2066.); |
| 644 |
li.DrawLine(min,2061.,max,2061.); |
li.DrawLine(min,2060.,max,2060.); |
| 645 |
t1->DrawLatex(xlat,2066.15,ma.str().c_str()); |
t1->DrawLatex(xlat,2066.15,ma.str().c_str()); |
| 646 |
t1->DrawLatex(xlat,2060.85,mi.str().c_str()); |
t1->DrawLatex(xlat,2059.85,mi.str().c_str()); |
| 647 |
break; |
break; |
| 648 |
|
|
| 649 |
} |
} |
| 650 |
BfieldCanv[ii]->Update(); |
BfieldCanv[ii]->Update(); |
| 757 |
else{ |
else{ |
| 758 |
x[(ev-minev)]= ph->GetOrbitalTime(); |
x[(ev-minev)]= ph->GetOrbitalTime(); |
| 759 |
ALARM=0; |
ALARM=0; |
|
|
|
| 760 |
Int_t dsp=0; |
Int_t dsp=0; |
| 761 |
for(Int_t i=0; i<12; i++){ |
Int_t noacq=0; |
| 762 |
if(te->DSPnumber[i]<1 || te->DSPnumber[i]>12) { |
Int_t acq_dsp[12]; |
| 763 |
ALARM=1; |
ULong_t acq_info_tmp=0; |
| 764 |
break; |
if(cod->Get(pctp->RunHeader)>0) acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)-1]; |
| 765 |
} |
else acq_info_tmp=acq_info[cod->Get(pctp->RunHeader)]; |
| 766 |
|
for(Int_t io=0;io<12;io++){ |
| 767 |
|
acq_dsp[dsp]=(acq_info_tmp>>(12+io))&(~(~0<<1)); |
| 768 |
|
if(((acq_info_tmp>>(12+io))&(~(~0<<1)))==0) |
| 769 |
|
noacq+=1; |
| 770 |
|
WARNING[io]=0; |
| 771 |
|
} |
| 772 |
|
|
| 773 |
dsp=te->DSPnumber[i]-1; |
for(Int_t i=0; i<12; i++){ |
|
yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i]; |
|
| 774 |
|
|
| 775 |
// |
if(i<12-noacq){ |
| 776 |
// Fill Cluster Signal and Lighting of the view histos |
if(te->DSPnumber[i]<1 || te->DSPnumber[i]>12) { |
| 777 |
for(Int_t j=0;j<3;j++){ |
ALARM=1; |
| 778 |
if(te->signcluster[i][j]!=0){ |
break; |
| 779 |
if((te->addrcluster[i][j]>6 && te->addrcluster[i][j]<505) ||(te->addrcluster[i][j]>518 && te->addrcluster[i][j]<1018)){ |
} |
| 780 |
illuminazione[dsp]->Fill((Float_t)((j*1024.)+te->addrcluster[i][j])); |
|
| 781 |
|
dsp=te->DSPnumber[i]-1; |
| 782 |
|
yc[(ev-minev)][dsp]= 0.051*te->compressiontime[i]; |
| 783 |
|
|
| 784 |
|
// |
| 785 |
|
// Fill Cluster Signal and Lighting of the view histos |
| 786 |
|
for(Int_t j=0;j<3;j++){ |
| 787 |
|
if(te->signcluster[i][j]!=0){ |
| 788 |
|
if((te->addrcluster[i][j]>6 && te->addrcluster[i][j]<505) ||(te->addrcluster[i][j]>518 && te->addrcluster[i][j]<1018)){ |
| 789 |
|
illuminazione[dsp]->Fill((Float_t)((j*1024.)+te->addrcluster[i][j])); |
| 790 |
|
} |
| 791 |
} |
} |
| 792 |
} |
} |
| 793 |
} |
if(trk_cal_us[cod->Get(pctp->RunHeader)]!=104){ |
| 794 |
if(trk_cal_us[cod->Get(pctp->RunHeader)]!=104){ |
if(!(dsp%2)){ |
| 795 |
if(!(dsp%2)){ |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)(1024.-te->signcluster[i][0])); |
| 796 |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)(1024.-te->signcluster[i][0])); |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)(1024.-te->signcluster[i][1])); |
| 797 |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)(1024.-te->signcluster[i][1])); |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)(1024.-te->signcluster[i][2])); |
| 798 |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)(1024.-te->signcluster[i][2])); |
} |
| 799 |
} |
else{ |
| 800 |
else{ |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)te->signcluster[i][0]); |
| 801 |
if(te->signcluster[i][0]!=0) landau1[dsp]->Fill((Float_t)te->signcluster[i][0]); |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)te->signcluster[i][1]); |
| 802 |
if(te->signcluster[i][1]!=0) landau2[dsp]->Fill((Float_t)te->signcluster[i][1]); |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)te->signcluster[i][2]); |
| 803 |
if(te->signcluster[i][2]!=0) landau3[dsp]->Fill((Float_t)te->signcluster[i][2]); |
} |
| 804 |
} |
} |
|
} |
|
| 805 |
|
|
| 806 |
WARNING[i]=0; |
WARNING[i]=0; |
| 807 |
if(te->fc[i]!=0 || te->fl1[i]!=0 || te->fl2[i]!=0 || te->fl3[i]!=0 || te->fl4[i]!=0 || te->fl5[i]!=0 || te->fl6[i]!=0){ |
if(te->fc[i]!=0){ |
| 808 |
ALARM = 1; //general alarm |
if(countFC[dsp]==0){ |
| 809 |
WARNING[i] = 1; // DSP warning |
ALARM = 1; //general alarm |
| 810 |
}; |
WARNING[i] = 1; // DSP warning |
| 811 |
|
} |
| 812 |
if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm |
countFC[dsp]+=1; |
| 813 |
if(countALARMy==0) |
}; |
| 814 |
ALARM = 1; |
|
| 815 |
countALARMy+=1; |
if(te->fl1[i]!=0){ |
| 816 |
}; |
if(countFL1[dsp]==0){ |
| 817 |
|
ALARM = 1; //general alarm |
| 818 |
if(dsp%2==1 && te->alarm[i]!=0){ // hardware alarm |
WARNING[i] = 1; // DSP warning |
| 819 |
if(countALARMx==0) |
} |
| 820 |
ALARM = 1; |
countFL1[dsp]+=1; |
| 821 |
countALARMx+=1; |
}; |
| 822 |
}; |
|
| 823 |
|
if(te->fl2[i]!=0){ |
| 824 |
|
if(countFL2[dsp]==0){ |
| 825 |
|
ALARM = 1; //general alarm |
| 826 |
|
WARNING[i] = 1; // DSP warning |
| 827 |
|
} |
| 828 |
|
countFL2[dsp]+=1; |
| 829 |
|
}; |
| 830 |
|
|
| 831 |
|
if(te->fl3[i]!=0){ |
| 832 |
|
if(countFL3[dsp]==0){ |
| 833 |
|
ALARM = 1; //general alarm |
| 834 |
|
WARNING[i] = 1; // DSP warning |
| 835 |
|
} |
| 836 |
|
countFL3[dsp]+=1; |
| 837 |
|
}; |
| 838 |
|
|
| 839 |
|
if(te->fl4[i]!=0){ |
| 840 |
|
if(countFL4[dsp]==0){ |
| 841 |
|
ALARM = 1; //general alarm |
| 842 |
|
WARNING[i] = 1; // DSP warning |
| 843 |
|
} |
| 844 |
|
countFL4[dsp]+=1; |
| 845 |
|
}; |
| 846 |
|
|
| 847 |
|
if(te->fl5[i]!=0){ |
| 848 |
|
if(countFL5[dsp]==0){ |
| 849 |
|
ALARM = 1; //general alarm |
| 850 |
|
WARNING[i] = 1; // DSP warning |
| 851 |
|
} |
| 852 |
|
countFL5[dsp]+=1; |
| 853 |
|
}; |
| 854 |
|
|
| 855 |
|
if(te->fl6[i]!=0){ |
| 856 |
|
if(countFL6[dsp]==0){ |
| 857 |
|
ALARM = 1; //general alarm |
| 858 |
|
WARNING[i] = 1; // DSP warning |
| 859 |
|
} |
| 860 |
|
countFL6[dsp]+=1; |
| 861 |
|
}; |
| 862 |
|
|
| 863 |
|
if(dsp%2==0 && te->alarm[i]!=0){ // hardware alarm |
| 864 |
|
if(countALARMy==0) |
| 865 |
|
ALARM = 1; |
| 866 |
|
countALARMy+=1; |
| 867 |
|
}; |
| 868 |
|
|
| 869 |
|
if(dsp%2==1 && te->alarm[i]!=0){ // hardware alarm |
| 870 |
|
if(countALARMx==0) |
| 871 |
|
ALARM = 1; |
| 872 |
|
countALARMx+=1; |
| 873 |
|
}; |
| 874 |
|
|
| 875 |
//************************************************************************************** |
//************************************************************************************** |
| 876 |
// warning for internal number |
// warning for internal number |
| 877 |
//************************************************************************************** |
//************************************************************************************** |
| 878 |
if(ev==minev && i<=10 && te->eventn[i]!=te->eventn[i+1]) ALARM=1; |
if(ev==minev && i<=10 && te->eventn[i]!=te->eventn[i+1]) ALARM=1; |
| 879 |
if((ev-minev)>=1 && eventn[i]+1!=te->eventn[i] && te->eventn[i]!=1) ALARM=1; |
if((ev-minev)>=1 && eventn[i]+1!=te->eventn[i] && te->eventn[i]!=1) ALARM=1; |
| 880 |
|
} |
| 881 |
} |
} |
| 882 |
eventint[(ev-minev)]=te->eventn[0]; |
eventint[(ev-minev)]=te->eventn[0]; |
| 883 |
|
|
| 939 |
if(countALARMx%6!=0) alarm << endl<<endl<< "***** "<<countALARMx/6+1 <<" events with hardware alarm in X-view *****"<<endl; |
if(countALARMx%6!=0) alarm << endl<<endl<< "***** "<<countALARMx/6+1 <<" events with hardware alarm in X-view *****"<<endl; |
| 940 |
else alarm << endl<<endl<< "***** "<<countALARMx/6 <<" events with hardware alarm in X-view *****"<<endl; |
else alarm << endl<<endl<< "***** "<<countALARMx/6 <<" events with hardware alarm in X-view *****"<<endl; |
| 941 |
} |
} |
| 942 |
|
for(int p=0; p<12; p++){ |
| 943 |
|
if(countFC[p]!=0) alarm << endl<<endl<< "***** "<<countFC[p] <<" events with fc!=0 in DSP "<<p+1<<" *****"<<endl; |
| 944 |
|
if(countFL1[p]!=0) alarm << endl<<endl<< "***** "<<countFL1[p] <<" events with fl1!=0 in DSP "<<p+1<<" *****"<<endl; |
| 945 |
|
if(countFL2[p]!=0) alarm << endl<<endl<< "***** "<<countFL2[p] <<" events with fl2!=0 in DSP "<<p+1<<" *****"<<endl; |
| 946 |
|
if(countFL3[p]!=0) alarm << endl<<endl<< "***** "<<countFL3[p] <<" events with fl3!=0 in DSP "<<p+1<<" *****"<<endl; |
| 947 |
|
if(countFL4[p]!=0) alarm << endl<<endl<< "***** "<<countFL4[p] <<" events with fl4!=0 in DSP "<<p+1<<" *****"<<endl; |
| 948 |
|
if(countFL5[p]!=0) alarm << endl<<endl<< "***** "<<countFL5[p] <<" events with fl5!=0 in DSP "<<p+1<<" *****"<<endl; |
| 949 |
|
if(countFL6[p]!=0) alarm << endl<<endl<< "***** "<<countFL6[p] <<" events with fl6!=0 in DSP "<<p+1<<" *****"<<endl; |
| 950 |
|
} |
| 951 |
} |
} |
| 952 |
|
|
| 953 |
// |
// |
| 970 |
comprtime[i][ii]->GetXaxis()->CenterTitle(); |
comprtime[i][ii]->GetXaxis()->CenterTitle(); |
| 971 |
comprtime[i][ii]->GetYaxis()->SetTitle("compressiontime (ms)"); |
comprtime[i][ii]->GetYaxis()->SetTitle("compressiontime (ms)"); |
| 972 |
comprtime[i][ii]->GetYaxis()->CenterTitle(); |
comprtime[i][ii]->GetYaxis()->CenterTitle(); |
| 973 |
|
if(maxev-minev==1) comprtime[i][ii]->GetXaxis()->SetNdivisions(-501); |
| 974 |
// comprtime[i][ii]->GetYaxis()->SetRangeUser(0,3); |
// comprtime[i][ii]->GetYaxis()->SetRangeUser(0,3); |
| 975 |
comprtime[i][ii]->Draw("ap"); |
comprtime[i][ii]->Draw("ap"); |
| 976 |
oss1.str(""); |
oss1.str(""); |
| 996 |
eventnumb[ii]->GetYaxis()->SetTitleSize(0.03); |
eventnumb[ii]->GetYaxis()->SetTitleSize(0.03); |
| 997 |
eventnumb[ii]->GetYaxis()->SetTitle("DSP event-number"); |
eventnumb[ii]->GetYaxis()->SetTitle("DSP event-number"); |
| 998 |
eventnumb[ii]->GetYaxis()->CenterTitle(); |
eventnumb[ii]->GetYaxis()->CenterTitle(); |
| 999 |
|
if(maxev-minev==1) eventnumb[ii]->GetXaxis()->SetNdivisions(-501); |
| 1000 |
eventnumb[ii]->GetYaxis()->SetTitleOffset(2.); |
eventnumb[ii]->GetYaxis()->SetTitleOffset(2.); |
| 1001 |
eventnumb[ii]->SetMarkerStyle(21); |
eventnumb[ii]->SetMarkerStyle(21); |
| 1002 |
eventnumb[ii]->SetMarkerColor(kBlue); |
eventnumb[ii]->SetMarkerColor(kBlue); |
| 1114 |
|
|
| 1115 |
TBox b; |
TBox b; |
| 1116 |
|
|
| 1117 |
Float_t maxhist=0; |
Float_t maxhist=0,va1x=0; |
| 1118 |
LandauCanv1->cd(); |
LandauCanv1->cd(); |
| 1119 |
pad1[i]->SetFillColor(10); |
pad1[i]->SetFillColor(10); |
| 1120 |
pad1[i]->SetFrameFillColor(10); |
pad1[i]->SetFrameFillColor(10); |
| 1145 |
landau3[i]->Draw(""); |
landau3[i]->Draw(""); |
| 1146 |
LandauCanv3->Update(); |
LandauCanv3->Update(); |
| 1147 |
|
|
| 1148 |
|
|
| 1149 |
|
li.SetLineColor(38); |
| 1150 |
|
li.SetLineStyle(4); |
| 1151 |
|
li.SetLineWidth(2); |
| 1152 |
|
liva1.SetLineColor(42); |
| 1153 |
|
liva1.SetLineStyle(3); |
| 1154 |
|
liva1.SetLineWidth(1); |
| 1155 |
|
|
| 1156 |
IlluminaCanv->cd(); |
IlluminaCanv->cd(); |
| 1157 |
pad2[i]->SetFillColor(10); |
pad2[i]->SetFillColor(10); |
| 1158 |
pad2[i]->SetFrameFillColor(10); |
pad2[i]->SetFrameFillColor(10); |
| 1162 |
illuminazione[i]->GetXaxis()->SetTitle("strip with max signal"); |
illuminazione[i]->GetXaxis()->SetTitle("strip with max signal"); |
| 1163 |
illuminazione[i]->GetXaxis()->CenterTitle(); |
illuminazione[i]->GetXaxis()->CenterTitle(); |
| 1164 |
illuminazione[i]->Draw(""); |
illuminazione[i]->Draw(""); |
| 1165 |
if(i==1){ |
maxhist= illuminazione[i]->GetMaximum(); |
| 1166 |
maxhist= illuminazione[i]->GetMaximum(); |
if(i==0){ |
| 1167 |
|
b.SetFillColor(107); |
| 1168 |
|
b.SetFillStyle(3954); |
| 1169 |
|
b.DrawBox(256.,0.,384.,maxhist); |
| 1170 |
|
b.DrawBox(768.,0.,2047.,maxhist); |
| 1171 |
|
} |
| 1172 |
|
else if(i==1){ |
| 1173 |
b.SetFillColor(6); |
b.SetFillColor(6); |
| 1174 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
| 1175 |
b.DrawBox(2944.,0.,3060.,maxhist); |
b.DrawBox(2944.,0.,3070.,maxhist); |
| 1176 |
|
|
| 1177 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 1178 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1179 |
|
b.DrawBox(384.,0.,512.,maxhist); |
| 1180 |
|
b.DrawBox(2048.,0.,2432.,maxhist); |
| 1181 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,2944.,maxhist); |
| 1182 |
b.DrawBox(2048.,0.,2176.,maxhist); |
} |
| 1183 |
|
else if(i==3){ |
| 1184 |
|
b.SetFillColor(107); |
| 1185 |
|
b.SetFillStyle(3954); |
| 1186 |
|
b.DrawBox(2816.,0.,3070.,maxhist); |
| 1187 |
} |
} |
| 1188 |
else if(i==4){ |
else if(i==4){ |
|
maxhist=illuminazione[i]->GetMaximum(); |
|
| 1189 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 1190 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1191 |
b.DrawBox(384.,0.,512.,maxhist); |
b.DrawBox(256.,0.,512.,maxhist); |
| 1192 |
|
b.DrawBox(2816.,0.,3070.,maxhist); |
| 1193 |
} |
} |
| 1194 |
else if(i==6){ |
else if(i==6){ |
|
maxhist= illuminazione[i]->GetMaximum(); |
|
| 1195 |
b.SetFillColor(6); |
b.SetFillColor(6); |
| 1196 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
| 1197 |
b.DrawBox(2560.,0.,2816.,maxhist); |
b.DrawBox(1024.,0.,1280.,maxhist); |
|
b.DrawBox(1024.,0.,1535.,maxhist); |
|
| 1198 |
|
|
| 1199 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 1200 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1201 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
| 1202 |
b.DrawBox(1536.,0.,1792.,maxhist); |
b.DrawBox(1280.,0.,1792.,maxhist); |
| 1203 |
} |
b.DrawBox(2560.,0.,2816.,maxhist); |
| 1204 |
|
} |
| 1205 |
else if(i==7){ |
else if(i==7){ |
| 1206 |
maxhist= illuminazione[i]->GetMaximum(); |
b.SetFillColor(107); |
| 1207 |
|
b.SetFillStyle(3954); |
| 1208 |
|
b.DrawBox(512.,0.,768.,maxhist); |
| 1209 |
|
b.DrawBox(896.,0.,1535.,maxhist); |
| 1210 |
|
} |
| 1211 |
|
else if(i==8){ |
| 1212 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 1213 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1214 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
| 1215 |
} |
} |
| 1216 |
else if(i==9){ |
else if(i==9){ |
|
maxhist=illuminazione[i]->GetMaximum(); |
|
| 1217 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 1218 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1219 |
b.DrawBox(256.,0.,384.,maxhist); |
b.DrawBox(256.,0.,384.,maxhist); |
| 1220 |
|
b.DrawBox(1280.,0.,1535.,maxhist); |
| 1221 |
|
b.DrawBox(1792.,0.,1920.,maxhist); |
| 1222 |
|
} |
| 1223 |
|
else if(i==10){ |
| 1224 |
|
b.SetFillColor(107); |
| 1225 |
|
b.SetFillStyle(3954); |
| 1226 |
|
b.DrawBox(1024.,0.,1152.,maxhist); |
| 1227 |
|
b.DrawBox(2048.,0.,3070.,maxhist); |
| 1228 |
} |
} |
| 1229 |
else if(i==11){ |
else if(i==11){ |
|
maxhist= illuminazione[i]->GetMaximum(); |
|
| 1230 |
b.SetFillColor(6); |
b.SetFillColor(6); |
| 1231 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
| 1232 |
b.DrawBox(768.,0.,1024.,maxhist); |
b.DrawBox(768.,0.,1024.,maxhist); |
| 1234 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 1235 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 1236 |
b.DrawBox(0.,0.,512.,maxhist); |
b.DrawBox(0.,0.,512.,maxhist); |
| 1237 |
b.DrawBox(1920.,0.,2048.,maxhist); |
b.DrawBox(1920.,0.,2560.,maxhist); |
| 1238 |
b.DrawBox(2176.,0.,2304.,maxhist); |
} |
| 1239 |
|
for(int va=1; va<24; va++){ |
| 1240 |
|
va1x=128*va; |
| 1241 |
|
liva1.DrawLine(va1x,0.,va1x,maxhist); |
| 1242 |
} |
} |
| 1243 |
|
li.DrawLine(1024.5,0,1024.5,maxhist); |
| 1244 |
|
li.DrawLine(2048.5,0,2048.5,maxhist); |
| 1245 |
IlluminaCanv->Update(); |
IlluminaCanv->Update(); |
| 1246 |
} |
} |
| 1247 |
|
|