fCurrentEvent++ ;
// Get the event
if ( iEvent%10 == 0 )
- AliInfo(Form("processing event %d", iEvent));
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("processing event %d", iEvent));
if ( taskIndex == AliQAv1::kRAWS ) {
if ( !fRawReader->NextEvent() )
break ;
Instance()->SetSpecificStorage(Form("%s/*", AliQAv1::GetQAName()), AliQAv1::GetQARefStorage()) ;
}
TString detOCDBDir(Form("%s/%s/%s", AliQAv1::GetQAName(), AliQAv1::GetDetName((Int_t)det), AliQAv1::GetRefOCDBDirName())) ;
- AliInfo(Form("Retrieving reference data from %s/%s for %s", AliQAv1::GetQARefStorage(), detOCDBDir.Data(), AliQAv1::GetTaskName(task).Data())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Retrieving reference data from %s/%s for %s", AliQAv1::GetQARefStorage(), detOCDBDir.Data(), AliQAv1::GetTaskName(task).Data())) ;
AliCDBEntry* entry = QAManager()->Get(detOCDBDir.Data(), 0) ; //FIXME 0 --> Run Number
TList * listDetQAD = dynamic_cast<TList *>(entry->GetObject()) ;
if ( listDetQAD )
TPluginHandler* pluginHandler = pluginManager->FindHandler("AliLoader", detName) ;
// if not, add a plugin for it
if (!pluginHandler) {
- AliDebug(1, Form("defining plugin for %s", loaderName.Data())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("defining plugin for %s", loaderName.Data())) ;
TString libs = gSystem->GetLibraries() ;
if (libs.Contains("lib" + detName + "base.so") || (gSystem->Load("lib" + detName + "base.so") >= 0)) {
pluginManager->AddHandler("AliQADataMaker", detName, loaderName, detName + "loader", loaderName + "()") ;
TPluginHandler* pluginHandler = pluginManager->FindHandler("AliQADataMaker", detName) ;
// if not, add a plugin for it
if (!pluginHandler) {
- AliDebug(1, Form("defining plugin for %s", qadmName.Data())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("defining plugin for %s", qadmName.Data())) ;
TString libs = gSystem->GetLibraries() ;
if (libs.Contains("lib" + detName + fMode + ".so") || (gSystem->Load("lib" + detName + fMode + ".so") >= 0)) {
pluginManager->AddHandler("AliQADataMaker", detName, qadmName, detName + "qadm", qadmName + "()") ;
} else {
if (fQAWriteExpert[iDet])
qadm->SetWriteExpert() ;
- AliDebug(1, Form("Data Maker found for %s %d", qadm->GetName(), qadm->WriteExpert())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Data Maker found for %s %d", qadm->GetName(), qadm->WriteExpert())) ;
// skip non active detectors
if (detArray) {
AliModule* det = static_cast<AliModule*>(detArray->FindObject(AliQAv1::GetDetName(iDet))) ;
else
file = Form("%s", turl) ;
- AliInfo(Form("%s\n", file)) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("%s\n", file)) ;
merger.AddFile(file) ;
index++ ;
}
if (index)
merger.Merge() ;
- AliInfo(Form("Files merged into %s\n", outFile)) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Files merged into %s\n", outFile)) ;
rv = kFALSE;
return rv ;
while ( (srun = dynamic_cast<TObjString *> (nextRun())) ) {
runNumber = (srun->String()).Atoi() ;
hisRun->Fill(runNumber) ;
- AliInfo(Form("Merging run number %d", runNumber)) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Merging run number %d", runNumber)) ;
// search all QA files for runNumber in the current directory
char * fileList[AliQAv1::kNDET] ;
index = 0 ;
while ( (obj1 = nextkey()) ) {
TDirectory * directoryDet = inFile->GetDirectory(obj1->GetName()) ;
if ( directoryDet ) {
-// AliInfo(Form("%s dir = %s", inFile->GetName(), directoryDet->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("%s dir = %s", inFile->GetName(), directoryDet->GetName())) ;
dirName += Form("%s/", directoryDet->GetName() ) ;
directoryDet->cd() ;
TList * listOfTasks = directoryDet->GetListOfKeys() ;
TDirectory * directoryTask = directoryDet->GetDirectory(obj2->GetName()) ;
if ( directoryTask ) {
dirName += Form("%s", obj2->GetName()) ;
- //AliInfo(Form("%s", dirName.Data())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("%s", dirName.Data())) ;
directoryTask->cd() ;
TList * listOfEventSpecie = directoryTask->GetListOfKeys() ;
TIter nextEventSpecie(listOfEventSpecie) ;
TDirectory * directoryEventSpecie = directoryTask->GetDirectory(obj3->GetName()) ;
if ( directoryEventSpecie ) {
dirName += Form("/%s/", obj3->GetName()) ;
-// AliInfo(Form("%s\n", dirName.Data())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("%s\n", dirName.Data())) ;
directoryEventSpecie->cd() ;
// histograms are here
TDirectory * mergedDirectory = mergedFile.GetDirectory(dirName.Data()) ;
if ( className.Contains("TH") || className.Contains("TProfile") ) {
TH1 * histIn = dynamic_cast<TH1*> (key->ReadObj()) ;
TH1 * histOu = dynamic_cast<TH1*> (mergedDirectory->FindObjectAny(histIn->GetName())) ;
- //AliInfo(Form("%s %x %x\n", key->GetName(), histIn, histOu)) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("%s %x %x\n", key->GetName(), histIn, histOu)) ;
mergedDirectory->cd() ;
if ( ! histOu ) {
histIn->Write() ;
in >> fileList[index] ;
if ( !in.good() )
break ;
- AliInfo(Form("index = %d file = %s", index, (fileList[index].Data()))) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("index = %d file = %s", index, (fileList[index].Data()))) ;
index++ ;
}
rl->CdGAFile() ;
rl->LoadgAlice() ;
if ( ! rl->GetAliRun() ) {
- AliInfo("AliRun not found in galice.root") ;
+ AliDebug(AliQAv1::GetQADebugLevel(), "AliRun not found in galice.root") ;
} else {
rl->LoadHeader() ;
man->SetRun(rl->GetHeader()->GetRun()) ;
{
// reads the TH1 from file and adds it to appropriate list before saving to OCDB
Bool_t rv = kTRUE ;
- AliInfo(Form("Saving TH1s in %s to %s", inputFile->GetName(), AliQAv1::GetQARefStorage())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Saving TH1s in %s to %s", inputFile->GetName(), AliQAv1::GetQARefStorage())) ;
if ( ! IsDefaultStorageSet() ) {
TString tmp( AliQAv1::GetQARefStorage() ) ;
if ( tmp.Contains(AliQAv1::GetLabLocalOCDB()) )
for ( Int_t detIndex = 0 ; detIndex < AliQAv1::kNDET ; detIndex++) {
TDirectory * detDir = inputFile->GetDirectory(AliQAv1::GetDetName(detIndex)) ;
if ( detDir ) {
- AliInfo(Form("Entering %s", detDir->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Entering %s", detDir->GetName())) ;
AliQAv1::SetQARefDataDirName(es) ;
TString detOCDBDir(Form("%s/%s/%s", AliQAv1::GetDetName(detIndex), AliQAv1::GetRefOCDBDirName(), AliQAv1::GetRefDataDirName())) ;
AliCDBId idr(detOCDBDir.Data(), runNumber, AliCDBRunRange::Infinity()) ;
while ( (taskKey = dynamic_cast<TKey*>(nextTask())) ) {
TDirectory * taskDir = detDir->GetDirectory(taskKey->GetName()) ;
TDirectory * esDir = taskDir->GetDirectory(AliRecoParam::GetEventSpecieName(es)) ;
- AliInfo(Form("Saving %s", esDir->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Saving %s", esDir->GetName())) ;
TObjArray * listTaskQAD = new TObjArray(100) ;
listTaskQAD->SetName(Form("%s/%s", taskKey->GetName(), AliRecoParam::GetEventSpecieName(es))) ;
listDetQAD->Add(listTaskQAD) ;
if ( !expertOdata ) {
AliError(Form("%s in %s/%s/Expert returns a NULL pointer !!", expertHistKey->GetName(), detDir->GetName(), taskDir->GetName())) ;
} else {
- AliInfo(Form("Adding %s", expertHistKey->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s", expertHistKey->GetName())) ;
if ( expertOdata->IsA()->InheritsFrom("TH1") ) {
- AliInfo(Form("Adding %s", expertHistKey->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s", expertHistKey->GetName())) ;
TH1 * hExpertdata = static_cast<TH1*>(expertOdata) ;
listTaskQAD->Add(hExpertdata) ;
}
}
}
}
- AliInfo(Form("Adding %s", histKey->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s", histKey->GetName())) ;
if ( odata->IsA()->InheritsFrom("TH1") ) {
- AliInfo(Form("Adding %s", histKey->GetName())) ;
+ AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s", histKey->GetName())) ;
TH1 * hdata = static_cast<TH1*>(odata) ;
listTaskQAD->Add(hdata) ;
}