2 |
* FTrkCalibQLookExpert.cxx |
* FTrkCalibQLookExpert.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r22 |
* version v1r26 |
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){ |
555 |
b.DrawBox(2048.,700.,2432.,maxhist); |
b.DrawBox(2048.,700.,2432.,maxhist); |
556 |
b.DrawBox(2816.,700.,2944.,maxhist); |
b.DrawBox(2816.,700.,2944.,maxhist); |
557 |
} |
} |
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.,2944.,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(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); |
662 |
if(nn==0){ |
if(nn==0){ |
663 |
b.SetFillColor(107); |
b.SetFillColor(107); |
664 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
665 |
|
b.DrawBox(256.,0.,384.,maxhist); |
666 |
b.DrawBox(768.,0.,2047.,maxhist); |
b.DrawBox(768.,0.,2047.,maxhist); |
667 |
} |
} |
668 |
else if(nn==1){ |
else if(nn==1){ |
676 |
b.DrawBox(2048.,0.,2432.,maxhist); |
b.DrawBox(2048.,0.,2432.,maxhist); |
677 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,2944.,maxhist); |
678 |
} |
} |
679 |
|
else if(nn==3){ |
680 |
|
b.SetFillColor(107); |
681 |
|
b.SetFillStyle(3954); |
682 |
|
b.DrawBox(2816.,0.,3070.,maxhist); |
683 |
|
} |
684 |
else if(nn==4){ |
else if(nn==4){ |
685 |
b.SetFillColor(107); |
b.SetFillColor(107); |
686 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
687 |
b.DrawBox(384.,0.,512.,maxhist); |
b.DrawBox(256.,0.,512.,maxhist); |
688 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,3070.,maxhist); |
689 |
|
} |
690 |
|
else if(nn==5){ |
691 |
|
b.SetFillColor(107); |
692 |
|
b.SetFillStyle(3954); |
693 |
|
b.DrawBox(896.,0.,1024.,maxhist); |
694 |
} |
} |
695 |
else if(nn==6){ |
else if(nn==6){ |
|
b.SetFillColor(6); |
|
|
b.SetFillStyle(3945); |
|
|
b.DrawBox(1024.,0.,1280.,maxhist); |
|
|
|
|
696 |
b.SetFillColor(107); |
b.SetFillColor(107); |
697 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
698 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
699 |
|
b.DrawBox(1024.,0.,1280.,maxhist); |
700 |
b.DrawBox(1280.,0.,1792.,maxhist); |
b.DrawBox(1280.,0.,1792.,maxhist); |
701 |
b.DrawBox(2560.,0.,2816.,maxhist); |
b.DrawBox(2560.,0.,2816.,maxhist); |
702 |
} |
} |
704 |
b.SetFillColor(107); |
b.SetFillColor(107); |
705 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
706 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
707 |
|
b.DrawBox(896.,0.,1535.,maxhist); |
708 |
|
b.DrawBox(2024.,0.,2280.,maxhist); |
709 |
} |
} |
710 |
else if(nn==8){ |
else if(nn==8){ |
711 |
b.SetFillColor(107); |
b.SetFillColor(107); |