--- quicklook/tracker/flight/macros/FTrkCalibQLook_EXPERT.cxx 2006/08/11 10:24:09 1.9 +++ quicklook/tracker/flight/macros/FTrkCalibQLook_EXPERT.cxx 2006/09/18 15:01:56 1.13 @@ -2,7 +2,7 @@ * FTrkCalibQLookExpert.cxx * * autor: D.Fedele - * version v1r08 + * version v1r11 * Parameters: * file - the data file to analyze * step - select =1 in order to analyze one event at time @@ -176,7 +176,7 @@ } else if (toevent > nevents) { maxevent = nevents; } else { - maxevent = fromevent; + maxevent = nevents; }; }; @@ -187,12 +187,15 @@ //********************************************************************** Int_t hcevent=hotr->GetEntries(); - ULong64_t HOBT[hcevent], TOBT[hcevent]; + Int_t tcevent=totr->GetEntries(); + ULong64_t HOBT[hcevent], TOBT[tcevent]; for (Int_t i = 0; i < hcevent; i++){ - totr->GetEntry(i); hotr->GetEntry(i); ph = eh4->GetPscuHeader(); HOBT[i]= ph->GetOrbitalTime(); + } + for (Int_t i = 0; i < tcevent; i++){ + totr->GetEntry(i); ph = eh3->GetPscuHeader(); TOBT[i]= ph->GetOrbitalTime(); } @@ -265,7 +268,7 @@ Int_t risposta=0; stringstream fromfile; - fromfile<<"FTrkCalibQLook_EXPERT File: "<SetLabelSize(0.07,"x"); gStyle->SetLabelSize(0.07,"y"); @@ -531,16 +534,23 @@ b.DrawBox(2816.,700.,2944.,maxhist); b.DrawBox(2048.,700.,2176.,maxhist); } + else if(nn==4){ + maxhist=histoped[nn]->GetMaximum(); + b.SetFillColor(107); + b.SetFillStyle(3954); + b.DrawBox(384.,2200.,512.,maxhist); + } else if(nn==6){ maxhist=histoped[nn]->GetMaximum(); b.SetFillColor(6); b.SetFillStyle(3945); b.DrawBox(2560.,2200.,2816.,maxhist); - b.DrawBox(1024.,2200.,1792.,maxhist); + b.DrawBox(1024.,2200.,1535.,maxhist); b.SetFillColor(107); b.SetFillStyle(3954); b.DrawBox(512.,2200.,768.,maxhist); + b.DrawBox(1536.,2200.,1792.,maxhist); } else if(nn==7){ maxhist=histoped[nn]->GetMaximum(); @@ -558,6 +568,7 @@ b.SetFillStyle(3954); b.DrawBox(0.,700.,512.,maxhist); b.DrawBox(1920.,700.,2048.,maxhist); + b.DrawBox(2176.,700.,2304.,maxhist); } } else histoped[nn]->Draw("axis"); @@ -605,16 +616,23 @@ b.DrawBox(2816.,0.,2944.,maxhist); b.DrawBox(2048.,0.,2176.,maxhist); } + else if(nn==4){ + maxhist=histosig[nn]->GetMaximum(); + b.SetFillColor(107); + b.SetFillStyle(3954); + b.DrawBox(384.,0.,512.,maxhist); + } else if(nn==6){ maxhist=histosig[nn]->GetMaximum(); b.SetFillColor(6); b.SetFillStyle(3945); b.DrawBox(2560.,0.,2816.,maxhist); - b.DrawBox(1024.,0.,1792.,maxhist); + b.DrawBox(1024.,0.,1535.,maxhist); b.SetFillColor(107); b.SetFillStyle(3954); b.DrawBox(512.,0.,768.,maxhist); + b.DrawBox(1536.,0.,1792.,maxhist); } else if(nn==7){ maxhist=histosig[nn]->GetMaximum(); @@ -632,6 +650,7 @@ b.SetFillStyle(3954); b.DrawBox(0.,0.,512.,maxhist); b.DrawBox(1920.,0.,2048.,maxhist); + b.DrawBox(2176.,0.,2304.,maxhist); } } else histosig[nn]->Draw("axis");