#include <cstdlib>
// --- ROOT system ---
+#include <TClass.h>
#include <TFile.h>
#include <TSystem.h>
#include <TROOT.h>
TString AliQAv1::fgDetNames[] = {"ITS", "TPC", "TRD", "TOF", "PHOS", "HMPID", "EMCAL", "MUON", "FMD",
"ZDC", "PMD", "T0", "VZERO", "ACORDE", "HLT", "Global", "CORR"} ;
TString AliQAv1::fgGRPPath = "GRP/GRP/Data" ;
-TString AliQAv1::fgTaskNames[] = {"Raws", "Hits", "SDigits", "Digits", "RecPoints", "TrackSegments", "RecParticles", "ESDs"} ;
+TString AliQAv1::fgTaskNames[] = {"Raws", "Hits", "SDigits", "Digits", "DigitsR", "RecPoints", "TrackSegments", "RecParticles", "ESDs"} ;
const TString AliQAv1::fgkLabLocalFile = "file://" ;
const TString AliQAv1::fgkLabLocalOCDB = "local://" ;
const TString AliQAv1::fgkLabAliEnOCDB = "alien://" ;
TString AliQAv1::fgRefDataDirName = "" ;
const TString AliQAv1::fgkQARefOCDBDefault = "alien://folder=/alice/QA/20" ;
const TString AliQAv1::fgkExpert = "Expert" ;
-const UInt_t AliQAv1::fgkExpertBit = 16 ;
-const UInt_t AliQAv1::fgkQABit = 17 ;
-const UInt_t AliQAv1::fgkImageBit = 18 ;
+const UInt_t AliQAv1::fgkExpertBit = 0x40000 ;
+const UInt_t AliQAv1::fgkQABit = 0x80000 ;
+const UInt_t AliQAv1::fgkImageBit = 0x100000 ;
+const Int_t AliQAv1::fgkQADebugLevel = 99 ;
+const TString AliQAv1::fImageFileName = "QAImage" ;
+const TString AliQAv1::fImageFileFormat = "eps" ;
//____________________________________________________________________________
AliQAv1::AliQAv1() :
fgQADataFile = TFile::Open(temp, opt.Data()) ;
} else {
if ( strcmp(temp, fgQADataFile->GetName()) != 0 ) {
- fgQADataFile = dynamic_cast<TFile *>(gROOT->FindObject(temp)) ;
+ fgQADataFile = static_cast<TFile *>(gROOT->FindObject(temp)) ;
if ( !fgQADataFile ) {
- if (gSystem->AccessPathName(temp))
- opt = "NEW" ;
- else
- opt = "UPDATE" ;
+ if (gSystem->AccessPathName(temp))
+ opt = "NEW" ;
+ else
+ opt = "UPDATE" ;
fgQADataFile = TFile::Open(temp, opt.Data()) ;
}
}
if (!gSystem->AccessPathName(fileName)) {
fgQADataFile = TFile::Open(fileName) ;
} else {
- printf("File %s not found", fileName) ;
- exit(1) ;
+ AliFatalClass(Form("File %s not found", fileName)) ;
}
return fgQADataFile ;
}
if ( ! fgQA) {
TFile * f = GetQAResultFile() ;
- fgQA = dynamic_cast<AliQAv1 *>(f->Get("QA")) ;
+ fgQA = static_cast<AliQAv1 *>(f->Get("QA")) ;
if ( ! fgQA )
fgQA = new AliQAv1() ;
- }
+ }
return fgQA ;
}
if ( ! fgQA) {
TFile * f = GetQAResultFile() ;
- fgQA = dynamic_cast<AliQAv1 *>(f->Get("QA")) ;
+ fgQA = static_cast<AliQAv1 *>(f->Get("QA")) ;
if ( ! fgQA )
- fgQA = new AliQAv1(det) ;
+ fgQA = new AliQAv1(det) ;
}
fgQA->Set(det) ;
return fgQA ;
fgQA = new AliQAv1(tsk) ;
break ;
case kREC:
- printf("fgQA = gAlice->GetQA()") ;
+ AliInfoClass("fgQA = gAlice->GetQA()") ;
break ;
case kESD:
- printf("fgQA = dynamic_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
+ AliInfoClass("fgQA = static_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
break ;
case kANA:
- printf("fgQA = dynamic_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
+ AliInfoClass("fgQA = static_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
break ;
case kNTASK:
break ;
fgQARefFileName = fgkQAName ;
else {
- printf("ERROR: %s is an invalid storage definition\n", name) ;
+ AliErrorClass(Form("ERROR: %s is an invalid storage definition\n", name)) ;
fgQARefDirName = "" ;
fgQARefFileName = "" ;
}
TString tmp(fgQARefDirName) ; // + fgQARefFileName) ;
- printf("AliQAv1::SetQARefDir: QA references are in %s\n", tmp.Data() ) ;
+ AliInfoClass(Form("AliQAv1::SetQARefDir: QA references are in %s\n", tmp.Data() )) ;
}
//_____________________________________________________________________________
// Set the root directory where to store the QA status object
fgQAResultDirName.Prepend(name) ;
- printf("AliQAv1::SetQAResultDirName: QA results are in %s\n", fgQAResultDirName.Data()) ;
+ AliInfoClass(Form("AliQAv1::SetQAResultDirName: QA results are in %s\n", fgQAResultDirName.Data())) ;
if ( fgQAResultDirName.Contains(fgkLabLocalFile))
fgQAResultDirName.ReplaceAll(fgkLabLocalFile, "") ;
fgQAResultFileName.Prepend(fgQAResultDirName) ;
if ( det == kNULLDET)
det = fDet ;
for (Int_t ies = 0 ; ies < fNEventSpecies ; ies++) {
- const Bool_t what = IsEventSpecieSet(ies) ;
- if ( what )
- ShowStatus(det, kNULLTASK, AliRecoParam::Convert(ies)) ;
+ if ( IsEventSpecieSet(ies) )
+ ShowStatus(det, kNULLTASK, AliRecoParam::ConvertIndex(ies)) ;
}
}
for (index = 0 ; index < kNDET ; index++) {
for (Int_t tsk = kRAW ; tsk < kNTASK ; tsk++) {
for (Int_t ies = 0 ; ies < fNEventSpecies ; ies++) {
- const Bool_t what = IsEventSpecieSet(ies) ;
- if ( what )
- ShowStatus(DETECTORINDEX_t(index), ALITASK_t(tsk), AliRecoParam::Convert(ies)) ;
+ if ( IsEventSpecieSet(ies) )
+ ShowStatus(DETECTORINDEX_t(index), ALITASK_t(tsk), AliRecoParam::ConvertIndex(ies)) ;
}
}
}
}
}
if (! text.IsNull())
- printf(" %8s %8s %4s 0x%4lx, Problem signalled: %8s \n", AliRecoParam::GetEventSpecieName(es), GetDetName(det).Data(), GetAliTaskName(tsk), status, text.Data()) ;
+ AliInfoClass(Form(" %8s %8s %4s 0x%4lx, Problem signalled: %8s \n", AliRecoParam::GetEventSpecieName(es), GetDetName(det).Data(), GetAliTaskName(tsk), status, text.Data())) ;
}
//_______________________________________________________________