]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Reduced QA output (Yves)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 May 2009 10:43:13 +0000 (10:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 May 2009 10:43:13 +0000 (10:43 +0000)
35 files changed:
ACORDE/AliACORDEQAChecker.cxx
ACORDE/AliACORDEQADataMakerSim.cxx
HMPID/AliHMPIDQAChecker.cxx
ITS/AliITSQAChecker.cxx
ITS/AliITSQADataMakerRec.cxx
ITS/AliITSQADataMakerSim.cxx
ITS/AliITSQASDDDataMakerRec.cxx
ITS/AliITSQASDDDataMakerSim.cxx
ITS/AliITSQASPDChecker.cxx
ITS/AliITSQASPDDataMakerRec.cxx
ITS/AliITSQASPDDataMakerSim.cxx
ITS/AliITSQASSDChecker.cxx
ITS/AliITSQASSDDataMakerRec.cxx
ITS/AliITSQASSDDataMakerSim.cxx
MUON/AliMUONQADataMakerRec.cxx
MUON/AliMUONQADataMakerSim.cxx
PHOS/AliPHOSESDQA.cxx
STEER/AliCDBManager.cxx
STEER/AliQAChecker.cxx
STEER/AliQACheckerBase.cxx
STEER/AliQADataMakerRec.cxx
STEER/AliQADataMakerSim.cxx
STEER/AliQAManager.cxx
STEER/AliQAv1.cxx
STEER/AliQAv1.h
T0/AliT0QAChecker.cxx
T0/AliT0QADataMakerRec.cxx
TOF/AliTOFQAChecker.cxx
TRD/AliTRDQADataMaker.cxx
TRD/AliTRDQADataMakerRec.cxx
TRD/AliTRDQADataMakerSim.cxx
VZERO/AliVZEROQAChecker.cxx
VZERO/AliVZEROQADataMakerRec.cxx
ZDC/AliZDCQAChecker.cxx
test/ppbench/sim.C

index 3d457a30c1417cb4ab69272a32ea2b1c805d8f48..f411ceb3edcda307dd1fbd21093c6ffc906d2469 100755 (executable)
@@ -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 ; 
 }
index 887aaf08144d3b739f2f6a40170f9b7916f11902..178910ef0830a4645eb1de1db68ae9a83e64f767 100755 (executable)
@@ -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()
index 25d398e576e87c3c121bf308113cf929476e10b6..3992b3e030dcfd6be54fefa18fe1d5825d4beec3 100644 (file)
@@ -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())
index 2f5ec93af51282fa3c03ecb8d6058b141d0260a3..be7814d3a75f44f231c7579e7bbc96f7057f0e0b 100644 (file)
@@ -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++) {
index e80251d9097dc887fb616a79f0f8deecc0fe8b5d..2664e640eaec8337bda4cf9ac1b7424c2711e0c3 100644 (file)
@@ -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();
   }
 }
index 6035f93d016f2af12cd48da8ea3e90660e1bee87..c26722fa1a86f036ec7d8807c9d8f42a537037d7 100644 (file)
@@ -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();
   }
 }
index 6be5fa10b0615c66f6a07e86bb5d8c7a90812bd9..fabfa8dea6af326bba655f893f22fca69b7ead90 100644 (file)
@@ -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 <fgkmodoffset|| 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));
 
 
 }
index 43369775b791ce3d4e911cac3910b15b93d1d57c..915cb80e5716f9f473ef4b99a00790014d60d616 100644 (file)
@@ -90,14 +90,14 @@ AliITSQASDDDataMakerSim& AliITSQASDDDataMakerSim::operator = (const AliITSQASDDD
 void AliITSQASDDDataMakerSim::StartOfDetectorCycle()\r
 {\r
   //Detector specific actions at start of cycle\r
-  AliDebug(1,"AliITSQADM::Start of SDD Cycle\n");\r
+  AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SDD Cycle\n");\r
 }\r
 \r
 //____________________________________________________________________________ \r
 void AliITSQASDDDataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/)\r
 {\r
   // launch the QA checking\r
-  AliDebug(1,"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); \r
+  AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n"); \r
   //AliQAChecker::Instance()->Run( AliQAv1::kITS , task, list);\r
 }\r
 \r
@@ -130,7 +130,7 @@ void AliITSQASDDDataMakerSim::InitDigits()
   h3->GetYaxis()->SetTitle("# DIGITS");\r
   fAliITSQADataMakerSim->Add2DigitsList(h3,3+fGenOffsetD, !expert, image);\r
   fSDDhDTask ++;\r
-  AliDebug(1,Form("%d SDD Digits histograms booked\n",fSDDhDTask));\r
+  AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD Digits histograms booked\n",fSDDhDTask));\r
 }\r
 \r
 //____________________________________________________________________________\r
@@ -188,7 +188,7 @@ void AliITSQASDDDataMakerSim::InitSDigits()
   fAliITSQADataMakerSim->Add2SDigitsList(h3,3+fGenOffsetS, !expert, image);\r
   fSDDhSTask ++;\r
 \r
-  AliDebug(1,Form("%d SDD SDigits histograms booked\n",fSDDhSTask));\r
+  AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD SDigits histograms booked\n",fSDDhSTask));\r
 }\r
 \r
 //____________________________________________________________________________\r
@@ -263,7 +263,7 @@ void AliITSQASDDDataMakerSim::InitHits()
   h3->GetYaxis()->SetTitle("# HITS");\r
   fAliITSQADataMakerSim->Add2HitsList(h3,3+fGenOffsetH, !expert, image);\r
   fSDDhHTask ++;\r
-  AliDebug(1,Form("%d SDD Hits histograms booked\n",fSDDhHTask));\r
+  AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SDD Hits histograms booked\n",fSDDhHTask));\r
 }\r
 \r
 //____________________________________________________________________________\r
index 7b3ecbc4f9ad85cf490992cd2677e5bfd6a9e2db..446623442dccc805678732d20d6ac0fc2919a5a4 100644 (file)
@@ -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 ;
 
 }
index 19504114450daad98a4fd2d855f20f6a763e846b..4a44dca2051b70b2b748a939855d4b1cb5be26cc 100644 (file)
@@ -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));
 
 
 }
index ca708e99c9894b11b843651d5b580a549225f817..0b6814099df46b31014542c080cb04c445cdbf4c 100644 (file)
@@ -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));
 
 }
 
index 11df668e7638df47280d2291231ab49200810477..63af85b086ced3430e57c18cfccff1acd68f9405 100644 (file)
@@ -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<<hdata->GetName()<<" - "<<rv<<endl;
         count++ ;
         test += rv ;
@@ -79,7 +79,7 @@ Double_t AliITSQASSDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * lis
     }
   }
   
-  //AliInfo(Form("Test Result = %f", test)) ;
+  //AliDebug(AliQAv1::GetQADebugLevel(), Form("Test Result = %f", test)) ;
   //cout<<"Test result: "<<test<<endl;
 
   return test ;
index b697c91496907c824bc0257407480c20dd04e482..49d65f72ebbea9e2811d281534e0d32ab943c1b7 100644 (file)
@@ -71,11 +71,11 @@ fCDBManager(0) {
     fCDBManager->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: "<<lNumFiredBins<<
     " - Occupancy: "<<lOccupancy<<endl;*/
-  //AliInfo(Form("Fired strips: %d - Total strips: %d - Occupancy :%lf\n",lNumFiredBins,lHisto->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;
index e54474c4c84254a0e912c12737c246fe59c7b171..53059b1763e62aed920a6edf9c0d78b04816b566 100644 (file)
@@ -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);
       
index 338d20c1315d5a37c05e29b06aca41c6be64b243..2ea6893ce39d21311495ca0a1469a9d18c7645fb 100644 (file)
@@ -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<AliMpDCSNamer::kNDCSMeas; iMeas++){
        TString currAlias = triggerDcsNamer.DCSChannelName(detElemId, 0, iMeas);
 
-       AliDebug(2, Form("\nDetElemId %i   dcsAlias %s", detElemId, currAlias.Data()));
+        AliDebug(AliQAv1::GetQADebugLevel(), Form("\nDetElemId %i   dcsAlias %s", detElemId, currAlias.Data()));
 
        TPair* triggerDcsPair = static_cast<TPair*>(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:
index b7dbad3074d885c79141a366cc0df910faa062ea..5d413574f619767888521cc5a470ba8215f4153b 100644 (file)
@@ -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;
index e83fea35bce8db31f9824724663a85ba68c21f81..0677a368468eb49230dc2f8ea91b5dded6a93845 100644 (file)
@@ -143,7 +143,7 @@ void AliPHOSESDQA::Exec(Option_t *)
   }
   
   if ( !((entry-1)%100) ) 
-    AliInfo(Form("%s ----> Processing event # %lld",  (dynamic_cast<TChain *>(fChain))->GetFile()->GetName(), entry)) ; 
+    AliDebug(AliQAv1::GetQADebugLevel(), Form("%s ----> Processing event # %lld",  (dynamic_cast<TChain *>(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);
 
index 34706470c022bfe4d589a672ce7c909e323e91d8..00cfe89c2c7436f50bb25b7921b01ae277bf47ca 100644 (file)
@@ -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<AliCDBEntry*> (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<TPair*> (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<AliCDBEntry*> (fEntryCache.GetValue(&pathStr));
                        if(entry) delete entry;
index d53c8c5991dc47a891db45bbd5ec0da068e086fe..af5acd1c754ae0bb3e1716653b6db6d112a9ab60 100644 (file)
@@ -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<TMap*>(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<AliGRPObject*>(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<TKey *>(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<TKey *>(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())) ; 
   
index cfaf9801597aeea921fa3ff62266f15f06519aa1..f354800889f2abe8edc1351b21a4ca966c508d72 100644 (file)
@@ -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]) ; 
+  }
 }
 
 //____________________________________________________________________________
index ca25a02142473d1308607bba19da1b27e1068a81..8bb2306a56efce2249038015ea00c489f79da010 100644 (file)
@@ -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<AliRawReader *>(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<TTree *>(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<AliESDEvent *>(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<TObjArray*>(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<TObjArray*>(recoParamObj) ;
         for (Int_t iRP=0; iRP<recoParamArray->GetEntriesFast(); iRP++) {
           fRecoParam = dynamic_cast<AliDetectorRecoParam*>(recoParamArray->At(iRP)) ;
@@ -382,7 +383,7 @@ void AliQADataMakerRec::InitRecoParams()
       else if (dynamic_cast<AliDetectorRecoParam*>(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<AliDetectorRecoParam*>(recoParamObj)->SetAsDefault();
         fRecoParam = dynamic_cast<AliDetectorRecoParam*>(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()) ; 
index c8c7a89736dd05b77c067d2d72eed0e029e1d342..01c7a961cf0f8c777918f3fd6b9cd88d388abed2 100644 (file)
@@ -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<TClonesArray *>(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<TClonesArray *>(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<TClonesArray *>(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()) ; 
index 8d7ea4afd7bb001088a5207c770cf9625aea10e4..cb0e9e7c7c51a4ce3c88734d01f5d77a9936b733 100644 (file)
@@ -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<TList *>(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<AliModule*>(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<TObjString *> (nextRun())) ) {
     runNumber = (srun->String()).Atoi() ; 
     hisRun->Fill(runNumber) ; 
-    AliInfo(Form("Merging run number %d", runNumber)) ; 
+    AliDebug(AliQAv1::GetQADebugLevel(), Form("Merging run number %d", runNumber)) ; 
     // search all QA files for runNumber in the current directory
     char * fileList[AliQAv1::kNDET] ;
     index = 0 ; 
@@ -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<TH1*> (key->ReadObj()) ; 
                       TH1 * histOu = dynamic_cast<TH1*> (mergedDirectory->FindObjectAny(histIn->GetName())) ; 
-                      //AliInfo(Form("%s %x %x\n", key->GetName(), histIn, histOu)) ; 
+                      AliDebug(AliQAv1::GetQADebugLevel(), Form("%s %x %x\n", key->GetName(), histIn, histOu)) ; 
                       mergedDirectory->cd() ; 
                       if ( ! histOu ) {
                         histIn->Write() ; 
@@ -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<TKey*>(nextTask())) ) {
                                TDirectory * taskDir = detDir->GetDirectory(taskKey->GetName()) ; 
         TDirectory * esDir   = taskDir->GetDirectory(AliRecoParam::GetEventSpecieName(es)) ; 
-                               AliInfo(Form("Saving %s", esDir->GetName())) ; 
+                               AliDebug(AliQAv1::GetQADebugLevel(), Form("Saving %s", esDir->GetName())) ; 
                                TObjArray * listTaskQAD = new TObjArray(100) ; 
                                listTaskQAD->SetName(Form("%s/%s", taskKey->GetName(), AliRecoParam::GetEventSpecieName(es))) ;
                                listDetQAD->Add(listTaskQAD) ; 
@@ -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<TH1*>(expertOdata) ; 
                     listTaskQAD->Add(hExpertdata) ; 
                   }                  
                 }                
               }
             }
-                                               AliInfo(Form("Adding %s", histKey->GetName())) ;
+                                               AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s", histKey->GetName())) ;
                                                if ( odata->IsA()->InheritsFrom("TH1") ) {
-                                                       AliInfo(Form("Adding %s", histKey->GetName())) ;
+                                                       AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s", histKey->GetName())) ;
                                                        TH1 * hdata = static_cast<TH1*>(odata) ; 
                                                        listTaskQAD->Add(hdata) ; 
                                                }
index 7db371bc87484effb0b62c7e0abb7620ecd127b7..74299e2e0c9a42a916a3a4693604084ceaf1ce39 100644 (file)
@@ -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("", ""), 
index 8e3a0178a0367bf52188639c2d0928472e71f36c..c8fca2cfaad3935399b188227dad32cd3a16968e 100644 (file)
@@ -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<<ibit) ++ibit; fEventSpecies[ibit] = kTRUE ; }
+  static void            SetQADebug() { AliLog::SetGlobalDebugLevel(GetQADebugLevel()); }
   static void            SetQAResultDirName(const char * name) ; 
   static void            SetQARefStorage(const char * name) ; 
   static void            SetQARefDataDirName(AliRecoParam::EventSpecie_t es) { fgRefDataDirName = AliRecoParam::GetEventSpecieName(es) ; }
@@ -110,12 +112,12 @@ private:
   void                  ShowASCIIStatus(AliRecoParam::EventSpecie_t es, DETECTORINDEX_t det, ALITASK_t tsk, ULong_t status) const ; 
   void                  ResetStatus(DETECTORINDEX_t det) ; 
   void                  Set(DETECTORINDEX_t det) { fDet = det ;}
-  void                  Set(ALITASK_t tsk) { fTask = tsk ; AliDebug(1, Form("Ready to set QA status in %s", GetAliTaskName(tsk) )) ; }
+  void                  Set(ALITASK_t tsk) { fTask = tsk ; AliDebug(GetQADebugLevel(), Form("Ready to set QA status in %s", GetAliTaskName(tsk) )) ; }
   void                  SetStatus(DETECTORINDEX_t det, AliRecoParam::EventSpecie_t es, ULong_t status) { fQA[det*fNEventSpecies+(Int_t)TMath::Log2(es)] = status ; }
   void                  SetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit) ;
   void                  UnSetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit) ;
   
-  static AliQAv1 *       fgQA                          ; // pointer to the instance of the singleton
+  static AliQAv1 *     fgQA                            ; // pointer to the instance of the singleton
   Int_t                fNdet                       ; // number of detectors
   Int_t                fNEventSpecies         ; // number of Event Species (see AliRecoParam)
   Int_t                fLengthQA              ; // Auxiliary length of fQA
@@ -143,6 +145,7 @@ private:
   static const TString fgkLabAliEnOCDB        ; //! label to identify a file as AliEn OCDB 
   static const TString fgkRefFileName         ; //! name of Reference File Name 
   static const UInt_t  fgkQABit               ; //! bit in the QA data object which is set when Checker does not return 0
+  static const Int_t   fgkQADebugLevel        ; //! debug level used for QA verbosity
   static const TString fgkQAName              ; //! name of QA object 
   static const TString fgkQACorrNtName        ; //! name of QA Correlation Ntuple
   static const TString fgkRefOCDBDirName      ; //! name of Reference directory name in OCDB   
@@ -150,6 +153,6 @@ private:
   static const TString fgkQARefOCDBDefault    ; //! default storage for QA in OCDB 
   Bool_t *             fEventSpecies          ; //[fNEventSpecies] list of event species encountered in a run
 
- ClassDef(AliQAv1,2)  //ALICE Quality Assurance Object
+ ClassDef(AliQAv1,3)  //ALICE Quality Assurance Object
 };
 #endif
index bd9c44866bb670b0c399d874b38e7567d91e8944..5fbfc2f114588e8fddc13241dc2837bb4d0f26a7 100644 (file)
@@ -90,7 +90,7 @@ Double_t * AliT0QAChecker::Check(AliQAv1::ALITASK_t index,TObjArray ** list)
     TIter next(list[specie]) ;
     TH1 * hdata ;
     TH2 * h ;
-    //  AliInfo(Form(" data type %i %s nentries %i\n",
+    //  AliDebug(AliQAv1::GetQADebugLevel(), Form(" data type %i %s nentries %i\n",
     //    index,dataType.Data(),list->GetEntries()));
     for (Int_t ir=0; ir<list[specie]->GetEntries(); 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 "<<ir<<endl;
+       // cout<<" ir "<<ir<<endl;
         hdata = (TH1*) list[specie]->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 ;
 }
index 1df4f684cd16f2563ddb85ed438fd603d9c56cf9..1bcfa50719b9c7d64eff0d9156005cb3f11b0e1e 100644 (file)
@@ -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++;
index cf85d840489178295d79447101227dbf05a5530d..58f647584445e19b812fd380a6977dcf27b7faee 100644 (file)
@@ -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])) ; 
       }
     }
   }
index a395d33b4db5e7d96ef3fd0d3c34d217ec3a87cb..d11c6d7922e7eb516dbe6aeecfe5e8b154a3ff3c 100644 (file)
@@ -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++) {
        
index d95cfad3439ae7bb9ee80670dddcb40d4d0c3da8..0e86711b6ae91d60c45371ca9c1a3a3b0ae7f7b0 100644 (file)
@@ -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));
         }
index f3795eab461de3dc9d6732caffedbd93dd7bb343..7ca57099936d714d5564dfe490a74d344443dbfe 100644 (file)
@@ -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) ;    
index ede15c89d834dbfe39e184c9c3df13a8fbfb5c74..e3aaea5f7e2f86e05bcd222ffa86cf85ceba8249 100644 (file)
@@ -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{
index adf2055a02107a6333eea3e3be531a0ede25450a..3a1bde731bef3d50a38bef2e1f502e21a31f5cd8 100644 (file)
@@ -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));
  }
 
 //____________________________________________________________________________
index 5ff7daab9c757cf41f8f3b28a457912974dee435..9e514e80565b0bb2ca6e95301c14bd05d1ab010e 100644 (file)
@@ -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<TH1 *>(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; 
index c88e6d90e0d43db278ab795d810650f653f91a26..65f9234609749de885ad3aef257f23fea8548af1 100644 (file)
@@ -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")) ;