]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/T0Laserda.cxx
correct calibration of short runs
[u/mrichter/AliRoot.git] / T0 / T0Laserda.cxx
index a3afab97d64ff44858451aa620aa993279ea4561..574f37e458aa82f01834a383ca69701a375a5ae6 100644 (file)
@@ -138,8 +138,8 @@ int main(int argc, char **argv) {
   
   for(Int_t ic=0; ic<24; ic++) 
     {
-      hQTC[ic] = new TH1F(Form("hQTC%d_%d",ic+1,nIndex),"QTC",1000, 500, 4500);
-      hLED[ic] = new TH1F(Form("hLED%d_%d",ic+1,nIndex),"LED",300,300,600);
+      hQTC[ic] = new TH1F(Form("hQTC%d_%d",ic+1,nIndex),"QTC",1000, 500, 10000);
+      hLED[ic] = new TH1F(Form("hLED%d_%d",ic+1,nIndex),"LED",125,200,700);
       hCFD[ic] = new TH1F(Form("hCFD%d_%d",ic+1,nIndex),"CFD", Int_t ((hcfd-lcfd)/2), lcfd, hcfd);
     }
  
@@ -267,7 +267,7 @@ int main(int argc, char **argv) {
 
   printf("After loop, before writing histos\n");
   TH1F* hAmp = new TH1F("hAmpLaser"," Laser amplitude ", 1000, 0.5, 20.5);  
-  for(Int_t k=0; k<nEntries; k++)   hAmp->Fill(mipsin[k]); 
+  for(Int_t i=0; i<nIndex; i++)   hAmp->Fill(mipsin[i]); 
   // write a file with the histograms
   TFile *hist=0;
   if(nIndex == 1 )