]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/T0Laserda.cxx
Warning fixed, thanks Cvetan
[u/mrichter/AliRoot.git] / T0 / T0Laserda.cxx
index 0de660fe8afb035a8ffd64fb3314c34ffa01d800..eaa9deca40034b7b8e3366f30dbe141c8d965ad5 100644 (file)
@@ -1,11 +1,10 @@
 /*
 T0 DA for online calibration
  
-Contact: Michal.Oledzki@cern.ch
-Link: http://users.jyu.fi/~mioledzk/
-Run Type: STANDALONE
+Contact: Alla.Maevskaya@cern.ch
+Run Type: AMPLITUDE_CALIBRATION
 DA Type: MON
-Number of events needed: 400000 
+Number of events needed: 5000 
 Input Files: inLaser.dat, external parameters
 Output Files: daLaser.root, to be exported to the DAQ FXS
 Trigger types used: CALIBRATION_EVENT
@@ -249,7 +248,8 @@ int main(int argc, char **argv) {
       
       delete start;
       start = 0x0;
-      reader->Reset();
+      delete reader;
+      reader= 0x0;
       // End of fill histograms
 
     }
@@ -266,8 +266,8 @@ int main(int argc, char **argv) {
   }
 
   printf("After loop, before writing histos\n");
-  TH1F* hAmp = new TH1F("hAmpLaser"," Laser amplitude ", 1000, 0.5, 10.5);  
-  for(Int_t k=0; k<nEntries; k++)   hAmp->Fill(mipsin[k]); 
+  TH1F* hAmp = new TH1F("hAmpLaser"," Laser amplitude ", 1000, 0.5, 20.5);  
+  for(Int_t i=0; i<nEntries; i++)   hAmp->Fill(mipsin[i]); 
   // write a file with the histograms
   TFile *hist=0;
   if(nIndex == 1 )