]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
small bug in preprocessor fixed
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Mar 2010 18:12:51 +0000 (18:12 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Mar 2010 18:12:51 +0000 (18:12 +0000)
T0/AliT0Preprocessor.cxx

index 1ca8b37a55e77345dbc25d13d9897cfd14c95269..613f6990e56926a6ca5b9d40eb1999805e3b2eaa 100644 (file)
@@ -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);
              
            }
@@ -176,23 +176,19 @@ UInt_t AliT0Preprocessor::ProcessLaser()
        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 in source %s!", source->GetName()));
       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;
 }
 
 //____________________________________________________