]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQAMeanChecker.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQAMeanChecker.cxx
index c3236813ecbea2a999c0732e37f968f677cbdcf8..c7aeb06b6b14f610561c5280fba116a21b52a9c8 100644 (file)
@@ -28,7 +28,6 @@
 
 // --- Standard library ---
 
-#include <iostream.h>
 // --- AliRoot header files ---
 
 #include "AliPHOSQAMeanChecker.h" 
@@ -69,9 +68,7 @@ TString AliPHOSQAMeanChecker::CheckingOperation()
 
   Float_t checked = 0. ;  
   if ( (fCheckable->HasA() == "I") &&  (fCheckable->HasA() == "F") ) {
-    cout << " ERROR : checker " << GetName() << " says you got the wrong checkable " 
-        << fCheckable->GetName() << endl ; 
-    cout << "         or the checkable has no value !" << endl ; 
+    Error("CheckingOperation", "checker %s says you got the wrong checkable %s or the checkable has no value !", GetName(), fCheckable->GetName()) ;  
   } else {
     checked = fCheckable->GetValue(); 
     if (checked < fMean-fRms || checked > fMean+fRms) {
@@ -79,6 +76,7 @@ TString AliPHOSQAMeanChecker::CheckingOperation()
       sprintf(tempo, "-->Checkable : %s :: Checker : %s :: Message : %f outside bond %f +/- %f\n", 
              fCheckable->GetName(), GetName(), checked, fMean, fRms) ; 
       rv = tempo ;
+      delete [] tempo ; 
     } 
   }  
   return rv ; 
@@ -89,5 +87,5 @@ TString AliPHOSQAMeanChecker::CheckingOperation()
 {
   // print the name 
   
-  cout << "Checker : " << GetName() << " : " << GetTitle() << " : Mean = " <<  fMean << " Rms = " << fRms << endl ;  
+  Info("Print", "Checker : %s : %s : Mean = %f Rms = %f", GetName(), GetTitle(), fMean, fRms) ;  
 }