// --- Standard library ---
-#include <iostream.h>
// --- AliRoot header files ---
#include "AliPHOSQAChecker.h"
AliPHOSQAChecker::AliPHOSQAChecker(const char * name, const char * title) : TTask(name,title)
{
// ctor
- // stores checkers in the PHOS QA TTask folder //YSAlice/tasks/QA/PHOS
- TFolder * alice = (TFolder*)gROOT->GetListOfBrowsables()->FindObject("YSAlice") ;
- TTask * aliceQA = (TTask*)alice->FindObject("tasks/QA") ;
+ // stores checkers in the PHOS QA TTask folder //Folders/Task/QA
+ TTask * aliceQA = (TTask*)gROOT->FindObjectAny("Folders/Tasks/QA") ;
TTask * phosQA = (TTask*)aliceQA->GetListOfTasks()->FindObject("PHOS") ;
if (phosQA) // PHOS QA Tasks container exists
phosQA->Add(this) ;
- else // create //YSAlice/tasks/QA/PHOS
+ else // create //Folders/Task/QA/PHOS
aliceQA->Add(this) ;
- fCheckablesList = new TList() ;
+ fCheckablesList = new TList() ;
+ fCheckable = 0;
}
//____________________________________________________________________________
{
// print the checker and sub-checkers, if any, name.
- cout << "Checker : " << GetName() << endl ;
+ Info("Print", "Checker : %s", GetName()) ;
}
void AliPHOSQAChecker::PrintAlarms()
{
// Prints the alarms of all attached checkables
- cout << "Checker name : " << GetName() << endl ;
+ Info("PrintAlarms", "Checker name : %s", GetName()) ;
if ( !(fCheckablesList->IsEmpty() ) ) {
TIter next( fCheckablesList ) ;
AliPHOSQAVirtualCheckable * checkable ;
{
// Prints the checkables attached to this checker
if ( fCheckablesList->IsEmpty() )
- cout << "No checkables are checked by " << GetName() << endl ;
+ Info("Status", "No checkables are checked by %s", GetName()) ;
else {
- cout << "The following checkables are checked by " << GetName() << endl ;
+ Info("Status", "The following checkables are checked by %s", GetName()) ;
TIter next(fCheckablesList) ;
AliPHOSQAVirtualCheckable * checkable ;
while ( (checkable = (AliPHOSQAVirtualCheckable*)next() ) )