--- quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx 2006/08/11 15:20:56 1.13 +++ quicklook/tracker/flight/macros/FTrkQLook_EXPERT.cxx 2006/08/22 15:47:49 1.14 @@ -2,7 +2,7 @@ * FTrkQLook_EXPERT.cxx * * autor: D.Fedele - * version v1r08 + * version v1r10 * Parameters: * file - the data file to analyze * fromevent - first event to analyze @@ -158,7 +158,7 @@ if((HOBT[ev]0) countnboot+=1; } - countnboot+=2*(Int_t)nevent/MAXSTORAGE; + countnboot+=(Int_t)(2*nevent/MAXSTORAGE); // printf("\ncountnboot=%d\n",countnboot); @@ -198,7 +198,7 @@ siztmp++; } } - + // // information about the entries for the magnetic field if(bnevent>0) cntpgmag=1; @@ -436,7 +436,7 @@ Double_t xt_tmpw[tsize], tempt_tmpw[tsize]; for (Int_t ev=countTEMP; evcountTEMP){ if(i==4) countTEMP=ev; break; @@ -489,7 +489,7 @@ } - if(countTEMP==tsize-1){ + if(countTEMP==tsize-1 && ii==cntpgtemp-1){ break; } } @@ -554,7 +554,7 @@ Double_t xb_tmp[bsize], magt_tmp[bsize]; for (Int_t ev=countMAG; evcountMAG){ if(i==4) countMAG=ev; break; @@ -578,7 +578,7 @@ mag[i][ii]->GetXaxis()->CenterTitle(); mag[i][ii]->GetXaxis()->SetTitleOffset(0.85); if(i!=4) mag[i][ii]->GetYaxis()->SetRangeUser(2047,2058); - else mag[i][ii]->GetYaxis()->SetRangeUser(2061,2066); + else mag[i][ii]->GetYaxis()->SetRangeUser(2060,2066); mag[i][ii]->GetYaxis()->SetTitleOffset(1.2); mag[i][ii]->GetYaxis()->SetLabelOffset(0.001); mag[i][ii]->GetYaxis()->SetLabelSize(0.03); @@ -606,37 +606,37 @@ case 1: li.DrawLine(min,2055.,max,2055.); - li.DrawLine(min,2051.,max,2051.); + li.DrawLine(min,2050.,max,2050.); t1->DrawLatex(xlat,2055.3,ma.str().c_str()); - t1->DrawLatex(xlat,2050.7,mi.str().c_str()); + t1->DrawLatex(xlat,2049.7,mi.str().c_str()); break; case 2: li.DrawLine(min,2056.,max,2056.); - li.DrawLine(min,2052.,max,2052.); + li.DrawLine(min,2051.,max,2051.); t1->DrawLatex(xlat,2056.3,ma.str().c_str()); - t1->DrawLatex(xlat,2051.7,mi.str().c_str()); + t1->DrawLatex(xlat,2050.7,mi.str().c_str()); break; case 3: li.DrawLine(min,2057.,max,2057.); - li.DrawLine(min,2053.,max,2053.); + li.DrawLine(min,2052.,max,2052.); t1->DrawLatex(xlat,2057.3,ma.str().c_str()); - t1->DrawLatex(xlat,2052.7,mi.str().c_str()); + t1->DrawLatex(xlat,2051.7,mi.str().c_str()); break; case 4: li.DrawLine(min,2065.,max,2065.); - li.DrawLine(min,2062.,max,2062.); + li.DrawLine(min,2061.,max,2061.); t1->DrawLatex(xlat,2065.15,ma.str().c_str()); - t1->DrawLatex(xlat,2061.85,mi.str().c_str()); + t1->DrawLatex(xlat,2060.85,mi.str().c_str()); break; } BfieldCanv[ii]->Update(); tit.str(""); } - if(countMAG==bsize-1){ + if(countMAG==bsize-1 && ii==cntpgmag-1){ break; } } @@ -1048,6 +1048,12 @@ b.DrawBox(2816.,0.,2944.,maxhist); b.DrawBox(2048.,0.,2176.,maxhist); } + else if(i==4){ + maxhist=illuminazione[i]->GetMaximum(); + b.SetFillColor(107); + b.SetFillStyle(3954); + b.DrawBox(384.,0.,512.,maxhist); + } else if(i==6){ maxhist= illuminazione[i]->GetMaximum(); b.SetFillColor(6);