From 5379c4a36d42baeb9f7a3f573a57bb4957b3628d Mon Sep 17 00:00:00 2001 From: hristov Date: Tue, 12 May 2009 10:43:13 +0000 Subject: [PATCH] Reduced QA output (Yves) --- ACORDE/AliACORDEQAChecker.cxx | 4 +-- ACORDE/AliACORDEQADataMakerSim.cxx | 4 +-- HMPID/AliHMPIDQAChecker.cxx | 2 +- ITS/AliITSQAChecker.cxx | 40 ++++++++++++------------ ITS/AliITSQADataMakerRec.cxx | 22 +++++++------- ITS/AliITSQADataMakerSim.cxx | 28 ++++++++--------- ITS/AliITSQASDDDataMakerRec.cxx | 24 +++++++-------- ITS/AliITSQASDDDataMakerSim.cxx | 10 +++--- ITS/AliITSQASPDChecker.cxx | 18 +++++------ ITS/AliITSQASPDDataMakerRec.cxx | 12 ++++---- ITS/AliITSQASPDDataMakerSim.cxx | 10 +++--- ITS/AliITSQASSDChecker.cxx | 6 ++-- ITS/AliITSQASSDDataMakerRec.cxx | 40 ++++++++++++------------ ITS/AliITSQASSDDataMakerSim.cxx | 18 +++++------ MUON/AliMUONQADataMakerRec.cxx | 14 ++++----- MUON/AliMUONQADataMakerSim.cxx | 8 ++--- PHOS/AliPHOSESDQA.cxx | 20 ++++++------ STEER/AliCDBManager.cxx | 6 ++-- STEER/AliQAChecker.cxx | 18 +++++------ STEER/AliQACheckerBase.cxx | 49 ++++++++++++++++-------------- STEER/AliQADataMakerRec.cxx | 23 +++++++------- STEER/AliQADataMakerSim.cxx | 15 ++++----- STEER/AliQAManager.cxx | 42 ++++++++++++------------- STEER/AliQAv1.cxx | 2 +- STEER/AliQAv1.h | 9 ++++-- T0/AliT0QAChecker.cxx | 36 +++++++++++----------- T0/AliT0QADataMakerRec.cxx | 2 +- TOF/AliTOFQAChecker.cxx | 4 +-- TRD/AliTRDQADataMaker.cxx | 4 +-- TRD/AliTRDQADataMakerRec.cxx | 20 ++++++------ TRD/AliTRDQADataMakerSim.cxx | 2 +- VZERO/AliVZEROQAChecker.cxx | 8 ++--- VZERO/AliVZEROQADataMakerRec.cxx | 4 +-- ZDC/AliZDCQAChecker.cxx | 26 ++++++++-------- test/ppbench/sim.C | 2 +- 35 files changed, 282 insertions(+), 270 deletions(-) diff --git a/ACORDE/AliACORDEQAChecker.cxx b/ACORDE/AliACORDEQAChecker.cxx index 3d457a30c14..f411ceb3edc 100755 --- a/ACORDE/AliACORDEQAChecker.cxx +++ b/ACORDE/AliACORDEQAChecker.cxx @@ -89,7 +89,7 @@ Double_t * AliACORDEQAChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** if (hdata) { Double_t rv = 0.0 ; if(hdata->GetEntries()>0)rv=1; - AliInfo(Form("%s -> %f", hdata->GetName(), rv)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s -> %f", hdata->GetName(), rv)) ; count[specie]++ ; test[specie] += rv ; @@ -130,7 +130,7 @@ Double_t * AliACORDEQAChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** } } } - // AliInfo(Form("Test Result = %f", test[specie])) ; + // AliDebug(AliQAv1::GetQADebugLevel(), Form("Test Result = %f", test[specie])) ; } return test ; } diff --git a/ACORDE/AliACORDEQADataMakerSim.cxx b/ACORDE/AliACORDEQADataMakerSim.cxx index 887aaf08144..178910ef083 100755 --- a/ACORDE/AliACORDEQADataMakerSim.cxx +++ b/ACORDE/AliACORDEQADataMakerSim.cxx @@ -72,7 +72,7 @@ void AliACORDEQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObj { //Detector specific actions at end of cycle // do the QA checking - AliInfo("ACORDE---->Detector specific actions at END of cycle\n................\n"); + AliDebug(AliQAv1::GetQADebugLevel(), "ACORDE---->Detector specific actions at END of cycle\n................\n"); AliQAChecker::Instance()->Run(AliQAv1::kACORDE, task, list) ; } @@ -80,7 +80,7 @@ void AliACORDEQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObj void AliACORDEQADataMakerSim::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliInfo("ACORDE---->Detector specific actions at START of cycle\n................\n"); + AliDebug(AliQAv1::GetQADebugLevel(), "ACORDE---->Detector specific actions at START of cycle\n................\n"); } //____________________________________________________________________________ void AliACORDEQADataMakerSim::InitHits() diff --git a/HMPID/AliHMPIDQAChecker.cxx b/HMPID/AliHMPIDQAChecker.cxx index 25d398e576e..3992b3e030d 100644 --- a/HMPID/AliHMPIDQAChecker.cxx +++ b/HMPID/AliHMPIDQAChecker.cxx @@ -153,7 +153,7 @@ Double_t AliHMPIDQAChecker::CheckRecPoints(TObjArray *listrec, TObjArray *listre if(h.Contains("size MIP")) if(TMath::Abs(histo->GetMean()-5) > 2) counter++; if(h.Contains("size Phots")) if(TMath::Abs(histo->GetMean()-2) > 2) counter++; if(h.Contains("distribution")) if(histo->KolmogorovTest((TH1F *)listref->At(0))<0.8) counter++; - AliDebug(1,Form(" Kolm. test : %f ",histo->KolmogorovTest((TH1F *)listref->At(0)))); + AliDebug(AliQAv1::GetQADebugLevel(),Form(" Kolm. test : %f ",histo->KolmogorovTest((TH1F *)listref->At(0)))); } } Float_t response = counter/(7.+7.+42.+42.); // 7.+7.+42 +42 = N checked histograms (-> To be replaced by listrec->GetEntries()) diff --git a/ITS/AliITSQAChecker.cxx b/ITS/AliITSQAChecker.cxx index 2f5ec93af51..be7814d3a75 100644 --- a/ITS/AliITSQAChecker.cxx +++ b/ITS/AliITSQAChecker.cxx @@ -49,13 +49,13 @@ fSSDChecker(0) // SSD Checker // Standard constructor fkOnline = kMode; fDet = subDet; fLDC = ldc; if(fDet == 0 || fDet == 1) { - AliDebug(1,"AliITSQAChecker::Create SPD Checker\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQAChecker::Create SPD Checker\n"); } if(fDet == 0 || fDet == 2) { - AliDebug(1,"AliITSQAChecker::Create SDD Checker\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQAChecker::Create SDD Checker\n"); } if(fDet == 0 || fDet == 3) { - AliDebug(1,"AliITSQAChecker::Create SSD Checker\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQAChecker::Create SSD Checker\n"); } } @@ -104,7 +104,7 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) rv[specie] = 0.0 ; if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) ) continue ; - AliDebug(1,"Checker for ESD"); + AliDebug(AliQAv1::GetQADebugLevel(),"Checker for ESD"); Int_t tested = 0; Int_t empty = 0; // The following flags are set to kTRUE if the corresponding @@ -141,10 +141,10 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) Double_t entries = hdata->GetEntries(); ++tested; if(!(entries>0.))++empty; - AliDebug(1,Form("ESD hist name %s - entries %12.1g",hname.Data(),entries)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("ESD hist name %s - entries %12.1g",hname.Data(),entries)); if(hname.Contains("hESDClusterMapSA") && entries>0.){ cluMapSA = kTRUE; - AliDebug(1,Form("Processing histogram %s",hname.Data())); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Processing histogram %s",hname.Data())); // Check if there are layers with anomalously low // contributing points to SA reconstructed tracks for(Int_t k=1;k<7;k++){ @@ -152,7 +152,7 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) if(skipped[k-1]) continue; if(hdata->GetBinContent(k)<0.5*(entries/6.)){ cluMapSA = kFALSE; - AliInfo(Form("SA tracks have few points on layer %d - look at histogram hESDClustersSA",k)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("SA tracks have few points on layer %d - look at histogram hESDClustersSA",k)); } } } @@ -160,51 +160,51 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) else if(hname.Contains("hESDClusterMapMI") && entries>0.){ // Check if there are layers with anomalously low // contributing points to MI reconstructed tracks - AliDebug(1,Form("Processing histogram %s",hname.Data())); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Processing histogram %s",hname.Data())); cluMapMI = kTRUE; for(Int_t k=1;k<7;k++){ // check if the layer was skipped if(skipped[k-1]) continue; if(hdata->GetBinContent(k)<0.5*(entries/6.)){ cluMapMI = kFALSE; - AliInfo(Form("MI tracks have few points on layer %d - look at histogram hESDClustersMI",k)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("MI tracks have few points on layer %d - look at histogram hESDClustersMI",k)); } } } else if(hname.Contains("hESDClustersMI") && entries>0.){ // Check if 6 clusters MI tracks are the majority - AliDebug(1,Form("Processing histogram %s",hname.Data())); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Processing histogram %s",hname.Data())); cluMI = kTRUE; Double_t maxlaytracks = hdata->GetBinContent(7-nskipped); for(Int_t k=2; k<7-nskipped; k++){ if(hdata->GetBinContent(k)>maxlaytracks){ cluMI = kFALSE; - AliInfo(Form("MI Tracks with %d clusters are more than tracks with %d clusters. Look at histogram hESDClustersMI",k-1,6-nskipped)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("MI Tracks with %d clusters are more than tracks with %d clusters. Look at histogram hESDClustersMI",k-1,6-nskipped)); } } } else if(hname.Contains("hESDClustersSA") && entries>0.){ // Check if 6 clusters SA tracks are the majority - AliDebug(1,Form("Processing histogram %s",hname.Data())); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Processing histogram %s",hname.Data())); cluSA = kTRUE; Double_t maxlaytracks = hdata->GetBinContent(7-nskipped); for(Int_t k=2; k<7-nskipped; k++){ if(hdata->GetBinContent(k)>maxlaytracks){ cluSA = kFALSE; - AliInfo(Form("SA Tracks with %d clusters are more than tracks with %d clusters. Look at histogram hESDClustersSA",k-1,6-nskipped)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("SA Tracks with %d clusters are more than tracks with %d clusters. Look at histogram hESDClustersSA",k-1,6-nskipped)); } } } else if(hname.Contains("hSPDVertexZ") && entries>0.){ // Check if average Z vertex coordinate is -5 < z < 5 cm - AliDebug(1,Form("Processing histogram %s",hname.Data())); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Processing histogram %s",hname.Data())); verSPDZ = kTRUE; if(hdata->GetMean()<-5. && hdata->GetMean()>5.){ verSPDZ = kFALSE; - AliInfo(Form("Average z vertex coordinate is at z= %10.4g cm",hdata->GetMean())); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Average z vertex coordinate is at z= %10.4g cm",hdata->GetMean())); } } } @@ -230,7 +230,7 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) } } } - AliInfo(Form("ESD - Tested %d histograms, Return value %f \n",tested,rv[specie])); + AliDebug(AliQAv1::GetQADebugLevel(), Form("ESD - Tested %d histograms, Return value %f \n",tested,rv[specie])); } return rv ; } // end of ESD QA @@ -241,7 +241,7 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) Double_t spdCheck, sddCheck, ssdCheck; //pixel if(fDet == 0 || fDet == 1) { - AliDebug(1,"AliITSQAChecker::Create SPD Checker\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQAChecker::Create SPD Checker\n"); if(!fSPDChecker) { fSPDChecker = new AliITSQASPDChecker(); } @@ -256,7 +256,7 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) } //drift if(fDet == 0 || fDet == 2) { - AliDebug(1,"AliITSQAChecker::Create SDD Checker\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQAChecker::Create SDD Checker\n"); if(!fSDDChecker) { fSDDChecker = new AliITSQASDDChecker(); } @@ -271,10 +271,10 @@ Double_t * AliITSQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) } //strip if(fDet == 0 || fDet == 3) { - AliDebug(1,"AliITSQAChecker::Create SSD Checker\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQAChecker::Create SSD Checker\n"); if(!fSSDChecker) { fSSDChecker = new AliITSQASSDChecker(); - AliInfo(Form("Number of monitored objects SSD: %d", list[AliRecoParam::kDefault]->GetEntries())); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Number of monitored objects SSD: %d", list[AliRecoParam::kDefault]->GetEntries())); } fSSDChecker->SetTaskOffset(fSSDOffset); for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { diff --git a/ITS/AliITSQADataMakerRec.cxx b/ITS/AliITSQADataMakerRec.cxx index e80251d9097..2664e640eae 100644 --- a/ITS/AliITSQADataMakerRec.cxx +++ b/ITS/AliITSQADataMakerRec.cxx @@ -63,16 +63,16 @@ fSSDDataMaker(NULL) // Initialization for RAW data if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM::Create SPD DataMakerRec\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Create SPD DataMakerRec\n"); fSPDDataMaker = new AliITSQASPDDataMakerRec(this,fkOnline); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM::Create SDD DataMakerRec\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Create SDD DataMakerRec\n"); fSDDDataMaker = new AliITSQASDDDataMakerRec(this,fkOnline); if(fkOnline){SetHLTMode(fSDDDataMaker->GetHLTMode()); } } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM::Create SSD DataMakerRec\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Create SSD DataMakerRec\n"); fSSDDataMaker = new AliITSQASSDDataMakerRec(this,fkOnline); } } @@ -114,7 +114,7 @@ AliITSQADataMakerRec& AliITSQADataMakerRec::operator = (const AliITSQADataMakerR void AliITSQADataMakerRec::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of ITS Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of ITS Cycle\n"); if(fSubDetector == 0 || fSubDetector == 1) fSPDDataMaker->StartOfDetectorCycle(); if(fSubDetector == 0 || fSubDetector == 2) fSDDDataMaker->StartOfDetectorCycle(); if(fSubDetector == 0 || fSubDetector == 3) fSSDDataMaker->StartOfDetectorCycle(); @@ -127,7 +127,7 @@ void AliITSQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { SetEventSpecie(specie) ; - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list[specie])\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list[specie])\n"); if(fSubDetector == 0 || fSubDetector == 1) fSPDDataMaker->EndOfDetectorCycle(task, list[specie]); if(fSubDetector == 0 || fSubDetector == 2) fSDDDataMaker->EndOfDetectorCycle(task, list[specie]); if(fSubDetector == 0 || fSubDetector == 3) fSSDDataMaker->EndOfDetectorCycle(task, list[specie]); @@ -163,15 +163,15 @@ void AliITSQADataMakerRec::InitRaws() { // Initialization for RAW data if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM:: SPD InitRaws\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SPD InitRaws\n"); fSPDDataMaker->InitRaws(); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM:: SDD InitRaws\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SDD InitRaws\n"); fSDDDataMaker->InitRaws(); } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM:: SSD InitRaws\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SSD InitRaws\n"); fSSDDataMaker->InitRaws(); } } @@ -190,15 +190,15 @@ void AliITSQADataMakerRec::InitRecPoints() { // Initialization for RECPOINTS if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM:: SPD InitRecPoints\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SPD InitRecPoints\n"); fSPDDataMaker->InitRecPoints(); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM:: SDD InitRecPoints\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SDD InitRecPoints\n"); fSDDDataMaker->InitRecPoints(); } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM:: SSD InitRecPoints\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SSD InitRecPoints\n"); fSSDDataMaker->InitRecPoints(); } } diff --git a/ITS/AliITSQADataMakerSim.cxx b/ITS/AliITSQADataMakerSim.cxx index 6035f93d016..c26722fa1a8 100644 --- a/ITS/AliITSQADataMakerSim.cxx +++ b/ITS/AliITSQADataMakerSim.cxx @@ -56,16 +56,16 @@ fSSDDataMaker(NULL) // Initialization for RAW data if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM::Create SPD DataMakerSim\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Create SPD DataMakerSim\n"); fSPDDataMaker = new AliITSQASPDDataMakerSim(this); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM::Create SDD DataMakerSim\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Create SDD DataMakerSim\n"); //printf("AliITSQADM::Create SDD DataMakerSim\n"); fSDDDataMaker = new AliITSQASDDDataMakerSim(this); } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM::Create SSD DataMakerSim\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Create SSD DataMakerSim\n"); fSSDDataMaker = new AliITSQASSDDataMakerSim(this); } } @@ -104,7 +104,7 @@ AliITSQADataMakerSim& AliITSQADataMakerSim::operator = (const AliITSQADataMakerS void AliITSQADataMakerSim::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of ITS Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of ITS Cycle\n"); if(fSubDetector == 0 || fSubDetector == 1) fSPDDataMaker->StartOfDetectorCycle(); if(fSubDetector == 0 || fSubDetector == 2) fSDDDataMaker->StartOfDetectorCycle(); @@ -117,7 +117,7 @@ void AliITSQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr // launch the QA checking for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { SetEventSpecie(specie) ; - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); if(fSubDetector == 0 || fSubDetector == 1) fSPDDataMaker->EndOfDetectorCycle(task, list[specie]); if(fSubDetector == 0 || fSubDetector == 2) fSDDDataMaker->EndOfDetectorCycle(task, list[specie]); if(fSubDetector == 0 || fSubDetector == 3) fSSDDataMaker->EndOfDetectorCycle(task, list[specie]); @@ -145,15 +145,15 @@ void AliITSQADataMakerSim::InitDigits() { // Initialization for RAW data if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM:: SPD InitDigits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SPD InitDigits\n"); fSPDDataMaker->InitDigits(); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM:: SDD InitDigits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SDD InitDigits\n"); fSDDDataMaker->InitDigits(); } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM:: SSD InitDigits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SSD InitDigits\n"); fSSDDataMaker->InitDigits(); } } @@ -181,15 +181,15 @@ void AliITSQADataMakerSim::InitSDigits() { // Initialization for RECPOINTS if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM:: SPD InitSDigits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SPD InitSDigits\n"); fSPDDataMaker->InitSDigits(); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM:: SDD InitSDigits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SDD InitSDigits\n"); fSDDDataMaker->InitSDigits(); } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM:: SSD InitSDigits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SSD InitSDigits\n"); fSSDDataMaker->InitSDigits(); } } @@ -217,15 +217,15 @@ void AliITSQADataMakerSim::InitHits() { // Initialization for RECPOINTS if(fSubDetector == 0 || fSubDetector == 1) { - AliDebug(1,"AliITSQADM:: SPD InitHits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SPD InitHits\n"); fSPDDataMaker->InitHits(); } if(fSubDetector == 0 || fSubDetector == 2) { - AliDebug(1,"AliITSQADM:: SDD InitHits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SDD InitHits\n"); fSDDDataMaker->InitHits(); } if(fSubDetector == 0 || fSubDetector == 3) { - AliDebug(1,"AliITSQADM:: SSD InitHits\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM:: SSD InitHits\n"); fSSDDataMaker->InitHits(); } } diff --git a/ITS/AliITSQASDDDataMakerRec.cxx b/ITS/AliITSQASDDDataMakerRec.cxx index 6be5fa10b06..fabfa8dea6a 100644 --- a/ITS/AliITSQASDDDataMakerRec.cxx +++ b/ITS/AliITSQASDDDataMakerRec.cxx @@ -123,14 +123,14 @@ AliITSQASDDDataMakerRec& AliITSQASDDDataMakerRec::operator = (const AliITSQASDDD void AliITSQASDDDataMakerRec::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of SDD Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SDD Cycle\n"); } //____________________________________________________________________________ void AliITSQASDDDataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/) { // launch the QA checking - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); } //____________________________________________________________________________ @@ -262,7 +262,7 @@ void AliITSQASDDDataMakerRec::InitRaws() } // kONLINE - AliDebug(1,Form("%d SDD Raws histograms booked\n",fSDDhRawsTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD Raws histograms booked\n",fSDDhRawsTask)); } @@ -276,7 +276,7 @@ void AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader) return; } if(rawReader->GetType() != 7) return; // skips non physical triggers - AliDebug(1,"entering MakeRaws\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"entering MakeRaws\n"); rawReader->Reset(); AliITSRawStream *stream; @@ -333,15 +333,15 @@ void AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader) isddmod = fDDLModuleMap->GetModuleNumber(iddl,stream->GetCarlosId()); if(isddmod==-1){ - AliDebug(1,Form("Found module with iddl: %d, stream->GetCarlosId: %d \n",iddl,stream->GetCarlosId())); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Found module with iddl: %d, stream->GetCarlosId: %d \n",iddl,stream->GetCarlosId())); continue; } if(stream->IsCompletedModule()) { - AliDebug(1,Form("IsCompletedModule == KTRUE\n")); + AliDebug(AliQAv1::GetQADebugLevel(),Form("IsCompletedModule == KTRUE\n")); continue; } if(stream->IsCompletedDDL()) { - AliDebug(1,Form("IsCompletedDDL == KTRUE\n")); + AliDebug(AliQAv1::GetQADebugLevel(),Form("IsCompletedDDL == KTRUE\n")); continue; } @@ -352,7 +352,7 @@ void AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader) moduleSDD = isddmod - fgkmodoffset; if(isddmod fgknSDDmodules+fgkmodoffset-1) { - AliDebug(1,Form( "Module SDD = %d, resetting it to 1 \n",isddmod)); + AliDebug(AliQAv1::GetQADebugLevel(),Form( "Module SDD = %d, resetting it to 1 \n",isddmod)); isddmod = 1; } @@ -376,7 +376,7 @@ void AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader) index1 = activeModule * 2 + iside; if(index1<0){ - AliDebug(1,Form("Wrong index number %d - patched to 0\n",index1)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Wrong index number %d - patched to 0\n",index1)); index1 = 0; } fAliITSQADataMakerRec->GetRawsData(3+fGenRawsOffset)->Fill(2*(stream->GetCarlosId())+iside,iddl); @@ -386,9 +386,9 @@ void AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader) } } cnt++; - if(!(cnt%10000)) AliDebug(1,Form(" %d raw digits read",cnt)); + if(!(cnt%10000)) AliDebug(AliQAv1::GetQADebugLevel(),Form(" %d raw digits read",cnt)); } - AliDebug(1,Form("Event completed, %d raw digits read",cnt)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Event completed, %d raw digits read",cnt)); delete stream; stream = NULL; } @@ -532,7 +532,7 @@ void AliITSQASDDDataMakerRec::InitRecPoints() //printf("%d SDD Recs histograms booked\n",fSDDhRecPointsTask); - AliDebug(1,Form("%d SDD Recs histograms booked\n",fSDDhRecPointsTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD Recs histograms booked\n",fSDDhRecPointsTask)); } diff --git a/ITS/AliITSQASDDDataMakerSim.cxx b/ITS/AliITSQASDDDataMakerSim.cxx index 43369775b79..915cb80e571 100644 --- a/ITS/AliITSQASDDDataMakerSim.cxx +++ b/ITS/AliITSQASDDDataMakerSim.cxx @@ -90,14 +90,14 @@ AliITSQASDDDataMakerSim& AliITSQASDDDataMakerSim::operator = (const AliITSQASDDD void AliITSQASDDDataMakerSim::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of SDD Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SDD Cycle\n"); } //____________________________________________________________________________ void AliITSQASDDDataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/) { // launch the QA checking - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); //AliQAChecker::Instance()->Run( AliQAv1::kITS , task, list); } @@ -130,7 +130,7 @@ void AliITSQASDDDataMakerSim::InitDigits() h3->GetYaxis()->SetTitle("# DIGITS"); fAliITSQADataMakerSim->Add2DigitsList(h3,3+fGenOffsetD, !expert, image); fSDDhDTask ++; - AliDebug(1,Form("%d SDD Digits histograms booked\n",fSDDhDTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD Digits histograms booked\n",fSDDhDTask)); } //____________________________________________________________________________ @@ -188,7 +188,7 @@ void AliITSQASDDDataMakerSim::InitSDigits() fAliITSQADataMakerSim->Add2SDigitsList(h3,3+fGenOffsetS, !expert, image); fSDDhSTask ++; - AliDebug(1,Form("%d SDD SDigits histograms booked\n",fSDDhSTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD SDigits histograms booked\n",fSDDhSTask)); } //____________________________________________________________________________ @@ -263,7 +263,7 @@ void AliITSQASDDDataMakerSim::InitHits() h3->GetYaxis()->SetTitle("# HITS"); fAliITSQADataMakerSim->Add2HitsList(h3,3+fGenOffsetH, !expert, image); fSDDhHTask ++; - AliDebug(1,Form("%d SDD Hits histograms booked\n",fSDDhHTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD Hits histograms booked\n",fSDDhHTask)); } //____________________________________________________________________________ diff --git a/ITS/AliITSQASPDChecker.cxx b/ITS/AliITSQASPDChecker.cxx index 7b3ecbc4f9a..446623442dc 100644 --- a/ITS/AliITSQASPDChecker.cxx +++ b/ITS/AliITSQASPDChecker.cxx @@ -43,7 +43,7 @@ AliITSQASPDChecker& AliITSQASPDChecker::operator = (const AliITSQASPDChecker& qa //__________________________________________________________________ Double_t AliITSQASPDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * list) { - AliDebug(1,Form("AliITSQASPDChecker called with offset: %d\n", fSubDetOffset)); + AliDebug(2, Form("AliITSQASPDChecker called with offset: %d\n", fSubDetOffset)); Double_t test = 0.0; Int_t count = 0; @@ -64,10 +64,10 @@ Double_t AliITSQASPDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * lis if (histName.Contains("LayPattern")) { if (hdata->GetBinContent(1)) { Double_t ratio=hdata->GetBinContent(2)/hdata->GetBinContent(1); - AliInfo(Form("%s: ratio RecPoints lay2 / lay1 = %f", hdata->GetName(), ratio)); + AliDebug(2, Form("%s: ratio RecPoints lay2 / lay1 = %f", hdata->GetName(), ratio)); } else - AliInfo("No RecPoints in lay1"); + AliDebug(AliQAv1::GetQADebugLevel(), "No RecPoints in lay1"); } else if(histName.Contains("ModPattern")) { Int_t ndead=0; @@ -75,7 +75,7 @@ Double_t AliITSQASPDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * lis if(histName.Contains("SPD1") && ibin<80 && hdata->GetBinContent(ibin+1)>0) ndead++; if(histName.Contains("SPD2") && ibin>79 && hdata->GetBinContent(ibin+1)>0) ndead++; } - AliInfo(Form("%s: Entries = %d number of empty modules = %d", + AliDebug(2, Form("%s: Entries = %d number of empty modules = %d", hdata->GetName(),(Int_t)hdata->GetEntries(),ndead)); } else if(histName.Contains("SizeYvsZ")) { @@ -83,14 +83,14 @@ Double_t AliITSQASPDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * lis Double_t meany=hdata->GetMean(2); Double_t rmsz=hdata->GetRMS(1); Double_t rmsy=hdata->GetRMS(2); - AliInfo(Form("%s: Cluster sizeY mean = %f rms = %f", hdata->GetName(),meany,rmsy)); - AliInfo(Form("%s: Cluster sizeZ mean = %f rms = %f", hdata->GetName(),meanz,rmsz)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s: Cluster sizeY mean = %f rms = %f", hdata->GetName(),meany,rmsy)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s: Cluster sizeZ mean = %f rms = %f", hdata->GetName(),meanz,rmsz)); } else if(histName.Contains("Multiplicity")) { - AliInfo(Form("%s: Events = %d mean = %f rms = %f", + AliDebug(2, Form("%s: Events = %d mean = %f rms = %f", hdata->GetName(),(Int_t)hdata->GetEntries(),hdata->GetMean(),hdata->GetRMS()));} - // else AliInfo(Form("%s -> %f", hdata->GetName(), rv)); + // else AliDebug(AliQAv1::GetQADebugLevel(), Form("%s -> %f", hdata->GetName(), rv)); count++; test += rv; } @@ -110,7 +110,7 @@ Double_t AliITSQASPDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * lis } } - AliInfo(Form("Test Result = %f", test)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Test Result = %f", test)); return test ; } diff --git a/ITS/AliITSQASPDDataMakerRec.cxx b/ITS/AliITSQASPDDataMakerRec.cxx index 19504114450..4a44dca2051 100644 --- a/ITS/AliITSQASPDDataMakerRec.cxx +++ b/ITS/AliITSQASPDDataMakerRec.cxx @@ -94,14 +94,14 @@ AliITSQASPDDataMakerRec& AliITSQASPDDataMakerRec::operator = (const AliITSQASPDD void AliITSQASPDDataMakerRec::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of SPD Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SPD Cycle\n"); } //____________________________________________________________________________ void AliITSQASPDDataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/) { // launch the QA checking - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); //AliQAChecker::Instance()->Run( AliQAv1::kITS , task, list); } @@ -116,7 +116,7 @@ void AliITSQASPDDataMakerRec::InitRaws() fGenRawsOffset = (fAliITSQADataMakerRec->fRawsQAList[AliRecoParam::kDefault])->GetEntries(); fAdvLogger = new AliITSRawStreamSPDErrorLog(); - AliInfo("Book Offline Histograms for SPD\n "); + AliDebug(AliQAv1::GetQADebugLevel(), "Book Offline Histograms for SPD\n "); Char_t name[50]; Char_t title[50]; @@ -174,7 +174,7 @@ void AliITSQASPDDataMakerRec::InitRaws() fAliITSQADataMakerRec->Add2RawsList(hMultSPDhits2MultSPDhits1, 45+fGenRawsOffset, !expert, image, !saveCorr); fSPDhRawsTask++; - AliDebug(1,Form("%d SPD Raws histograms booked\n",fSPDhRawsTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Raws histograms booked\n",fSPDhRawsTask)); } @@ -231,7 +231,7 @@ void AliITSQASPDDataMakerRec::MakeRaws(AliRawReader* rawReader) fAliITSQADataMakerRec->GetRawsData(45+fGenRawsOffset)->Fill(nDigitsL1,nDigitsL2); delete rawStreamSPD; - AliDebug(1,Form("Event completed, %d raw digits read",nDigitsL1+nDigitsL2)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Event completed, %d raw digits read",nDigitsL1+nDigitsL2)); } //____________________________________________________________________________ @@ -377,7 +377,7 @@ void AliITSQASPDDataMakerRec::InitRecPoints() fAliITSQADataMakerRec->Add2RecPointsList(hMultSPDcl2MultSPDcl1, 25+fGenRecPointsOffset, !expert, image); fSPDhRecPointsTask++; - AliDebug(1,Form("%d SPD Recs histograms booked\n",fSPDhRecPointsTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Recs histograms booked\n",fSPDhRecPointsTask)); } diff --git a/ITS/AliITSQASPDDataMakerSim.cxx b/ITS/AliITSQASPDDataMakerSim.cxx index ca708e99c98..0b6814099df 100644 --- a/ITS/AliITSQASPDDataMakerSim.cxx +++ b/ITS/AliITSQASPDDataMakerSim.cxx @@ -88,14 +88,14 @@ AliITSQASPDDataMakerSim& AliITSQASPDDataMakerSim::operator = (const AliITSQASPDD void AliITSQASPDDataMakerSim::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of SPD Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SPD Cycle\n"); } //____________________________________________________________________________ void AliITSQASPDDataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/) { // launch the QA checking - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); //AliQAChecker::Instance()->Run( AliQAv1::kITS , task, list); } @@ -160,7 +160,7 @@ void AliITSQASPDDataMakerSim::InitDigits() fAliITSQADataMakerSim->Add2DigitsList(hMultSPDdig2MultSPDdig1,7+fGenOffsetD, !expert, image); fSPDhDTask++; - AliDebug(1,Form("%d SPD Digits histograms booked\n",fSPDhDTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Digits histograms booked\n",fSPDhDTask)); } @@ -232,7 +232,7 @@ void AliITSQASPDDataMakerSim::InitSDigits() fSPDhSTask++; } - AliDebug(1,Form("%d SPD SDigits histograms booked\n",fSPDhSTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD SDigits histograms booked\n",fSPDhSTask)); } @@ -301,7 +301,7 @@ void AliITSQASPDDataMakerSim::InitHits() fAliITSQADataMakerSim->Add2HitsList(hEdepos,4+fGenOffsetH, !expert, image); fSPDhHTask++; - AliDebug(1,Form("%d SPD Hits histograms booked\n",fSPDhHTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Hits histograms booked\n",fSPDhHTask)); } diff --git a/ITS/AliITSQASSDChecker.cxx b/ITS/AliITSQASSDChecker.cxx index 11df668e763..63af85b086c 100644 --- a/ITS/AliITSQASSDChecker.cxx +++ b/ITS/AliITSQASSDChecker.cxx @@ -42,7 +42,7 @@ AliITSQASSDChecker& AliITSQASSDChecker::operator = (const AliITSQASSDChecker& qa //__________________________________________________________________ Double_t AliITSQASSDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * list) { - AliDebug(1,Form("AliITSQASSDChecker called with offset: %d\n", fSubDetOffset)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("AliITSQASSDChecker called with offset: %d\n", fSubDetOffset)); Double_t test = 0.0 ; Int_t count = 0 ; @@ -59,7 +59,7 @@ Double_t AliITSQASSDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * lis if(!histname.Contains("fHistSSD")) continue; Double_t rv = 0.; if(hdata->GetEntries()>0) rv = 1; - //AliInfo(Form("%s -> %f", hdata->GetName(), rv)) ; + //AliDebug(AliQAv1::GetQADebugLevel(), Form("%s -> %f", hdata->GetName(), rv)) ; //cout<GetName()<<" - "<SetDefaultStorage(gSystem->Getenv("AMORE_CDB_URI")); Int_t runNumber = atoi(gSystem->Getenv("DATE_RUN_NUMBER")); if(!runNumber) - AliInfo("DATE_RUN_NUMBER not defined!!!\n"); + AliWarning("DATE_RUN_NUMBER not defined!!!\n"); fCDBManager->SetRun(runNumber); AliCDBEntry *geomGRP = fCDBManager->Get("GRP/Geometry/Data"); - if(!geomGRP) AliInfo("GRP geometry not found!!!\n"); + if(!geomGRP) AliWarning("GRP geometry not found!!!\n"); Int_t gLayer = 0,gLadder = 0, gModule = 0; Int_t gHistCounter = 0; @@ -145,7 +145,7 @@ void AliITSQASSDDataMakerRec::StartOfDetectorCycle() return ; //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of SSD Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SSD Cycle\n"); //Data size per DDL ((TH1D *)(fAliITSQADataMakerRec->GetRawsData(fGenRawsOffset+4)))->Reset(); @@ -184,8 +184,8 @@ void AliITSQASSDDataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, if ( fAliITSQADataMakerRec->GetRawsData(0) == NULL ) // Raws not defined return ; // launch the QA checking - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); - AliInfo(Form("Offset: %d\n",fGenRawsOffset)); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Offset: %d\n",fGenRawsOffset)); //Data size per DDL for(Int_t i = 0; i < fgkNumOfDDLs; i++) { Double_t gSizePerDDL = TMath::Power(10,(fAliITSQADataMakerRec->GetRawsData(fGenRawsOffset+5+i))->GetMean())/1e+06; @@ -293,12 +293,12 @@ void AliITSQASSDDataMakerRec::InitRaws() { fGenRawsOffset = (fAliITSQADataMakerRec->fRawsQAList[AliRecoParam::kDefault])->GetEntries(); if(fkOnline) { - AliInfo("Book Online Histograms for SSD\n"); + AliDebug(AliQAv1::GetQADebugLevel(), "Book Online Histograms for SSD\n"); } else { - AliInfo("Book Offline Histograms for SSD\n "); + AliDebug(AliQAv1::GetQADebugLevel(), "Book Offline Histograms for SSD\n "); } - AliInfo(Form("Number of histograms (SPD+SDD): %d\n",fGenRawsOffset)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Number of histograms (SPD+SDD): %d\n",fGenRawsOffset)); TString gTitle = 0; //book online-offline QA histos TH1D *fHistSSDEventType = new TH1D("SSD/DataSize/fHistSSDEventType", @@ -626,15 +626,15 @@ void AliITSQASSDDataMakerRec::InitRaws() { }//online flag fSSDhRawsTask = fSSDRawsOffset; - AliDebug(1,Form("%d SSD Raws histograms booked\n",fSSDhRawsTask)); - AliInfo(Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDhRawsTask)); - AliDebug(1,Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDRawsOffset)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SSD Raws histograms booked\n",fSSDhRawsTask)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDhRawsTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDRawsOffset)); /* fSSDhTask = fSSDRawsOffset; - AliDebug(1,Form("%d SSD Raws histograms booked\n",fSSDhTask)); - AliInfo(Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDhTask)); - AliDebug(1,Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDRawsOffset)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SSD Raws histograms booked\n",fSSDhTask)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDhTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Number of histograms (SPD+SDD+SSD): %d\n",fGenRawsOffset+fSSDRawsOffset)); */ } @@ -683,7 +683,7 @@ void AliITSQASSDDataMakerRec::MakeRaws(AliRawReader* rawReader) { if(gSSDStream.GetStrip() < 0) continue; gStripNumber = (gSSDStream.GetSideFlag() == 0) ? gSSDStream.GetStrip() : -gSSDStream.GetStrip() + 2*fgkNumberOfPSideStrips; gHistPosition = (gLayer == 5) ? ((gLadder - 1)*fgkSSDMODULESPERLADDERLAYER5 + gModule - 1) : ((gLadder - 1)*fgkSSDMODULESPERLADDERLAYER6 + gModule + fgkSSDMODULESLAYER5 - 1); - //AliInfo(Form("ModulePosition: %d - Layer: %d - Ladder: %d - Module: %d\n",gHistPosition,gLayer,gLadder,gModule)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("ModulePosition: %d - Layer: %d - Ladder: %d - Module: %d\n",gHistPosition,gLayer,gLadder,gModule)); if(fkOnline) fHistSSDRawSignalModule[gHistPosition]->Fill(gStripNumber,gSSDStream.GetSignal()); //fAliITSQADataMakerRec->GetRawsData(fGenRawsOffset+gHistPosition+fSSDRawsCommonLevelOffset)->Fill(gStripNumber,gSSDStream.GetSignal()); @@ -804,7 +804,7 @@ Double_t AliITSQASSDDataMakerRec::GetOccupancyModule(TH1 *lHisto, /*if(histname.Contains("Layer5_Ladder507_Module3")) cout<<"Fired strips: "<GetNbinsX(),lOccupancy)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("Fired strips: %d - Total strips: %d - Occupancy :%lf\n",lNumFiredBins,lHisto->GetNbinsX(),lOccupancy)); return lOccupancy; } @@ -889,7 +889,7 @@ void AliITSQASSDDataMakerRec::InitRecPoints() const Bool_t image = kTRUE ; fGenRecPointsOffset = (fAliITSQADataMakerRec->fRecPointsQAList[AliRecoParam::kDefault])->GetEntries(); - //AliInfo(Form("**-------*-*-*-*-*-*-***************AliITSQASSDataMakerRec::MakeRecpoints offset %d \t %d \n",fGenOffset,fGenRecPointsOffset)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("**-------*-*-*-*-*-*-***************AliITSQASSDataMakerRec::MakeRecpoints offset %d \t %d \n",fGenOffset,fGenRecPointsOffset)); Int_t nModuleOffset = 500; Int_t nITSTotalModules = AliITSgeomTGeo::GetNModules(); @@ -1154,7 +1154,7 @@ void AliITSQASSDDataMakerRec::InitRecPoints() fGenRecPointsOffset + 37, !expert, image); fSSDhRecPointsTask += 1; //printf ("%d SSD Recs histograms booked\n",fSSDhRecPointsTask); - AliDebug(1,Form("%d SSD Recs histograms booked\n",fSSDhRecPointsTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SSD Recs histograms booked\n",fSSDhRecPointsTask)); } //____________________________________________________________________________ @@ -1261,7 +1261,7 @@ Int_t AliITSQASSDDataMakerRec::GetOffset(AliQAv1::TASKINDEX_t task) { offset=fGenRecPointsOffset; } else { - AliInfo("No task has been selected. Offset set to zero.\n"); + AliWarning("No task has been selected. Offset set to zero.\n"); } return offset; @@ -1279,7 +1279,7 @@ Int_t AliITSQASSDDataMakerRec::GetTaskHisto(AliQAv1::TASKINDEX_t task) { histotot=fSSDhRecPointsTask; } else { - AliInfo("No task has been selected. TaskHisto set to zero.\n"); + AliWarning("No task has been selected. TaskHisto set to zero.\n"); } return histotot; diff --git a/ITS/AliITSQASSDDataMakerSim.cxx b/ITS/AliITSQASSDDataMakerSim.cxx index e54474c4c84..53059b1763e 100644 --- a/ITS/AliITSQASSDDataMakerSim.cxx +++ b/ITS/AliITSQASSDDataMakerSim.cxx @@ -90,13 +90,13 @@ AliITSQASSDDataMakerSim& AliITSQASSDDataMakerSim::operator = (const AliITSQASSDD //____________________________________________________________________________ void AliITSQASSDDataMakerSim::StartOfDetectorCycle() { //Detector specific actions at start of cycle - AliDebug(1,"AliITSQADM::Start of SSD Cycle\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SSD Cycle\n"); } //____________________________________________________________________________ void AliITSQASSDDataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/) { // launch the QA checking - AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); + AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); // AliQAChecker::Instance()->Run( AliQAv1::kITS , task, list); } @@ -123,7 +123,7 @@ void AliITSQASSDDataMakerSim::InitDigits() { fGenOffsetD + 1, !expert, image); fSSDhDTask += 1; - AliDebug(1,Form("%d SSD Digits histograms booked\n",fSSDhDTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SSD Digits histograms booked\n",fSSDhDTask)); } @@ -139,7 +139,7 @@ void AliITSQASSDDataMakerSim::MakeDigits(TTree *digits) { Int_t ndigits = iSSDdigits->GetEntries(); fAliITSQADataMakerSim->GetDigitsData(fGenOffsetD + 0)->Fill(iModule,ndigits); if(ndigits != 0) - AliDebug(1,Form("Module: %d - Digits: %d",iModule,ndigits)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Module: %d - Digits: %d",iModule,ndigits)); for (Int_t iDigit = 0; iDigit < ndigits; iDigit++) { AliITSdigit *dig = (AliITSdigit*)iSSDdigits->UncheckedAt(iDigit); @@ -165,7 +165,7 @@ void AliITSQASSDDataMakerSim::InitSDigits() { fGenOffsetS + 0, !expert, image); fSSDhSTask += 1; - AliDebug(1,Form("%d SSD SDigits histograms booked\n",fSSDhSTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SSD SDigits histograms booked\n",fSSDhSTask)); } //____________________________________________________________________________ @@ -175,7 +175,7 @@ void AliITSQASSDDataMakerSim::MakeSDigits(TTree *sdigits) { iSSDEmpty.Clear(); TClonesArray *iSSDsdigits = &iSSDEmpty; - AliInfo(Form("Trying to access the sdigits histogram: %d\n",fGenOffsetS)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Trying to access the sdigits histogram: %d\n",fGenOffsetS)); TBranch *brchSDigits = sdigits->GetBranch("ITS"); brchSDigits->SetAddress(&iSSDsdigits); @@ -185,7 +185,7 @@ void AliITSQASSDDataMakerSim::MakeSDigits(TTree *sdigits) { Int_t ndigits = iSSDsdigits->GetEntries(); fAliITSQADataMakerSim->GetSDigitsData(fGenOffsetS + 0)->Fill(iModule,ndigits); if(ndigits != 0) - AliDebug(1,Form("Module: %d - Digits: %d",iModule,ndigits)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Module: %d - Digits: %d",iModule,ndigits)); for (Int_t iDigit = 0; iDigit < ndigits; iDigit++) { AliITSpListItem *dig=(AliITSpListItem*)iSSDsdigits->At(iDigit); @@ -259,7 +259,7 @@ void AliITSQASSDDataMakerSim::InitHits() { fGenOffsetH + 8, !expert, image); fSSDhHTask += 1; - AliDebug(1,Form("%d SSD Hits histograms booked\n",fSSDhHTask)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SSD Hits histograms booked\n",fSSDhHTask)); } @@ -276,7 +276,7 @@ void AliITSQASSDDataMakerSim::MakeHits(TTree *hits) { TObjArray *arrHits = module->GetHits(); Int_t nhits = arrHits->GetEntriesFast(); if(nhits != 0) - AliDebug(1,Form("Module: %d - Hits: %d",iModule,nhits)); + AliDebug(AliQAv1::GetQADebugLevel(),Form("Module: %d - Hits: %d",iModule,nhits)); for (Int_t iHit = 0; iHit < nhits; iHit++) { AliITShit *hit = (AliITShit*) arrHits->At(iHit); diff --git a/MUON/AliMUONQADataMakerRec.cxx b/MUON/AliMUONQADataMakerRec.cxx index 338d20c1315..2ea6893ce39 100644 --- a/MUON/AliMUONQADataMakerRec.cxx +++ b/MUON/AliMUONQADataMakerRec.cxx @@ -100,7 +100,7 @@ fTrackerDataMaker(0x0) { /// ctor - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); Ctor(); } @@ -129,7 +129,7 @@ fTrackerDataMaker(0x0) { ///copy ctor - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); SetName((const char*)qadm.GetName()) ; @@ -146,7 +146,7 @@ AliMUONQADataMakerRec& AliMUONQADataMakerRec::operator = (const AliMUONQADataMak { /// Assignment operator - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); // check assignment to self if (this == &qadm) return *this; @@ -161,7 +161,7 @@ AliMUONQADataMakerRec::~AliMUONQADataMakerRec() { /// dtor - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); AliCodeTimerAuto(""); @@ -196,7 +196,7 @@ void AliMUONQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjAr } if (!alreadyThere && fTrackerDataMaker) { - AliInfo("Adding fTrackerDataMaker to the list of qa objects"); + AliDebug(AliQAv1::GetQADebugLevel(), "Adding fTrackerDataMaker to the list of qa objects"); list[specie]->AddAt(fTrackerDataMaker->Data(),(Int_t)kTrackerData); } if ( fTrackerDataMaker ) @@ -1340,7 +1340,7 @@ AliMUONQADataMakerRec::FillTriggerDCSHistos() for(Int_t iMeas=0; iMeas(triggerDcsMap->FindObject(currAlias.Data())); @@ -1367,7 +1367,7 @@ AliMUONQADataMakerRec::FillTriggerDCSHistos() { Float_t hvi = val->GetFloat(); - AliDebug(2, Form("Value %f", hvi)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Value %f", hvi)); switch(iMeas){ case AliMpDCSNamer::kDCSI: diff --git a/MUON/AliMUONQADataMakerSim.cxx b/MUON/AliMUONQADataMakerSim.cxx index b7dbad3074d..5d413574f61 100644 --- a/MUON/AliMUONQADataMakerSim.cxx +++ b/MUON/AliMUONQADataMakerSim.cxx @@ -52,7 +52,7 @@ AliMUONQADataMakerSim::AliMUONQADataMakerSim() : { /// Default constructor - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); } //____________________________________________________________________________ @@ -63,7 +63,7 @@ AliMUONQADataMakerSim::AliMUONQADataMakerSim(const AliMUONQADataMakerSim& qadm) { /// Copy constructor - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); if ( qadm.fHitStore ) { @@ -82,7 +82,7 @@ AliMUONQADataMakerSim& AliMUONQADataMakerSim::operator = (const AliMUONQADataMak { /// Assignment operator - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); this->~AliMUONQADataMakerSim(); new(this) AliMUONQADataMakerSim(qadm); @@ -94,7 +94,7 @@ AliMUONQADataMakerSim::~AliMUONQADataMakerSim() { /// Destructor - AliDebug(1,""); + AliDebug(AliQAv1::GetQADebugLevel(),""); delete fHitStore; delete fDigitStore; diff --git a/PHOS/AliPHOSESDQA.cxx b/PHOS/AliPHOSESDQA.cxx index e83fea35bce..0677a368468 100644 --- a/PHOS/AliPHOSESDQA.cxx +++ b/PHOS/AliPHOSESDQA.cxx @@ -143,7 +143,7 @@ void AliPHOSESDQA::Exec(Option_t *) } if ( !((entry-1)%100) ) - AliInfo(Form("%s ----> Processing event # %lld", (dynamic_cast(fChain))->GetFile()->GetName(), entry)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s ----> Processing event # %lld", (dynamic_cast(fChain))->GetFile()->GetName(), entry)) ; //************************ PHOS ************************************* @@ -216,14 +216,16 @@ void AliPHOSESDQA::Terminate(Option_t *) fhPHOSDigitsEvent = (TH1I*)fOutputContainer->At(7); Bool_t problem = kFALSE ; - AliInfo(Form(" *** %s Report:", GetName())) ; - printf(" PHOSEnergy Mean : %5.3f , RMS : %5.3f \n", fhPHOSEnergy->GetMean(), fhPHOSEnergy->GetRMS() ) ; - printf(" PHOSDigits Mean : %5.3f , RMS : %5.3f \n", fhPHOSDigits->GetMean(), fhPHOSDigits->GetRMS() ) ; - printf(" PHOSRecParticles Mean : %5.3f , RMS : %5.3f \n", fhPHOSRecParticles->GetMean(), fhPHOSRecParticles->GetRMS() ) ; - printf(" PHOSPhotons Mean : %5.3f , RMS : %5.3f \n", fhPHOSPhotons->GetMean(), fhPHOSPhotons->GetRMS() ) ; - printf(" PHOSInvariantMass Mean : %5.3f , RMS : %5.3f \n", fhPHOSInvariantMass->GetMean(), fhPHOSInvariantMass->GetRMS() ) ; - printf(" PHOSDigitsEvent Mean : %5.3f , RMS : %5.3f \n", fhPHOSDigitsEvent->GetMean(), fhPHOSDigitsEvent->GetRMS() ) ; - + AliDebug(AliQAv1::GetQADebugLevel(), Form(" *** %s Report:", GetName())) ; + if ( AliDebugLevel() == AliQAv1::GetQADebugLevel() ) { + printf(" PHOSEnergy Mean : %5.3f , RMS : %5.3f \n", fhPHOSEnergy->GetMean(), fhPHOSEnergy->GetRMS() ) ; + printf(" PHOSDigits Mean : %5.3f , RMS : %5.3f \n", fhPHOSDigits->GetMean(), fhPHOSDigits->GetRMS() ) ; + printf(" PHOSRecParticles Mean : %5.3f , RMS : %5.3f \n", fhPHOSRecParticles->GetMean(), fhPHOSRecParticles->GetRMS() ) ; + printf(" PHOSPhotons Mean : %5.3f , RMS : %5.3f \n", fhPHOSPhotons->GetMean(), fhPHOSPhotons->GetRMS() ) ; + printf(" PHOSInvariantMass Mean : %5.3f , RMS : %5.3f \n", fhPHOSInvariantMass->GetMean(), fhPHOSInvariantMass->GetRMS() ) ; + printf(" PHOSDigitsEvent Mean : %5.3f , RMS : %5.3f \n", fhPHOSDigitsEvent->GetMean(), fhPHOSDigitsEvent->GetRMS() ) ; + } + TCanvas * cPHOS = new TCanvas("cPHOS", "PHOS ESD Test", 400, 10, 600, 700) ; cPHOS->Divide(3, 2); diff --git a/STEER/AliCDBManager.cxx b/STEER/AliCDBManager.cxx index 34706470c02..00cfe89c2c7 100644 --- a/STEER/AliCDBManager.cxx +++ b/STEER/AliCDBManager.cxx @@ -1094,7 +1094,7 @@ void AliCDBManager::UnloadFromCache(const char* path){ if(!queryPath.IsWildcard()) { // path is not wildcard, get it directly from the cache and unload it! if(fEntryCache.Contains(path)){ - AliDebug(1,Form("Unloading object \"%s\" from cache", path)); + AliDebug(2, Form("Unloading object \"%s\" from cache", path)); TObjString pathStr(path); AliCDBEntry *entry = dynamic_cast (fEntryCache.GetValue(&pathStr)); if(entry) delete entry; @@ -1102,7 +1102,7 @@ void AliCDBManager::UnloadFromCache(const char* path){ } else { AliError(Form("Cache does not contain object \"%s\"!", path)) } - AliDebug(2,Form("Cache entries: %d",fEntryCache.GetEntries())); + AliDebug(2, Form("Cache entries: %d",fEntryCache.GetEntries())); return; } @@ -1113,7 +1113,7 @@ void AliCDBManager::UnloadFromCache(const char* path){ while((pair = dynamic_cast (iter.Next()))){ AliCDBPath entryPath = pair->Key()->GetName(); if(queryPath.Comprises(entryPath)) { - AliDebug(1,Form("Unloading object \"%s\" from cache", entryPath.GetPath().Data())); + AliDebug(2, Form("Unloading object \"%s\" from cache", entryPath.GetPath().Data())); TObjString pathStr(entryPath.GetPath().Data()); AliCDBEntry *entry = dynamic_cast (fEntryCache.GetValue(&pathStr)); if(entry) delete entry; diff --git a/STEER/AliQAChecker.cxx b/STEER/AliQAChecker.cxx index d53c8c5991d..af5acd1c754 100644 --- a/STEER/AliQAChecker.cxx +++ b/STEER/AliQAChecker.cxx @@ -116,7 +116,7 @@ AliQAChecker::~AliQAChecker() } else if (det == AliQAv1::kCORR) { qac = new AliCorrQAChecker() ; } else { - AliDebug(1, Form("Retrieving QA checker for %s", detName.Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Retrieving QA checker for %s", detName.Data())) ; TPluginManager* pluginManager = gROOT->GetPluginManager() ; TString qacName = "Ali" + detName + "QAChecker" ; @@ -124,7 +124,7 @@ AliQAChecker::~AliQAChecker() TPluginHandler* pluginHandler = pluginManager->FindHandler("AliQAChecker", detName.Data()); // if not, add a plugin for it if (!pluginHandler) { - //AliInfo(Form("defining plugin for %s", qacName.Data())); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("defining plugin for %s", qacName.Data())); TString libs = gSystem->GetLibraries(); if (libs.Contains("lib" + detName + "base.so") || (gSystem->Load("lib" + detName + "base.so") >= 0)) @@ -226,14 +226,14 @@ void AliQAChecker::LoadRunInfoFromGRP() TMap* m = dynamic_cast(entry->GetObject()); // old GRP entry if (m) { - AliInfo("It is a map"); + AliDebug(AliQAv1::GetQADebugLevel(), "It is a map"); //m->Print(); grpObject = new AliGRPObject(); grpObject->ReadValuesFromMap(m); } else { - AliInfo("It is a new GRP object"); + AliDebug(AliQAv1::GetQADebugLevel(), "It is a new GRP object"); grpObject = dynamic_cast(entry->GetObject()); // new GRP entry } @@ -322,7 +322,7 @@ Bool_t AliQAChecker::Run(const char * fileName) TIter nextd(detKeyList) ; TKey * detKey ; while ( (detKey = dynamic_cast(nextd()) ) ) { - AliDebug(1, Form("Found %s", detKey->GetName())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Found %s", detKey->GetName())) ; //Check which detector TString detName ; TString detNameQA(detKey->GetName()) ; @@ -342,12 +342,12 @@ Bool_t AliQAChecker::Run(const char * fileName) // now search for the tasks dir while ( (taskKey = static_cast(nextt()) ) ) { TString taskName( taskKey->GetName() ) ; - AliInfo(Form("Found %s", taskName.Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Found %s", taskName.Data())) ; TDirectory * taskDir = detDir->GetDirectory(taskName.Data()) ; taskDir->cd() ; AliQACheckerBase * qac = GetDetQAChecker(det) ; if (qac) - AliInfo(Form("QA checker found for %s", detName.Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("QA checker found for %s", detName.Data())) ; if (!qac) AliFatal(Form("QA checker not found for %s", detName.Data())) ; AliQAv1::ALITASK_t index = AliQAv1::kNULLTASK ; @@ -392,7 +392,7 @@ Bool_t AliQAChecker::Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task AliQACheckerBase * qac = GetDetQAChecker(det) ; if (qac) - AliDebug(1, Form("QA checker found for %s", AliQAv1::GetDetName(det).Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("QA checker found for %s", AliQAv1::GetDetName(det).Data())) ; if (!qac) AliError(Form("QA checker not found for %s", AliQAv1::GetDetName(det).Data())) ; @@ -430,7 +430,7 @@ Bool_t AliQAChecker::Run(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task AliQACheckerBase * qac = GetDetQAChecker(det) ; if (qac) - AliDebug(1, Form("QA checker found for %s", AliQAv1::GetDetName(det).Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("QA checker found for %s", AliQAv1::GetDetName(det).Data())) ; if (!qac) AliError(Form("QA checker not found for %s", AliQAv1::GetDetName(det).Data())) ; diff --git a/STEER/AliQACheckerBase.cxx b/STEER/AliQACheckerBase.cxx index cfaf9801597..f354800889f 100644 --- a/STEER/AliQACheckerBase.cxx +++ b/STEER/AliQACheckerBase.cxx @@ -65,12 +65,13 @@ AliQACheckerBase::AliQACheckerBase(const char * name, const char * title) : fLowTestValue[AliQAv1::kFATAL] = -1.0 ; fUpTestValue[AliQAv1::kFATAL] = 0.0 ; - AliInfo("Default setting is:") ; - printf( " INFO -> %1.5f < value < %1.5f \n", fLowTestValue[AliQAv1::kINFO], fUpTestValue[AliQAv1::kINFO]) ; - printf( " WARNING -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kWARNING], fUpTestValue[AliQAv1::kWARNING]) ; - printf( " ERROR -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kERROR], fUpTestValue[AliQAv1::kERROR]) ; - printf( " FATAL -> %1.5f <= value < %1.5f \n", fLowTestValue[AliQAv1::kFATAL], fUpTestValue[AliQAv1::kFATAL]) ; - + AliDebug(AliQAv1::GetQADebugLevel(), "Default setting is:") ; + if ( AliDebugLevel() == AliQAv1::GetQADebugLevel() ) { + printf( " INFO -> %1.5f < value < %1.5f \n", fLowTestValue[AliQAv1::kINFO], fUpTestValue[AliQAv1::kINFO]) ; + printf( " WARNING -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kWARNING], fUpTestValue[AliQAv1::kWARNING]) ; + printf( " ERROR -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kERROR], fUpTestValue[AliQAv1::kERROR]) ; + printf( " FATAL -> %1.5f <= value < %1.5f \n", fLowTestValue[AliQAv1::kFATAL], fUpTestValue[AliQAv1::kFATAL]) ; + } } //____________________________________________________________________________ @@ -143,7 +144,7 @@ Double_t * AliQACheckerBase::Check(AliQAv1::ALITASK_t /*index*/) test[specie] = -1 ; // no reference data ; else { Double_t rv = DiffK(hdata, href) ; - AliInfo(Form("%s ->Test = %f", hdata->GetName(), rv)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s ->Test = %f", hdata->GetName(), rv)) ; test[specie] += rv ; count[specie]++ ; } @@ -192,7 +193,7 @@ Double_t * AliQACheckerBase::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** li test[specie] = -1 ; // no reference data ; else { Double_t rv = DiffK(hdata, href) ; - AliInfo(Form("%s ->Test = %f", hdata->GetName(), rv)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s ->Test = %f", hdata->GetName(), rv)) ; test[specie] += rv ; count[specie]++ ; } @@ -214,7 +215,7 @@ Double_t AliQACheckerBase::DiffC(const TH1 * href, const TH1 * hin) const { // compares two histograms using the Chi2 test if ( hin->Integral() == 0 ) { - AliWarning(Form("Spectrum %s is empty", hin->GetName())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Spectrum %s is empty", hin->GetName())) ; return 0. ; } @@ -226,7 +227,7 @@ Double_t AliQACheckerBase::DiffK(const TH1 * href, const TH1 * hin) const { // compares two histograms using the Kolmogorov test if ( hin->Integral() == 0 ) { - AliWarning(Form("Spectrum %s is empty", hin->GetName())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Spectrum %s is empty", hin->GetName())) ; return 0. ; } @@ -236,7 +237,7 @@ Double_t AliQACheckerBase::DiffK(const TH1 * href, const TH1 * hin) const //____________________________________________________________________________ void AliQACheckerBase::Run(AliQAv1::ALITASK_t index, TObjArray ** list) { - AliDebug(1, Form("Processing %s", AliQAv1::GetAliTaskName(index))) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Processing %s", AliQAv1::GetAliTaskName(index))) ; Double_t * rv = NULL ; if ( !list) @@ -245,7 +246,7 @@ void AliQACheckerBase::Run(AliQAv1::ALITASK_t index, TObjArray ** list) rv = Check(index, list) ; SetQA(index, rv) ; - AliDebug(1, Form("Test result of %s", AliQAv1::GetAliTaskName(index))) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Test result of %s", AliQAv1::GetAliTaskName(index))) ; if (rv) delete [] rv ; @@ -266,21 +267,25 @@ void AliQACheckerBase::Finish() const //____________________________________________________________________________ void AliQACheckerBase::SetHiLo(Float_t * hiValue, Float_t * lowValue) { - AliInfo("Previous setting was:") ; - printf( " INFO -> %1.5f < value < %1.5f \n", fLowTestValue[AliQAv1::kINFO], fUpTestValue[AliQAv1::kINFO]) ; - printf( " WARNING -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kWARNING], fUpTestValue[AliQAv1::kWARNING]) ; - printf( " ERROR -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kERROR], fUpTestValue[AliQAv1::kERROR]) ; - printf( " FATAL -> %1.5f <= value < %1.5f \n", fLowTestValue[AliQAv1::kFATAL], fUpTestValue[AliQAv1::kFATAL]) ; + AliDebug(AliQAv1::GetQADebugLevel(), "Previous setting was:") ; + if ( AliDebugLevel() == AliQAv1::GetQADebugLevel() ) { + printf( " INFO -> %1.5f < value < %1.5f \n", fLowTestValue[AliQAv1::kINFO], fUpTestValue[AliQAv1::kINFO]) ; + printf( " WARNING -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kWARNING], fUpTestValue[AliQAv1::kWARNING]) ; + printf( " ERROR -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kERROR], fUpTestValue[AliQAv1::kERROR]) ; + printf( " FATAL -> %1.5f <= value < %1.5f \n", fLowTestValue[AliQAv1::kFATAL], fUpTestValue[AliQAv1::kFATAL]) ; + } for (Int_t index = 0 ; index < AliQAv1::kNBIT ; index++) { fLowTestValue[index] = lowValue[index] ; fUpTestValue[index] = hiValue[index] ; } - AliInfo("Current setting is:") ; - printf( " INFO -> %1.5f < value < %1.5f \n", fLowTestValue[AliQAv1::kINFO], fUpTestValue[AliQAv1::kINFO]) ; - printf( " WARNING -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kWARNING], fUpTestValue[AliQAv1::kWARNING]) ; - printf( " ERROR -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kERROR], fUpTestValue[AliQAv1::kERROR]) ; - printf( " FATAL -> %1.5f <= value < %1.5f \n", fLowTestValue[AliQAv1::kFATAL], fUpTestValue[AliQAv1::kFATAL]) ; + AliDebug(AliQAv1::GetQADebugLevel(), "Current setting is:") ; + if ( AliDebugLevel() == AliQAv1::GetQADebugLevel() ) { + printf( " INFO -> %1.5f < value < %1.5f \n", fLowTestValue[AliQAv1::kINFO], fUpTestValue[AliQAv1::kINFO]) ; + printf( " WARNING -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kWARNING], fUpTestValue[AliQAv1::kWARNING]) ; + printf( " ERROR -> %1.5f < value <= %1.5f \n", fLowTestValue[AliQAv1::kERROR], fUpTestValue[AliQAv1::kERROR]) ; + printf( " FATAL -> %1.5f <= value < %1.5f \n", fLowTestValue[AliQAv1::kFATAL], fUpTestValue[AliQAv1::kFATAL]) ; + } } //____________________________________________________________________________ diff --git a/STEER/AliQADataMakerRec.cxx b/STEER/AliQADataMakerRec.cxx index ca25a021424..8bb2306a56e 100644 --- a/STEER/AliQADataMakerRec.cxx +++ b/STEER/AliQADataMakerRec.cxx @@ -183,7 +183,8 @@ void AliQADataMakerRec::EndOfCycle(AliQAv1::TASKINDEX_t task) } fOutput->Save() ; } - MakeImage(task) ; + if ( AliDebugLevel() == AliQAv1::GetQADebugLevel() ) + MakeImage(task) ; } //____________________________________________________________________________ @@ -228,9 +229,9 @@ void AliQADataMakerRec::MakeImage(AliQAv1::TASKINDEX_t task) nImages++; } if ( nImages == 0 ) { - AliInfo(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ; + AliWarning(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ; } else { - AliInfo(Form("%d histograms will be plotted for %s %s\n", nImages, GetName(), AliQAv1::GetTaskName(task).Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%d histograms will be plotted for %s %s\n", nImages, GetName(), AliQAv1::GetTaskName(task).Data())) ; Double_t w = 1000 ; Double_t h = 1000 ; for (Int_t esIndex = 0 ; esIndex < AliRecoParam::kNSpecies ; esIndex++) { @@ -270,14 +271,14 @@ void AliQADataMakerRec::Exec(AliQAv1::TASKINDEX_t task, TObject * data) // creates the quality assurance data for the various tasks (Hits, SDigits, Digits, ESDs) if ( task == AliQAv1::kRAWS ) { - AliDebug(1, "Processing Raws QA") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Processing Raws QA") ; AliRawReader * rawReader = dynamic_cast(data) ; if (rawReader) MakeRaws(rawReader) ; else - AliInfo("Raw data are not processed") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Raw data are not processed") ; } else if ( task == AliQAv1::kRECPOINTS ) { - AliDebug(1, "Processing RecPoints QA") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Processing RecPoints QA") ; TTree * tree = dynamic_cast(data) ; if (tree) { MakeRecPoints(tree) ; @@ -285,7 +286,7 @@ void AliQADataMakerRec::Exec(AliQAv1::TASKINDEX_t task, TObject * data) AliWarning("data are not a TTree") ; } } else if ( task == AliQAv1::kESDS ) { - AliDebug(1, "Processing ESDs QA") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Processing ESDs QA") ; AliESDEvent * esd = dynamic_cast(data) ; if (esd) MakeESDs(esd) ; @@ -361,7 +362,7 @@ void AliQADataMakerRec::Init(AliQAv1::TASKINDEX_t task, TObjArray ** list, Int_t void AliQADataMakerRec::InitRecoParams() { if (!fRecoParam) { - AliInfo(Form("Loading reconstruction parameter objects for detector %s", GetName())); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Loading reconstruction parameter objects for detector %s", GetName())); AliCDBPath path(GetName(),"Calib","RecoParam"); AliCDBEntry *entry=AliCDBManager::Instance()->Get(path.GetPath()); if(!entry) { @@ -372,7 +373,7 @@ void AliQADataMakerRec::InitRecoParams() TObject * recoParamObj = entry->GetObject() ; if (dynamic_cast(recoParamObj)) { // The detector has only one set of reco parameters - AliInfo(Form("Array of reconstruction parameters found for detector %s",GetName())); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Array of reconstruction parameters found for detector %s",GetName())); TObjArray *recoParamArray = dynamic_cast(recoParamObj) ; for (Int_t iRP=0; iRPGetEntriesFast(); iRP++) { fRecoParam = dynamic_cast(recoParamArray->At(iRP)) ; @@ -382,7 +383,7 @@ void AliQADataMakerRec::InitRecoParams() else if (dynamic_cast(recoParamObj)) { // The detector has only onse set of reco parameters // Registering it in AliRecoParam - AliInfo(Form("Single set of reconstruction parameters found for detector %s",GetName())); + AliDebug(AliQAv1::GetQADebugLevel(), Form("Single set of reconstruction parameters found for detector %s",GetName())); dynamic_cast(recoParamObj)->SetAsDefault(); fRecoParam = dynamic_cast(recoParamObj) ; } else { @@ -416,7 +417,7 @@ void AliQADataMakerRec::StartOfCycle(AliQAv1::TASKINDEX_t task, Int_t run, const fOutput->Close() ; fOutput = AliQAv1::GetQADataFile(GetName(), fRun) ; } - AliInfo(Form(" Run %d Cycle %d task %s file %s", + AliDebug(AliQAv1::GetQADebugLevel(), Form(" Run %d Cycle %d task %s file %s", fRun, fCurrentCycle, AliQAv1::GetTaskName(task).Data(), fOutput->GetName() )) ; fDetectorDir = fOutput->GetDirectory(GetDetectorDirName()) ; diff --git a/STEER/AliQADataMakerSim.cxx b/STEER/AliQADataMakerSim.cxx index c8c7a89736d..01c7a961cf0 100644 --- a/STEER/AliQADataMakerSim.cxx +++ b/STEER/AliQADataMakerSim.cxx @@ -161,7 +161,7 @@ void AliQADataMakerSim::Exec(AliQAv1::TASKINDEX_t task, TObject * data) // creates the quality assurance data for the various tasks (Hits, SDigits, Digits, ESDs) if ( task == AliQAv1::kHITS ) { - AliDebug(1, "Processing Hits QA") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Processing Hits QA") ; TClonesArray * arr = dynamic_cast(data) ; if (arr) { MakeHits(arr) ; @@ -174,7 +174,7 @@ void AliQADataMakerSim::Exec(AliQAv1::TASKINDEX_t task, TObject * data) } } } else if ( task == AliQAv1::kSDIGITS ) { - AliDebug(1, "Processing SDigits QA") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Processing SDigits QA") ; TClonesArray * arr = dynamic_cast(data) ; if (arr) { MakeSDigits(arr) ; @@ -187,7 +187,7 @@ void AliQADataMakerSim::Exec(AliQAv1::TASKINDEX_t task, TObject * data) } } } else if ( task == AliQAv1::kDIGITS ) { - AliDebug(1, "Processing Digits QA") ; + AliDebug(AliQAv1::GetQADebugLevel(), "Processing Digits QA") ; TClonesArray * arr = dynamic_cast(data) ; if (arr) { MakeDigits(arr) ; @@ -244,9 +244,9 @@ void AliQADataMakerSim::MakeImage(AliQAv1::TASKINDEX_t task) nImages++; } if ( nImages == 0 ) { - AliInfo(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ; + AliWarning(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ; } else { - AliInfo(Form("%d histograms will be plotted for %s %s\n", nImages, GetName(), AliQAv1::GetTaskName(task).Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%d histograms will be plotted for %s %s\n", nImages, GetName(), AliQAv1::GetTaskName(task).Data())) ; Double_t w = 1000 ; Double_t h = 1000 ; for (Int_t esIndex = 0 ; esIndex < AliRecoParam::kNSpecies ; esIndex++) { @@ -275,7 +275,8 @@ void AliQADataMakerSim::MakeImage(AliQAv1::TASKINDEX_t task) canvasQA->cd(++npad) ; } } - canvasQA->Print() ; + if ( AliDebugLevel() == AliQAv1::GetQADebugLevel() ) + canvasQA->Print() ; } } } @@ -365,7 +366,7 @@ void AliQADataMakerSim::StartOfCycle(AliQAv1::TASKINDEX_t task, Int_t run, const fOutput = AliQAv1::GetQADataFile(GetName(), fRun) ; } - AliInfo(Form(" Run %d Cycle %d task %s file %s", + AliDebug(AliQAv1::GetQADebugLevel(), Form(" Run %d Cycle %d task %s file %s", fRun, fCurrentCycle, AliQAv1::GetTaskName(task).Data(), fOutput->GetName() )) ; fDetectorDir = fOutput->GetDirectory(GetDetectorDirName()) ; diff --git a/STEER/AliQAManager.cxx b/STEER/AliQAManager.cxx index 8d7ea4afd7b..cb0e9e7c7c5 100644 --- a/STEER/AliQAManager.cxx +++ b/STEER/AliQAManager.cxx @@ -205,7 +205,7 @@ Bool_t AliQAManager::DoIt(const AliQAv1::TASKINDEX_t taskIndex) 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 ; @@ -330,7 +330,7 @@ TObjArray * AliQAManager::GetFromOCDB(AliQAv1::DETECTORINDEX_t det, AliQAv1::TAS 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(entry->GetObject()) ; if ( listDetQAD ) @@ -360,7 +360,7 @@ AliLoader * AliQAManager::GetLoader(Int_t iDet) 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 + "()") ; @@ -446,7 +446,7 @@ AliQADataMaker * AliQAManager::GetQADataMaker(const Int_t iDet) 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 + "()") ; @@ -610,7 +610,7 @@ void AliQAManager::InitQADataMaker(UInt_t run, TObjArray * detArray) } 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(detArray->FindObject(AliQAv1::GetDetName(iDet))) ; @@ -765,7 +765,7 @@ Bool_t AliQAManager::MergeXML(const char * collectionFile, const char * subFile, else file = Form("%s", turl) ; - AliInfo(Form("%s\n", file)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s\n", file)) ; merger.AddFile(file) ; index++ ; } @@ -773,7 +773,7 @@ Bool_t AliQAManager::MergeXML(const char * collectionFile, const char * subFile, 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 ; @@ -833,7 +833,7 @@ void AliQAManager::MergeCustom() const while ( (srun = dynamic_cast (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 ; @@ -855,7 +855,7 @@ void AliQAManager::MergeCustom() const 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() ; @@ -865,7 +865,7 @@ void AliQAManager::MergeCustom() const 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) ; @@ -874,7 +874,7 @@ void AliQAManager::MergeCustom() const 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()) ; @@ -886,7 +886,7 @@ void AliQAManager::MergeCustom() const if ( className.Contains("TH") || className.Contains("TProfile") ) { TH1 * histIn = dynamic_cast (key->ReadObj()) ; TH1 * histOu = dynamic_cast (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() ; @@ -972,7 +972,7 @@ Bool_t AliQAManager::MergeResults(const Int_t runNumber) const 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++ ; } @@ -1114,7 +1114,7 @@ TString AliQAManager::Run(const char * detectors, const AliQAv1::TASKINDEX_t tas 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()) ; @@ -1252,7 +1252,7 @@ Bool_t AliQAManager::SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const { // 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()) ) @@ -1274,7 +1274,7 @@ Bool_t AliQAManager::SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const 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()) ; @@ -1288,7 +1288,7 @@ Bool_t AliQAManager::SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const while ( (taskKey = dynamic_cast(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) ; @@ -1310,18 +1310,18 @@ Bool_t AliQAManager::SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const 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(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(odata) ; listTaskQAD->Add(hdata) ; } diff --git a/STEER/AliQAv1.cxx b/STEER/AliQAv1.cxx index 7db371bc874..74299e2e0c9 100644 --- a/STEER/AliQAv1.cxx +++ b/STEER/AliQAv1.cxx @@ -72,7 +72,7 @@ const TString AliQAv1::fgkExpert = "Expert" ; const UInt_t AliQAv1::fgkExpertBit = 16 ; const UInt_t AliQAv1::fgkQABit = 17 ; const UInt_t AliQAv1::fgkImageBit = 18 ; - +const Int_t AliQAv1::fgkQADebugLevel = 99 ; //____________________________________________________________________________ AliQAv1::AliQAv1() : TNamed("", ""), diff --git a/STEER/AliQAv1.h b/STEER/AliQAv1.h index 8e3a0178a03..c8fca2cfaad 100644 --- a/STEER/AliQAv1.h +++ b/STEER/AliQAv1.h @@ -64,6 +64,7 @@ public: static const char * GetQADataFileName(const char * name, Int_t run) {return Form("%s.%s.%d.root", name, fgQADataFileName.Data(), run) ; } static const char * GetQADataFileName() { return fgQADataFileName.Data() ; } + static Int_t GetQADebugLevel() { return fgkQADebugLevel ; } static const char * GetQAName() { return fgkQAName ; } static const char * GetQACorrName() { return fgkQACorrNtName ; } static TFile * GetQAResultFile() ; @@ -87,6 +88,7 @@ public: void Set(QABIT_t bit, Int_t es) ; void SetEventSpecie(AliRecoParam::EventSpecie_t es) {Int_t ibit=0; while(es!=1<GetEntries())); for (Int_t ir=0; irGetEntries(); ir++) { //raw @@ -101,18 +101,18 @@ Double_t * AliT0QAChecker::Check(AliQAv1::ALITASK_t index,TObjArray ** list) if(hdata) { cname = hdata->GetName(); hname[ir] = cname; - AliDebug(10,Form("count %i %s \n",ir, hname[ir].Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(),Form("count %i %s \n",ir, hname[ir].Data())) ; fhRaw[ir] = hdata; } }*/ if(ir > 204) { // else{ h = (TH2*) list[specie]->UncheckedAt(ir); - AliInfo(Form(" index %i ir %i \n", index,ir)); + AliDebug(AliQAv1::GetQADebugLevel(), Form(" index %i ir %i \n", index,ir)); if(h) { cname = h->GetName(); hname[ir] = cname; - AliDebug(1,Form("count %i %s \n",ir, hname[ir].Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(),Form("count %i %s \n",ir, hname[ir].Data())) ; fhRawEff[ir] = h; } } @@ -124,17 +124,17 @@ Double_t * AliT0QAChecker::Check(AliQAv1::ALITASK_t index,TObjArray ** list) if(h) { cname = h->GetName(); hname[ir] = cname; - AliDebug(1,Form("count %i %s \n",ir, hname[ir].Data())) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("count %i %s \n",ir, hname[ir].Data())) ; fhRecDiff[ir] = h; } } //esd if(index==3){ - cout<<" ir "<UncheckedAt(ir); if(hdata){ fhESD[ir] = hdata; - AliDebug(1,Form("count %i %s ",ir, hname[ir].Data()) ); + AliDebug(AliQAv1::GetQADebugLevel(), Form("count %i %s ",ir, hname[ir].Data()) ); } } } @@ -149,20 +149,20 @@ Double_t * AliT0QAChecker::Check(AliQAv1::ALITASK_t index,TObjArray ** list) Double_t rms= fhRawEff[icase]->ProjectionY(Form("%s_py%i_%i", fhRawEff[icase]->GetName(), idet,icase), idet,idet+1)->GetRMS(); - AliInfo(Form("name %s icase %i idet %i mean %f, rms %f\n", + AliDebug(AliQAv1::GetQADebugLevel(), Form("name %s icase %i idet %i mean %f, rms %f\n", fhRawEff[icase]->GetName(), icase, idet, mean,rms)); if (mean<1.2 && mean> 0.8 ) { test[specie] = 1; - AliDebug(1,Form("All channels works meane efficieny %f with rms %f test %f", mean, rms, test[specie])) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("All channels works meane efficieny %f with rms %f test %f", mean, rms, test[specie])) ; } if (mean<=0.8 && mean>= 0.5 ){ test[specie] = 0.5; - AliDebug(1,Form("%s problem in channel %i efficieny %f test %f", + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s problem in channel %i efficieny %f test %f", fhRawEff[icase]->GetName(), idet, mean, test[specie])) ; } if (mean<0.5 ) { test[specie] = 0.25; - AliDebug(1,Form("%s big problem in channel %i efficieny %f test %f", + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s big problem in channel %i efficieny %f test %f", fhRawEff[icase]->GetName(), idet, mean, test[specie])) ; } } @@ -178,16 +178,16 @@ Double_t * AliT0QAChecker::Check(AliQAv1::ALITASK_t index,TObjArray ** list) Double_t rms= fhRecDiff[icase]-> ProjectionY(Form("%s_py", fhRecDiff[icase]->GetName()), idet,idet+1)->GetRMS(); - AliInfo(Form("name %s icase %i idet %i mean %f, rms %f\n", + AliDebug(AliQAv1::GetQADebugLevel(), Form("name %s icase %i idet %i mean %f, rms %f\n", fhRecDiff[icase]->GetName(), icase, idet, mean,rms)); if(TMath::Abs(mean) >1.5 || rms >1){ - AliDebug(1,Form(" calibration is nor perfect; test=%f", test)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form(" calibration is nor perfect; test=%f", test)) ; test[specie]=0.25; } if(mean>3 || rms >5) { test[specie] = 0.1; - AliDebug(1,Form(" wrong calibration test=%f", test[specie])) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form(" wrong calibration test=%f", test[specie])) ; } } } @@ -198,21 +198,21 @@ Double_t * AliT0QAChecker::Check(AliQAv1::ALITASK_t index,TObjArray ** list) Double_t rmsVertex = fhESD[icase]->GetRMS(); Double_t meanVertex = fhESD[icase]->GetMean(); test[specie]=1; - AliInfo(Form("numentries %d meanVertex %f rmsVertex %f", fhESD[icase]->GetEntries(), meanVertex, rmsVertex)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("numentries %d meanVertex %f rmsVertex %f", fhESD[icase]->GetEntries(), meanVertex, rmsVertex)); if (TMath::Abs(rmsVertex)>3) { test[specie]=0.25; - AliDebug(1,Form("Vertex position resolution not good , rms= %f test=%f", + AliDebug(AliQAv1::GetQADebugLevel(), Form("Vertex position resolution not good , rms= %f test=%f", rmsVertex, test[specie])) ; } if (TMath::Abs(meanVertex)>3) { test[specie]=0.25; - AliDebug(1,Form("Vertex position bad calibrated , Mean= %f test=%f", + AliDebug(AliQAv1::GetQADebugLevel(), Form("Vertex position bad calibrated , Mean= %f test=%f", meanVertex, test[specie])) ; } } } } // if (list->GetEntries() != 0 - AliInfo(Form("Test Result = %f", test[specie])) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Test Result = %f", test[specie])) ; } return test ; } diff --git a/T0/AliT0QADataMakerRec.cxx b/T0/AliT0QADataMakerRec.cxx index 1df4f684cd1..1bcfa50719b 100644 --- a/T0/AliT0QADataMakerRec.cxx +++ b/T0/AliT0QADataMakerRec.cxx @@ -281,7 +281,7 @@ void AliT0QADataMakerRec::MakeRaws( AliRawReader* rawReader) AliT0RawReader *start = new AliT0RawReader(rawReader); // start->Next(); if (! start->Next()) - AliDebug(1,Form(" no raw data found!!")); + AliDebug(AliQAv1::GetQADebugLevel(),Form(" no raw data found!!")); else { fnEvent++; diff --git a/TOF/AliTOFQAChecker.cxx b/TOF/AliTOFQAChecker.cxx index cf85d840489..58f64758444 100644 --- a/TOF/AliTOFQAChecker.cxx +++ b/TOF/AliTOFQAChecker.cxx @@ -60,7 +60,7 @@ Double_t * AliTOFQAChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** lis if (hdata) { Double_t rv = 0.; if(hdata->GetEntries()>0)rv=1; - AliInfo(Form("%s -> %f", hdata->GetName(), rv)) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("%s -> %f", hdata->GetName(), rv)) ; count[specie]++ ; test[specie] += rv ; } @@ -76,7 +76,7 @@ Double_t * AliTOFQAChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray ** lis else { test[specie] /= count[specie] ; } - AliInfo(Form("Test Result = %f", test[specie])) ; + AliDebug(AliQAv1::GetQADebugLevel(), Form("Test Result = %f", test[specie])) ; } } } diff --git a/TRD/AliTRDQADataMaker.cxx b/TRD/AliTRDQADataMaker.cxx index a395d33b4db..d11c6d7922e 100644 --- a/TRD/AliTRDQADataMaker.cxx +++ b/TRD/AliTRDQADataMaker.cxx @@ -94,7 +94,7 @@ void AliTRDQADataMaker::EndOfDetectorCycle(AliQAv1::TASKINDEX task, TObjArray * //TStopwatch watch; //watch.Start(); - //AliInfo(Form("EndOfCycle", "Fitting RecPoints %d", task)) + //AliDebug(AliQAv1::GetQADebugLevel(), Form("EndOfCycle", "Fitting RecPoints %d", task)) TH1D *hist = new TH1D("fitHist", "", 200, -0.5, 199.5); if (task == AliQAv1::kRECPOINTS) { @@ -128,7 +128,7 @@ void AliTRDQADataMaker::EndOfDetectorCycle(AliQAv1::TASKINDEX task, TObjArray * //TH1D *test = ((TH3D*)list->At(10))->ProjectionZ(Form("ampTime_%d",i), i+1, i+1, 0, 35); //if (test->GetSum() < 100) continue; - //AliInfo(Form("fitting det = %d", i)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("fitting det = %d", i)); for(Int_t j=0; j<35; j++) { diff --git a/TRD/AliTRDQADataMakerRec.cxx b/TRD/AliTRDQADataMakerRec.cxx index d95cfad3439..0e86711b6ae 100644 --- a/TRD/AliTRDQADataMakerRec.cxx +++ b/TRD/AliTRDQADataMakerRec.cxx @@ -92,7 +92,7 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr //TStopwatch watch; //watch.Start(); - AliInfo("End of TRD cycle"); + AliDebug(AliQAv1::GetQADebugLevel(), "End of TRD cycle"); if (task == AliQAv1::kRECPOINTS) { for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { @@ -110,7 +110,7 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr } // Rec points full chambers for (Int_t i = 0 ; i < 540 ; i++) { - //AliInfo(Form("I = %d", i)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("I = %d", i)); //TH1D *h = ((TH2D*)list[specie]->At(1))->ProjectionY(Form("qaTRD_recPoints_amp_%d",i), i+1, i+1); hist->Reset(); for(Int_t b = 1 ; b < hist->GetXaxis()->GetNbins()-1 ; b++) { @@ -119,7 +119,7 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr Double_t value = ((TH2D*)list[specie]->At(1))->GetBinContent(bin); hist->SetBinContent(b, value); } - //AliInfo(Form("Sum = %d %f\n", i, hist->GetSum())); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("Sum = %d %f\n", i, hist->GetSum())); if (hist->GetSum() < 100) continue; // chamber not present @@ -141,20 +141,20 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr Double_t value = ((TH3D*)list[specie]->At(10))->GetBinContent(bin); svalue += value; } - //AliInfo(Form("v = %f\n", value)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("v = %f\n", value)); hist->SetBinContent(b, svalue); } if (hist->GetSum() < 100) continue; - //AliInfo(Form("fitting %d %d %f\n", i, j, hist->GetSum())); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("fitting %d %d %f\n", i, j, hist->GetSum())); hist->Fit("landau", "q0", "goff", 10, 180); TF1 *fit = hist->GetFunction("landau"); TH1D *h1 = (TH1D*)list[specie]->At(14+18+i); Int_t bin = h1->FindBin(j); - // AliInfo(Form("%d %d %d\n", det, j, bin)); + // AliDebug(AliQAv1::GetQADebugLevel(), Form("%d %d %d\n", det, j, bin)); h1->SetBinContent(bin, TMath::Abs(fit->GetParameter(1))); } } @@ -164,7 +164,7 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr //TH1D *test = ((TH3D*)list[specie]->At(10))->ProjectionZ(Form("ampTime_%d",i), i+1, i+1, 0, 35); //if (test->GetSum() < 100) continue; - //AliInfo(Form("fitting det = %d", i)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("fitting det = %d", i)); for(Int_t j = 0 ; j < 35 ; j++) { //TH1D *h = ((TH3D*)list[specie]->At(10))->ProjectionZ(Form("ampTime_%d",i), i+1, i+1, j+1, j+1); @@ -173,12 +173,12 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr Double_t xvalue = hist->GetBinCenter(b); Int_t bin = ((TH3D*)list[specie]->At(10))->FindBin(i,j,xvalue); Double_t value = ((TH3D*)list[specie]->At(10))->GetBinContent(bin); - //AliInfo(Form("v = %f\n", value)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("v = %f\n", value)); hist->SetBinContent(b, value); } if (hist->GetSum() < 100) continue; - //AliInfo(Form("fitting %d %d %f\n", i, j, hist->GetSum())); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("fitting %d %d %f\n", i, j, hist->GetSum())); hist->Fit("landau", "q0", "goff", 10, 180); TF1 *fit = hist->GetFunction("landau"); @@ -187,7 +187,7 @@ void AliTRDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr Int_t det = i%30; TH2D *h2 = (TH2D*)list[specie]->At(14+sm); Int_t bin = h2->FindBin(det,j); - // AliInfo(Form("%d %d %d\n", det, j, bin)); + // AliDebug(AliQAv1::GetQADebugLevel(), Form("%d %d %d\n", det, j, bin)); h2->SetBinContent(bin, TMath::Abs(fit->GetParameter(1))); h2->SetBinError(bin,fit->GetParError(1)); } diff --git a/TRD/AliTRDQADataMakerSim.cxx b/TRD/AliTRDQADataMakerSim.cxx index f3795eab461..7ca57099936 100644 --- a/TRD/AliTRDQADataMakerSim.cxx +++ b/TRD/AliTRDQADataMakerSim.cxx @@ -94,7 +94,7 @@ void AliTRDQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr // Detector specific actions at end of cycle // - //AliInfo(Form("EndOfCycle", "Fitting RecPoints %d", task)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("EndOfCycle", "Fitting RecPoints %d", task)); // call the checker AliQAChecker::Instance()->Run(AliQAv1::kTRD, task, list) ; diff --git a/VZERO/AliVZEROQAChecker.cxx b/VZERO/AliVZEROQAChecker.cxx index ede15c89d83..e3aaea5f7e2 100644 --- a/VZERO/AliVZEROQAChecker.cxx +++ b/VZERO/AliVZEROQAChecker.cxx @@ -57,10 +57,10 @@ Double_t * AliVZEROQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) // Main check function: Depending on the TASK, different checks will be applied // Check for empty histograms -// AliDebug(1,Form("AliVZEROChecker")); +// AliDebug(AliQAv1::GetQADebugLevel(),Form("AliVZEROChecker")); // AliCDBEntry *QARefRec = AliCDBManager::Instance()->Get("VZERO/QARef/RAW"); // if( !QARefRec){ -// AliInfo("QA reference data NOT retrieved for QA check..."); +// AliDebug(AliQAv1::GetQADebugLevel(), "QA reference data NOT retrieved for QA check..."); // return 1.; // } @@ -93,7 +93,7 @@ Double_t AliVZEROQAChecker::CheckEntries(TObjArray * list) const if (list->GetEntries() == 0){ test = 1.0; - AliInfo(Form("There are NO ENTRIES to be checked...")); + AliDebug(AliQAv1::GetQADebugLevel(), Form("There are NO ENTRIES to be checked...")); } else { TIter next(list) ; TH1 * hdata ; @@ -102,7 +102,7 @@ Double_t AliVZEROQAChecker::CheckEntries(TObjArray * list) const if (hdata) { Double_t rv = 0.0; if(hdata->GetEntries()>0) rv=1.0; -// AliInfo(Form("%s -> %f", hdata->GetName(), rv)); +// AliDebug(AliQAv1::GetQADebugLevel(), Form("%s -> %f", hdata->GetName(), rv)); count++ ; // number of histos test += rv ; // number of histos filled }else{ diff --git a/VZERO/AliVZEROQADataMakerRec.cxx b/VZERO/AliVZEROQADataMakerRec.cxx index adf2055a021..3a1bde731be 100644 --- a/VZERO/AliVZEROQADataMakerRec.cxx +++ b/VZERO/AliVZEROQADataMakerRec.cxx @@ -56,7 +56,7 @@ ClassImp(AliVZEROQADataMakerRec) { // Constructor - AliInfo("Construct VZERO QA Object"); + AliDebug(AliQAv1::GetQADebugLevel(), "Construct VZERO QA Object"); for(Int_t i=0; i<64; i++){ fEven[i] = 0; @@ -425,7 +425,7 @@ void AliVZEROQADataMakerRec::InitESDs() h2d = new TH2D(name, title,kNChannelBins, kChannelMin, kChannelMax,21, -10.5, 10.5 ); Add2RawsList(h2d,kBGFlagVsClock, expert, !image, !saveCorr); iHisto++; - AliInfo(Form("%d Histograms has been added to the Raws List",iHisto)); + AliDebug(AliQAv1::GetQADebugLevel(), Form("%d Histograms has been added to the Raws List",iHisto)); } //____________________________________________________________________________ diff --git a/ZDC/AliZDCQAChecker.cxx b/ZDC/AliZDCQAChecker.cxx index 5ff7daab9c7..9e514e80565 100644 --- a/ZDC/AliZDCQAChecker.cxx +++ b/ZDC/AliZDCQAChecker.cxx @@ -52,7 +52,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) AliWarning("\tAliZDCQAChecker->The list to be checked is empty!"); // nothing to check return test; } - //AliInfo(Form("\n\tAliZDCQAChecker-> checking QA histograms for task %s\n\n",taskName)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\n\tAliZDCQAChecker-> checking QA histograms for task %s\n\n",taskName)); TIter next(list[specie]); ntests[specie] = 0; TH1 * hdata; @@ -60,7 +60,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) if(hdata){ // ------------------------------------------------------------------- if(index == AliQAv1::kSIM){ - //AliInfo(Form("\tAliZDCQAChecker-> checking histo %s",hdata->GetName())); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\tAliZDCQAChecker-> checking histo %s",hdata->GetName())); // Check DIGITS histos if(!(strncmp(hdata->GetName(),"hDig",4))){ if(hdata->GetEntries()>0){ @@ -115,13 +115,13 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) AliWarning("\tAliZDCQAChecker->The list to be checked is empty!"); return test; } - //AliInfo(Form("\n\tAliZDCQAChecker-> checking QA histograms for task %s\n\n",taskName)); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\n\tAliZDCQAChecker-> checking QA histograms for task %s\n\n",taskName)); TIter next(list[specie]); TH1 * hdata; while((hdata = dynamic_cast(next()))){ if(hdata){ - //AliInfo(Form("\tAliZDCQAChecker-> checking histo %s",hdata->GetName())); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\tAliZDCQAChecker-> checking histo %s",hdata->GetName())); ntests[specie] = 0; Double_t meanX=0., meanY=0.; Double_t meanZNA=0., rmsZNA=0., meanZNC=0.; @@ -159,7 +159,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) testgood=0; test[specie] += res; ntests[specie]++; - //AliInfo(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); } else res=0.; } @@ -187,7 +187,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) test[specie] += res; ntests[specie]++; testgood=0; - //AliInfo(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie]); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie]); } else res=0.; } @@ -206,7 +206,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) res=0.5; test[specie] += res; ntests[specie]++; - //AliInfo(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); } else if(digInd==9){ pmCZNA = hdata->GetMean(); @@ -216,7 +216,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) res=0.5; test[specie] += res; ntests[specie]++; - //AliInfo(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); } else if(digInd==10){ pmCZPC = hdata->GetMean(); @@ -226,7 +226,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) res=0.5; test[specie] += res; ntests[specie]++; - //AliInfor(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie]); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie]); } else if(digInd==11){ pmCZPA = hdata->GetMean(); @@ -236,7 +236,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) res=0.5; test[specie] += res; ntests[specie]++; - //AliInfor(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); } } digInd++; @@ -253,7 +253,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) res=0.5; test[specie] += res; ntests[specie]++; - //AliInfo(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie]); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie]); } } // ------------------------------------------------------------------- @@ -482,7 +482,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) } esdInd++; } - //AliInfor(Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); + //AliDebug(AliQAv1::GetQADebugLevel(), Form("\t %d performed tests, results %1.2f\n",ntests[specie],test[specie]/ntests[specie])); } else { AliWarning(Form("\n\t No ZDC QA for %s task\n",taskName)); @@ -500,7 +500,7 @@ Double_t * AliZDCQAChecker::Check(AliQAv1::ALITASK_t index, TObjArray ** list) for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { if(ntests[specie]!=0) test[specie] = test[specie]/ntests[specie]; - printf("\n\tAliZDCQAChecker-> QA check result = %1.2f\n",test[specie]); + AliDebug(AliQAv1::GetQADebugLevel(), Form("\n\tAliZDCQAChecker-> QA check result = %1.2f\n",test[specie])); } delete [] ntests ; return test; diff --git a/test/ppbench/sim.C b/test/ppbench/sim.C index c88e6d90e0d..65f92346097 100644 --- a/test/ppbench/sim.C +++ b/test/ppbench/sim.C @@ -1,4 +1,4 @@ -void sim(Int_t nev=20) { +void sim(Int_t nev=1) { if (gSystem->Getenv("EVENT")) nev = atoi(gSystem->Getenv("EVENT")) ; -- 2.43.0