]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0Preprocessor.cxx
warning fixed
[u/mrichter/AliRoot.git] / T0 / AliT0Preprocessor.cxx
index 1ca8b37a55e77345dbc25d13d9897cfd14c95269..96842782f1e657b439669c2dcfd80abd6e944a7d 100644 (file)
@@ -148,9 +148,9 @@ UInt_t AliT0Preprocessor::ProcessLaser()
   Bool_t resultLaser = kFALSE;
   Bool_t writeok = kFALSE;
   //processing DAQ
-  TObjString *source;
   TList* list = GetFileSources(kDAQ, "AMPLITUDE_CALIBRATION");
   AliT0CalibWalk *laser = new AliT0CalibWalk();
+  TObjString *source;
   if (list)
     {
       TIter iter(list);
@@ -159,7 +159,7 @@ UInt_t AliT0Preprocessor::ProcessLaser()
          const char *laserFile = GetFile(kDAQ, "AMPLITUDE_CALIBRATION", source->GetName());
          if (laserFile)
            {
-             Log(Form("File with Id LASER found in source %s!", source->GetName()));
+             Log(Form("File with Id AMPLITUDE_CALIBRAION found in source %s!", source->GetName()));
             writeok = laser->MakeWalkCorrGraph(laserFile);
              
            }
@@ -171,28 +171,24 @@ UInt_t AliT0Preprocessor::ProcessLaser()
       metaData.SetComment("Walk correction from laser runs.");
       if (writeok) resultLaser=Store("Calib","Slewing_Walk", laser, &metaData, 0, 1);
       else {
-       
+       
        Log(Form("writeok = %d no peaks in CFD spectra",writeok));
        return 0;
       }                  
       Log(Form("resultLaser = %d",resultLaser));
+      if (!resultLaser)
+       {
+         Log("No Laser Data stored");
+         return 3;//return error code for failure in storing Laser Data
+       }
     }
   else
     {
-      Log(Form("Could not find file with Id LASER in source %s!", source->GetName()));
+      Log(Form("Could not find file with Id  AMPLITUDE_CALIBRAION "));
       return 1;
     }
   
-  if (!resultLaser)
-    {
-      Log("No Laser Data stored");
-      return 3;//return error code for failure in storing Laser Data
-    }
-  else {
-    Log("No sources found for id LASER!");
-    return 1;
-  }
-  return 0;
+   return 0;
 }
 
 //____________________________________________________