1 |
`/** |
/** |
2 |
* FTrkCalibQLookExpert.cxx |
* FTrkCalibQLookExpert.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r23 |
* version v1r27 |
6 |
* Parameters: |
* Parameters: |
7 |
* file - the data file to analyze |
* file - the data file to analyze |
8 |
* step - select =1 in order to analyze one event at time |
* step - select =1 in order to analyze one event at time |
77 |
Int_t nevents=0; |
Int_t nevents=0; |
78 |
Int_t minevent = 0; |
Int_t minevent = 0; |
79 |
Int_t maxevent = 0; |
Int_t maxevent = 0; |
80 |
ULong64_t FOBT[2]; |
ULong_t FOBT[2]; |
81 |
|
|
82 |
FOBT[0]=0; |
FOBT[0]=0; |
83 |
FOBT[1]=0; |
FOBT[1]=0; |
188 |
|
|
189 |
Int_t hcevent=hotr->GetEntries(); |
Int_t hcevent=hotr->GetEntries(); |
190 |
Int_t tcevent=totr->GetEntries(); |
Int_t tcevent=totr->GetEntries(); |
191 |
ULong64_t HOBT[hcevent], TOBT[tcevent]; |
ULong_t HOBT[hcevent], TOBT[tcevent]; |
192 |
for (Int_t i = 0; i < hcevent; i++){ |
for (Int_t i = 0; i < hcevent; i++){ |
193 |
hotr->GetEntry(i); |
hotr->GetEntry(i); |
194 |
ph = eh4->GetPscuHeader(); |
ph = eh4->GetPscuHeader(); |
566 |
b.DrawBox(256.,2200.,512.,maxhist); |
b.DrawBox(256.,2200.,512.,maxhist); |
567 |
b.DrawBox(2816.,2200.,3070.,maxhist); |
b.DrawBox(2816.,2200.,3070.,maxhist); |
568 |
} |
} |
569 |
|
else if(nn==5){ |
570 |
|
b.SetFillColor(107); |
571 |
|
b.SetFillStyle(3954); |
572 |
|
b.DrawBox(896.,700.,1024.,maxhist); |
573 |
|
} |
574 |
else if(nn==6){ |
else if(nn==6){ |
|
b.SetFillColor(6); |
|
|
b.SetFillStyle(3945); |
|
|
b.DrawBox(1024.,2200.,1280.,maxhist); |
|
|
|
|
575 |
b.SetFillColor(107); |
b.SetFillColor(107); |
576 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
577 |
b.DrawBox(512.,2200.,768.,maxhist); |
b.DrawBox(512.,2200.,768.,maxhist); |
578 |
|
b.DrawBox(1024.,2200.,1280.,maxhist); |
579 |
b.DrawBox(1280.,2200.,1792.,maxhist); |
b.DrawBox(1280.,2200.,1792.,maxhist); |
580 |
b.DrawBox(2560.,2200.,2816.,maxhist); |
b.DrawBox(2560.,2200.,2816.,maxhist); |
581 |
} |
} |
583 |
b.SetFillColor(107); |
b.SetFillColor(107); |
584 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
585 |
b.DrawBox(512.,700.,768.,maxhist); |
b.DrawBox(512.,700.,768.,maxhist); |
586 |
b.DrawBox(1024.,700.,1535.,maxhist); |
b.DrawBox(896.,700.,1535.,maxhist); |
587 |
|
b.DrawBox(2024.,700.,2280.,maxhist); |
588 |
} |
} |
589 |
else if(nn==8){ |
else if(nn==8){ |
590 |
b.SetFillColor(107); |
b.SetFillColor(107); |
594 |
else if(nn==9){ |
else if(nn==9){ |
595 |
b.SetFillColor(107); |
b.SetFillColor(107); |
596 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
597 |
|
b.DrawBox(0.,700.,128.,maxhist); |
598 |
b.DrawBox(256.,700.,384.,maxhist); |
b.DrawBox(256.,700.,384.,maxhist); |
599 |
|
b.DrawBox(512.,700.,640.,maxhist); |
600 |
|
b.DrawBox(896.,700.,1024.,maxhist); |
601 |
b.DrawBox(1280.,700.,1535.,maxhist); |
b.DrawBox(1280.,700.,1535.,maxhist); |
602 |
b.DrawBox(1792.,700.,1920.,maxhist); |
b.DrawBox(1792.,700.,1920.,maxhist); |
603 |
} |
} |
604 |
else if(nn==10){ |
else if(nn==10){ |
605 |
b.SetFillColor(107); |
b.SetFillColor(107); |
606 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
607 |
|
b.DrawBox(0.,2200.,256.,maxhist); |
608 |
b.DrawBox(1024.,2200.,1152.,maxhist); |
b.DrawBox(1024.,2200.,1152.,maxhist); |
609 |
b.DrawBox(2048.,2200.,3070.,maxhist); |
b.DrawBox(1768.,2200.,3070.,maxhist); |
610 |
} |
} |
611 |
else if(nn==11){ |
else if(nn==11){ |
612 |
b.SetFillColor(6); |
b.SetFillColor(6); |
617 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
618 |
b.DrawBox(0.,700.,512.,maxhist); |
b.DrawBox(0.,700.,512.,maxhist); |
619 |
b.DrawBox(1920.,700.,2560.,maxhist); |
b.DrawBox(1920.,700.,2560.,maxhist); |
620 |
|
b.DrawBox(2816.,700.,3070.,maxhist); |
621 |
} |
} |
622 |
// } |
// } |
623 |
// else histoped[nn]->Draw("axis"); |
// else histoped[nn]->Draw("axis"); |
624 |
histoaped[nn]->Draw("same"); |
histoaped[nn]->Draw("same"); |
625 |
if((nn+1)%2==1) { |
if((nn+1)%2==1) { |
692 |
b.DrawBox(256.,0.,512.,maxhist); |
b.DrawBox(256.,0.,512.,maxhist); |
693 |
b.DrawBox(2816.,0.,3070.,maxhist); |
b.DrawBox(2816.,0.,3070.,maxhist); |
694 |
} |
} |
695 |
|
else if(nn==5){ |
696 |
|
b.SetFillColor(107); |
697 |
|
b.SetFillStyle(3954); |
698 |
|
b.DrawBox(896.,0.,1024.,maxhist); |
699 |
|
} |
700 |
else if(nn==6){ |
else if(nn==6){ |
|
b.SetFillColor(6); |
|
|
b.SetFillStyle(3945); |
|
|
b.DrawBox(1024.,0.,1280.,maxhist); |
|
|
|
|
701 |
b.SetFillColor(107); |
b.SetFillColor(107); |
702 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
703 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
704 |
|
b.DrawBox(1024.,0.,1280.,maxhist); |
705 |
b.DrawBox(1280.,0.,1792.,maxhist); |
b.DrawBox(1280.,0.,1792.,maxhist); |
706 |
b.DrawBox(2560.,0.,2816.,maxhist); |
b.DrawBox(2560.,0.,2816.,maxhist); |
707 |
} |
} |
709 |
b.SetFillColor(107); |
b.SetFillColor(107); |
710 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
711 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
712 |
b.DrawBox(1024.,0.,1535.,maxhist); |
b.DrawBox(896.,0.,1535.,maxhist); |
713 |
|
b.DrawBox(2024.,0.,2280.,maxhist); |
714 |
} |
} |
715 |
else if(nn==8){ |
else if(nn==8){ |
716 |
b.SetFillColor(107); |
b.SetFillColor(107); |
720 |
else if(nn==9){ |
else if(nn==9){ |
721 |
b.SetFillColor(107); |
b.SetFillColor(107); |
722 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
723 |
|
b.DrawBox(0.,0.,128.,maxhist); |
724 |
b.DrawBox(256.,0.,384.,maxhist); |
b.DrawBox(256.,0.,384.,maxhist); |
725 |
|
b.DrawBox(512.,0.,640.,maxhist); |
726 |
|
b.DrawBox(896.,0.,1024.,maxhist); |
727 |
b.DrawBox(1280.,0.,1535.,maxhist); |
b.DrawBox(1280.,0.,1535.,maxhist); |
728 |
b.DrawBox(1792.,0.,1920.,maxhist); |
b.DrawBox(1792.,0.,1920.,maxhist); |
729 |
} |
} |
730 |
else if(nn==10){ |
else if(nn==10){ |
731 |
b.SetFillColor(107); |
b.SetFillColor(107); |
732 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
733 |
|
b.DrawBox(0.,0.,256.,maxhist); |
734 |
b.DrawBox(1024.,0.,1152.,maxhist); |
b.DrawBox(1024.,0.,1152.,maxhist); |
735 |
b.DrawBox(2048.,0.,3070.,maxhist); |
b.DrawBox(1768.,0.,3070.,maxhist); |
736 |
} |
} |
737 |
else if(nn==11){ |
else if(nn==11){ |
738 |
b.SetFillColor(6); |
b.SetFillColor(6); |
743 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
744 |
b.DrawBox(0.,0.,512.,maxhist); |
b.DrawBox(0.,0.,512.,maxhist); |
745 |
b.DrawBox(1920.,0.,2560.,maxhist); |
b.DrawBox(1920.,0.,2560.,maxhist); |
746 |
|
b.DrawBox(2816.,0.,3070.,maxhist); |
747 |
} |
} |
748 |
// } |
// } |
749 |
// else histosig[nn]->Draw("axis"); |
// else histosig[nn]->Draw("axis"); |