--- quicklook/tracker/flight/macros/FTrkQLook_BASIC.cxx 2006/07/13 10:13:37 1.10 +++ quicklook/tracker/flight/macros/FTrkQLook_BASIC.cxx 2006/09/18 15:01:56 1.13 @@ -2,7 +2,7 @@ * FTrkQLook_BASIC.cxx * * autor: D.Fedele - * version v1r06 + * version v1r07 * Parameters: * file - the data file to analyze * fromevent - first event to analyze @@ -103,7 +103,7 @@ } else if (toevent > nevent) { maxevent = nevent; } else { - maxevent = toevent+1; + maxevent = nevent; } nevent=maxevent-minevent ; } @@ -113,7 +113,7 @@ stringstream oss,fromfile,isfile; // // information about the RunHeader - Int_t HOBT[neventH]; + ULong64_t HOBT[neventH]; Int_t trk_cal_us[neventH]; for (Int_t vi=0; vi0) countnboot+=1; } - countnboot+=2*(Int_t)nevent/MAXSTORAGE; + countnboot+=(Int_t)(2*nevent/MAXSTORAGE); // printf("\ncountnboot=%d\n",countnboot); // // information about calibration OBT - Int_t COBT[neventC]; + ULong64_t COBT[neventC]; for (Int_t vi=0; viSetTextSize(0.08); Int_t i=0; - Float_t x[MAXSTORAGE], xb[MAXSTORAGE]; + Long64_t x[MAXSTORAGE], xb[MAXSTORAGE]; Float_t yyd[MAXSTORAGE][12],yyb[MAXSTORAGE][12]; Int_t countbad[12]; Float_t perc=0,xMIN=0.,xMAX=0.; @@ -337,15 +337,19 @@ // Draw Histos for (Int_t i=0; i<12 ; i++){ - Float_t y[maxev-minev],yb[maxev-minev]; + Double_t yd[maxev-minev],ybd[maxev-minev]; + Double_t xd[maxev-minev],xbd[maxev-minev]; + for(Int_t v=0;v1000){ @@ -363,7 +367,7 @@ pad[i][ii]->SetFrameFillColor(10); pad[i][ii]->Draw(); pad[i][ii]->cd(); - dataletime[i][ii]= new TGraph((maxev-minev),x,y); + dataletime[i][ii]= new TGraph((maxev-minev),xd,yd); dataletime[i][ii]->SetTitle(oss.str().c_str()); dataletime[i][ii]->GetXaxis()->SetTitle("OBT (ms)"); dataletime[i][ii]->GetXaxis()->CenterTitle(); @@ -380,7 +384,7 @@ if((maxev-minev)>1000 && perc>10){ - dataletime1[i][ii]= new TGraph(countbad[i],xb,yb); + dataletime1[i][ii]= new TGraph(countbad[i],xbd,ybd); dataletime1[i][ii]->SetMarkerStyle(21); if((maxev-minev)<50) dataletime1[i][ii]->SetMarkerSize(0.5); else dataletime1[i][ii]->SetMarkerSize(0.1); @@ -388,7 +392,7 @@ dataletime1[i][ii]->Draw("psame"); } else if((maxev-minev)<1000 && countbad[i]>=100){ - dataletime1[i][ii]= new TGraph(countbad[i],xb,yb); + dataletime1[i][ii]= new TGraph(countbad[i],xbd,ybd); dataletime1[i][ii]->SetMarkerStyle(21); if((maxev-minev)<50) dataletime1[i][ii]->SetMarkerSize(0.5); else dataletime1[i][ii]->SetMarkerSize(0.1);