2 |
* FTrkCalibQLookExpert.cxx |
* FTrkCalibQLookExpert.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r20 |
* 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(); |
541 |
if(nn==0){ |
if(nn==0){ |
542 |
b.SetFillColor(107); |
b.SetFillColor(107); |
543 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
544 |
|
b.DrawBox(256.,2200.,384.,maxhist); |
545 |
b.DrawBox(768.,2200.,2047.,maxhist); |
b.DrawBox(768.,2200.,2047.,maxhist); |
546 |
} |
} |
547 |
else if(nn==1){ |
else if(nn==1){ |
551 |
|
|
552 |
b.SetFillColor(107); |
b.SetFillColor(107); |
553 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
554 |
//b.DrawBox(384.,700.,512.,maxhist); |
b.DrawBox(384.,700.,512.,maxhist); |
555 |
|
b.DrawBox(2048.,700.,2432.,maxhist); |
556 |
b.DrawBox(2816.,700.,2944.,maxhist); |
b.DrawBox(2816.,700.,2944.,maxhist); |
557 |
b.DrawBox(2048.,700.,2176.,maxhist); |
} |
558 |
|
else if(nn==3){ |
559 |
|
b.SetFillColor(107); |
560 |
|
b.SetFillStyle(3954); |
561 |
|
b.DrawBox(2816.,700.,3070.,maxhist); |
562 |
} |
} |
563 |
else if(nn==4){ |
else if(nn==4){ |
564 |
b.SetFillColor(107); |
b.SetFillColor(107); |
565 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
566 |
b.DrawBox(384.,2200.,512.,maxhist); |
b.DrawBox(256.,2200.,512.,maxhist); |
567 |
|
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(2560.,2200.,2816.,maxhist); |
|
|
b.DrawBox(1024.,2200.,1535.,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(1536.,2200.,1792.,maxhist); |
b.DrawBox(1024.,2200.,1280.,maxhist); |
579 |
|
b.DrawBox(1280.,2200.,1792.,maxhist); |
580 |
|
b.DrawBox(2560.,2200.,2816.,maxhist); |
581 |
} |
} |
582 |
else if(nn==7){ |
else if(nn==7){ |
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(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(1280.,700.,1408.,maxhist); |
b.DrawBox(512.,700.,640.,maxhist); |
600 |
//b.DrawBox(1792.,700.,1920.,maxhist); |
b.DrawBox(896.,700.,1024.,maxhist); |
601 |
|
b.DrawBox(1280.,700.,1535.,maxhist); |
602 |
|
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(2048.,2200.,3070.,maxhist); |
b.DrawBox(0.,2200.,256.,maxhist); |
608 |
|
b.DrawBox(1024.,2200.,1152.,maxhist); |
609 |
|
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) { |
667 |
if(nn==0){ |
if(nn==0){ |
668 |
b.SetFillColor(107); |
b.SetFillColor(107); |
669 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
670 |
|
b.DrawBox(256.,0.,384.,maxhist); |
671 |
b.DrawBox(768.,0.,2047.,maxhist); |
b.DrawBox(768.,0.,2047.,maxhist); |
672 |
} |
} |
673 |
else if(nn==1){ |
else if(nn==1){ |
677 |
|
|
678 |
b.SetFillColor(107); |
b.SetFillColor(107); |
679 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
680 |
//b.DrawBox(384.,0.,512.,maxhist); |
b.DrawBox(384.,0.,512.,maxhist); |
681 |
|
b.DrawBox(2048.,0.,2432.,maxhist); |
682 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,2944.,maxhist); |
683 |
b.DrawBox(2048.,0.,2176.,maxhist); |
} |
684 |
|
else if(nn==3){ |
685 |
|
b.SetFillColor(107); |
686 |
|
b.SetFillStyle(3954); |
687 |
|
b.DrawBox(2816.,0.,3070.,maxhist); |
688 |
} |
} |
689 |
else if(nn==4){ |
else if(nn==4){ |
690 |
b.SetFillColor(107); |
b.SetFillColor(107); |
691 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
692 |
b.DrawBox(384.,0.,512.,maxhist); |
b.DrawBox(256.,0.,512.,maxhist); |
693 |
|
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(2560.,0.,2816.,maxhist); |
|
|
b.DrawBox(1024.,0.,1535.,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(1536.,0.,1792.,maxhist); |
b.DrawBox(1024.,0.,1280.,maxhist); |
705 |
|
b.DrawBox(1280.,0.,1792.,maxhist); |
706 |
|
b.DrawBox(2560.,0.,2816.,maxhist); |
707 |
} |
} |
708 |
else if(nn==7){ |
else if(nn==7){ |
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(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(1280.,0.,1408.,maxhist); |
b.DrawBox(512.,0.,640.,maxhist); |
726 |
//b.DrawBox(1792.,0.,1920.,maxhist); |
b.DrawBox(896.,0.,1024.,maxhist); |
727 |
|
b.DrawBox(1280.,0.,1535.,maxhist); |
728 |
|
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(2048.,0.,3070.,maxhist); |
b.DrawBox(0.,0.,256.,maxhist); |
734 |
|
b.DrawBox(1024.,0.,1152.,maxhist); |
735 |
|
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"); |