2 |
* FTrkQLook_EXPERT.cxx |
* FTrkQLook_EXPERT.cxx |
3 |
* |
* |
4 |
* autor: D.Fedele |
* autor: D.Fedele |
5 |
* version v1r08 |
* version v1r10 |
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 |
158 |
if((HOBT[ev]<HOBT[ev-1]) && ev>0) |
if((HOBT[ev]<HOBT[ev-1]) && ev>0) |
159 |
countnboot+=1; |
countnboot+=1; |
160 |
} |
} |
161 |
countnboot+=2*(Int_t)nevent/MAXSTORAGE; |
countnboot+=(Int_t)(2*nevent/MAXSTORAGE); |
162 |
// printf("\ncountnboot=%d\n",countnboot); |
// printf("\ncountnboot=%d\n",countnboot); |
163 |
|
|
164 |
|
|
198 |
siztmp++; |
siztmp++; |
199 |
} |
} |
200 |
} |
} |
201 |
|
|
202 |
// |
// |
203 |
// information about the entries for the magnetic field |
// information about the entries for the magnetic field |
204 |
if(bnevent>0) cntpgmag=1; |
if(bnevent>0) cntpgmag=1; |
436 |
Double_t xt_tmpw[tsize], tempt_tmpw[tsize]; |
Double_t xt_tmpw[tsize], tempt_tmpw[tsize]; |
437 |
for (Int_t ev=countTEMP; ev<tsize; ev++){ |
for (Int_t ev=countTEMP; ev<tsize; ev++){ |
438 |
|
|
439 |
if(ev==tsize-1 && i==4) countTEMP=tsize-1; |
if(ev==tsize-1 && i==4 && ii==cntpgtemp-1) countTEMP=tsize-1; |
440 |
if(xt[ev]<xt[ev-1] && ev>countTEMP){ |
if(xt[ev]<xt[ev-1] && ev>countTEMP){ |
441 |
if(i==4) countTEMP=ev; |
if(i==4) countTEMP=ev; |
442 |
break; |
break; |
489 |
|
|
490 |
|
|
491 |
} |
} |
492 |
if(countTEMP==tsize-1){ |
if(countTEMP==tsize-1 && ii==cntpgtemp-1){ |
493 |
break; |
break; |
494 |
} |
} |
495 |
} |
} |
554 |
Double_t xb_tmp[bsize], magt_tmp[bsize]; |
Double_t xb_tmp[bsize], magt_tmp[bsize]; |
555 |
for (Int_t ev=countMAG; ev<bsize; ev++){ |
for (Int_t ev=countMAG; ev<bsize; ev++){ |
556 |
|
|
557 |
if(ev==bsize-1 && i==4) countMAG=bsize-1; |
if(ev==bsize-1 && i==4 && ii==cntpgmag-1) countMAG=bsize-1; |
558 |
if(xb[ev]<xb[ev-1] && ev>countMAG){ |
if(xb[ev]<xb[ev-1] && ev>countMAG){ |
559 |
if(i==4) countMAG=ev; |
if(i==4) countMAG=ev; |
560 |
break; |
break; |
578 |
mag[i][ii]->GetXaxis()->CenterTitle(); |
mag[i][ii]->GetXaxis()->CenterTitle(); |
579 |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); |
580 |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); |
581 |
else mag[i][ii]->GetYaxis()->SetRangeUser(2061,2066); |
else mag[i][ii]->GetYaxis()->SetRangeUser(2060,2066); |
582 |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); |
583 |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); |
584 |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
mag[i][ii]->GetYaxis()->SetLabelSize(0.03); |
606 |
|
|
607 |
case 1: |
case 1: |
608 |
li.DrawLine(min,2055.,max,2055.); |
li.DrawLine(min,2055.,max,2055.); |
609 |
li.DrawLine(min,2051.,max,2051.); |
li.DrawLine(min,2050.,max,2050.); |
610 |
t1->DrawLatex(xlat,2055.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2055.3,ma.str().c_str()); |
611 |
t1->DrawLatex(xlat,2050.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2049.7,mi.str().c_str()); |
612 |
break; |
break; |
613 |
|
|
614 |
case 2: |
case 2: |
615 |
li.DrawLine(min,2056.,max,2056.); |
li.DrawLine(min,2056.,max,2056.); |
616 |
li.DrawLine(min,2052.,max,2052.); |
li.DrawLine(min,2051.,max,2051.); |
617 |
t1->DrawLatex(xlat,2056.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2056.3,ma.str().c_str()); |
618 |
t1->DrawLatex(xlat,2051.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2050.7,mi.str().c_str()); |
619 |
break; |
break; |
620 |
|
|
621 |
case 3: |
case 3: |
622 |
li.DrawLine(min,2057.,max,2057.); |
li.DrawLine(min,2057.,max,2057.); |
623 |
li.DrawLine(min,2053.,max,2053.); |
li.DrawLine(min,2052.,max,2052.); |
624 |
t1->DrawLatex(xlat,2057.3,ma.str().c_str()); |
t1->DrawLatex(xlat,2057.3,ma.str().c_str()); |
625 |
t1->DrawLatex(xlat,2052.7,mi.str().c_str()); |
t1->DrawLatex(xlat,2051.7,mi.str().c_str()); |
626 |
break; |
break; |
627 |
|
|
628 |
case 4: |
case 4: |
629 |
li.DrawLine(min,2065.,max,2065.); |
li.DrawLine(min,2065.,max,2065.); |
630 |
li.DrawLine(min,2062.,max,2062.); |
li.DrawLine(min,2061.,max,2061.); |
631 |
t1->DrawLatex(xlat,2065.15,ma.str().c_str()); |
t1->DrawLatex(xlat,2065.15,ma.str().c_str()); |
632 |
t1->DrawLatex(xlat,2061.85,mi.str().c_str()); |
t1->DrawLatex(xlat,2060.85,mi.str().c_str()); |
633 |
break; |
break; |
634 |
|
|
635 |
} |
} |
636 |
BfieldCanv[ii]->Update(); |
BfieldCanv[ii]->Update(); |
637 |
tit.str(""); |
tit.str(""); |
638 |
} |
} |
639 |
if(countMAG==bsize-1){ |
if(countMAG==bsize-1 && ii==cntpgmag-1){ |
640 |
break; |
break; |
641 |
} |
} |
642 |
} |
} |
1048 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,2944.,maxhist); |
1049 |
b.DrawBox(2048.,0.,2176.,maxhist); |
b.DrawBox(2048.,0.,2176.,maxhist); |
1050 |
} |
} |
1051 |
|
else if(i==4){ |
1052 |
|
maxhist=illuminazione[i]->GetMaximum(); |
1053 |
|
b.SetFillColor(107); |
1054 |
|
b.SetFillStyle(3954); |
1055 |
|
b.DrawBox(384.,0.,512.,maxhist); |
1056 |
|
} |
1057 |
else if(i==6){ |
else if(i==6){ |
1058 |
maxhist= illuminazione[i]->GetMaximum(); |
maxhist= illuminazione[i]->GetMaximum(); |
1059 |
b.SetFillColor(6); |
b.SetFillColor(6); |