]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
return values changed in some cases; AliInfo() changed to Log()
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jan 2007 14:00:17 +0000 (14:00 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jan 2007 14:00:17 +0000 (14:00 +0000)
PHOS/AliPHOSPreprocessor.cxx

index 09370c44557dd025ed4d25648a49007f81e9a368..8fb4937099c79e10329d9e4cb8f6d48099d0b4ee 100644 (file)
@@ -64,7 +64,7 @@ UInt_t AliPHOSPreprocessor::Process(TMap* /*valueSet*/)
   TFile f(fileName);
 
   if(!f.IsOpen()) {
-    AliInfo(Form("File %s is not opened, something goes wrong!",fileName));
+    Log(Form("File %s is not opened, something goes wrong!",fileName));
     return 0;
   }
 
@@ -91,8 +91,8 @@ UInt_t AliPHOSPreprocessor::Process(TMap* /*valueSet*/)
   //Check if the file contains any histogram
 
   if(nkeys< 2){
-    AliInfo(Form("Not enough histograms (%d) for calibration.",nkeys));
-    return 0;
+    Log(Form("Not enough histograms (%d) for calibration.",nkeys));
+    return 1;
   }
 
   while(!ok){
@@ -104,12 +104,12 @@ UInt_t AliPHOSPreprocessor::Process(TMap* /*valueSet*/)
     // Check if the reference histogram has too little statistics
     if(hRef->GetEntries()>2) ok=kTRUE;
     if(!ok && counter >= nMod*nCol*nRow){
-      AliInfo("No histogram with enough statistics for reference.");
-      return 0;
+      Log("No histogram with enough statistics for reference.");
+      return 1;
     }
   }
 
-  AliInfo(Form("reference histogram %s, %.1f entries, mean=%.3f, rms=%.3f.",
+  Log(Form("reference histogram %s, %.1f entries, mean=%.3f, rms=%.3f.",
         hRef->GetName(),hRef->GetEntries(),
         hRef->GetMean(),hRef->GetRMS()));