// --- Standard library ---
-#include <iostream.h>
// --- AliRoot header files ---
#include "AliPHOSQAMeanChecker.h"
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) {
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 ;
{
// print the name
- TString status = "inactive" ;
- if ( IsActive() )
- status = "active" ;
- cout << "Checker : " << GetName() << " : " << GetTitle() << " : Mean = " << fMean << " Rms = " << fRms
- << " : Status = " << status << endl ;
+ Info("Print", "Checker : %s : %s : Mean = %f Rms = %f", GetName(), GetTitle(), fMean, fRms) ;
}