]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Put the QA images into a compac format
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Jun 2009 13:32:26 +0000 (13:32 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Jun 2009 13:32:26 +0000 (13:32 +0000)
STEER/AliQADataMaker.cxx
STEER/AliQADataMaker.h
STEER/AliQADataMakerRec.cxx
STEER/AliQADataMakerSim.cxx
STEER/AliQAManager.cxx
STEER/AliQAManager.h
STEER/AliQAv1.cxx
STEER/AliQAv1.h

index 7a96edf30082cfcd1764e13e2d1313484839011f..0f262b17d1b0c2450911e38a625d53b4ee0ae6c6 100644 (file)
@@ -25,6 +25,7 @@
 
 // --- ROOT system ---
 #include <TCanvas.h> 
+#include <TPaveText.h>
 #include <TSystem.h> 
 #include <TFile.h>
 #include <TList.h> 
@@ -56,7 +57,7 @@
 ClassImp(AliQADataMaker)
              
 //____________________________________________________________________________ 
-AliQADataMaker::AliQADataMaker(const char * name, const char * title) : 
+AliQADataMaker::AliQADataMaker(const Char_t * name, const Char_t * title) : 
   TNamed(name, title), 
   fOutput(0x0),
   fDetectorDir(0x0),
@@ -69,7 +70,7 @@ AliQADataMaker::AliQADataMaker(const char * name, const char * title) :
   fRun(0), 
   fEventSpecie(AliRecoParam::kDefault), 
   fImage(new TCanvas*[AliRecoParam::kNSpecies]), 
-  fPrintImage(kFALSE) 
+  fPrintImage(kTRUE) 
 {
   // ctor
   fDetectorDirName = GetName() ; 
@@ -93,7 +94,7 @@ AliQADataMaker::AliQADataMaker(const AliQADataMaker& qadm) :
   fRun(qadm.fRun), 
   fEventSpecie(qadm.fEventSpecie), 
   fImage(qadm.fImage),  
-  fPrintImage(kFALSE)
+  fPrintImage(kTRUE)
 
 {
   //copy ctor
@@ -137,7 +138,7 @@ Int_t AliQADataMaker::Add2List(TH1 * hist, const Int_t index, TObjArray ** list,
       histClone[specie]->SetDirectory(0) ; 
       list[specie]->AddAtAndExpand(histClone[specie], index) ; 
       if(saveForCorr) {  
-        char * name = Form("%s_%s", list[AliRecoParam::AConvert(AliRecoParam::kDefault)]->GetName(), hist->GetName()) ;  
+        const Char_t * name = Form("%s_%s", list[AliRecoParam::AConvert(AliRecoParam::kDefault)]->GetName(), hist->GetName()) ;  
         TParameter<double> * p = new TParameter<double>(name, 9999.9999) ;
         if ( fParameterList[specie] == NULL )
           fParameterList[specie] = new TList() ; 
@@ -154,7 +155,7 @@ Int_t AliQADataMaker::Add2List(TH1 * hist, const Int_t index, TObjArray ** list,
 TH1 *  AliQADataMaker::CloneMe(TH1 * hist, Int_t specie) const  
 {
   // clones a histogram 
-  char * name = Form("%s_%s", AliRecoParam::GetEventSpecieName(specie), hist->GetName()) ;
+  const Char_t * name = Form("%s_%s", AliRecoParam::GetEventSpecieName(specie), hist->GetName()) ;
   TH1 * hClone = dynamic_cast<TH1 *>(hist->Clone(name)) ; 
   if ( hist->TestBit(AliQAv1::GetExpertBit()) )
     hClone->SetBit(AliQAv1::GetExpertBit()) ; 
@@ -216,3 +217,52 @@ TObject * AliQADataMaker::GetData(TObjArray ** list, const Int_t index)
        }
 }
 
+//____________________________________________________________________________ 
+void AliQADataMaker::MakeTheImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, Char_t * mode) 
+{
+  // makes the QA image for sim and rec
+  TIter next(list[0]) ;  
+  TH1 * hdata = NULL ; 
+  Int_t nImages = 0 ;
+  while ( (hdata=dynamic_cast<TH1 *>(next())) ) {
+    if ( hdata->TestBit(AliQAv1::GetImageBit()) )
+      nImages++; 
+  }
+  if ( nImages == 0 ) {
+    AliWarning(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ;  
+  } else {
+    AliDebug(AliQAv1::GetQADebugLevel(), Form("%d histograms will be plotted for %s %s\n", nImages, GetName(), AliQAv1::GetTaskName(task).Data())) ;  
+    for (Int_t esIndex = 0 ; esIndex < AliRecoParam::kNSpecies ; esIndex++) {
+      if (! AliQAv1::Instance(AliQAv1::GetDetIndex(GetName()))->IsEventSpecieSet(AliRecoParam::ConvertIndex(esIndex)) ) 
+        continue ;
+      const Char_t * title = Form("QA_%s_%s_%s", GetName(), AliQAv1::GetTaskName(task).Data(), AliRecoParam::GetEventSpecieName(esIndex)) ; 
+      if ( !fImage[esIndex] ) {
+        fImage[esIndex] = new TCanvas(title, title) ;
+      }
+      fImage[esIndex]->Clear() ; 
+      fImage[esIndex]->SetTitle(title) ; 
+      fImage[esIndex]->cd() ; 
+      TPaveText someText(0.015, 0.015, 0.98, 0.98) ;
+      someText.AddText(title) ;
+      someText.Draw() ; 
+      fImage[esIndex]->Print(Form("%s%s%d.%s", AliQAv1::GetImageFileName(), mode, fRun, AliQAv1::GetImageFileFormat())) ; 
+      fImage[esIndex]->Clear() ; 
+      Int_t nx = TMath::Sqrt(nImages) ; 
+      Int_t ny = nx  ; 
+      if ( nx < TMath::Sqrt(nImages)) 
+        ny++ ; 
+      fImage[esIndex]->Divide(nx, ny) ; 
+      TIter nexthist(list[esIndex]) ; 
+      TH1* hist = NULL ;
+      Int_t npad = 1 ; 
+      fImage[esIndex]->cd(npad) ; 
+      while ( (hist=dynamic_cast<TH1*>(nexthist())) ) {
+        if(hist->TestBit(AliQAv1::GetImageBit())) {
+          hist->Draw() ; 
+          fImage[esIndex]->cd(++npad) ; 
+        }
+      }
+      fImage[esIndex]->Print(Form("%s%s%d.%s", AliQAv1::GetImageFileName(), mode, fRun, AliQAv1::GetImageFileFormat())) ; 
+    }
+  }  
+}
index 18b0e946e31d7e7771b99388ece73f472deec2f9..53e235d85878f1c2e907d4883f12f8d8db75258b 100644 (file)
@@ -38,7 +38,7 @@ class AliQADataMaker: public TNamed {
   
 public:
        
-       AliQADataMaker(const char * name="", const char * title="") ;          // ctor
+       AliQADataMaker(const Char_t * name="", const Char_t * title="") ;          // ctor
        AliQADataMaker(const AliQADataMaker& qadm) ;   
        virtual ~AliQADataMaker() ; // dtor
   
@@ -60,7 +60,7 @@ public:
        virtual TH1 *       GetRecPointsData(const Int_t index)                    = 0 ; 
        virtual TH1 *       GetRawsData(const Int_t index)                         = 0 ; 
        virtual TH1 *       GetSDigitsData(const Int_t index)                      = 0 ; 
-       const char *        GetDetectorDirName() const { return fDetectorDirName.Data() ; }
+       const Char_t *        GetDetectorDirName() const { return fDetectorDirName.Data() ; }
   TList *             GetParameterList() const { return fParameterList[AliRecoParam::AConvert(fEventSpecie)] ; }
   virtual const AliDetectorRecoParam * GetRecoParam() { return NULL ; }
        Int_t               Increment() { return ++fCycleCounter ; } 
@@ -107,6 +107,7 @@ protected:
        virtual void   MakeSDigits(TClonesArray * )      = 0 ;  
        virtual void   MakeSDigits(TTree * )             = 0 ;  
   //virtual void   MakeTrackSegments(TTree * )          = 0 ;  
+  virtual void   MakeTheImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, Char_t * mode) ; 
        void           ResetCycle() { fCurrentCycle++ ; fCycleCounter = 0 ; } 
        virtual void   StartOfDetectorCycle()            = 0 ;
        
index 73d07823e619e9dc7e668e43db9f62e588d15fe2..f862071148782c31906ccd1ee7d4410215cad75c 100644 (file)
@@ -237,52 +237,7 @@ void AliQADataMakerRec::MakeImage(AliQAv1::TASKINDEX_t task)
     AliError("data not initialized, call AliQADataMaker::Init"); 
     return ; 
   }
-  TIter next(list[0]) ;  
-  TH1 * hdata = NULL ; 
-  Int_t nImages = 0 ;
-  while ( (hdata=dynamic_cast<TH1 *>(next())) ) {
-    if ( hdata->TestBit(AliQAv1::GetImageBit()) )
-      nImages++; 
-  }
-  if ( nImages == 0 ) {
-    AliWarning(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ;  
-  } else {
-    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++) {
-      if ( !fImage[esIndex] ) {
-        fImage[esIndex] = new TCanvas(Form("QA_%s_%s_%s", 
-                                           GetName(), 
-                                           AliQAv1::GetTaskName(task).Data(), 
-                                           AliRecoParam::GetEventSpecieName(esIndex)), 
-                                      Form("QA control plots for det=%s task=%s eventspecie=%s", 
-                                           GetName(), 
-                                           AliQAv1::GetTaskName(task).Data(), 
-                                           AliRecoParam::GetEventSpecieName(esIndex)), 
-                                      w, h) ;
-      }
-      fImage[esIndex]->Clear() ; 
-      fImage[esIndex]->SetWindowSize(w + (w - fImage[esIndex]->GetWw()), h + (h - fImage[esIndex]->GetWh())) ;
-      Int_t nx = TMath::Sqrt(nImages) ; 
-      Int_t ny = nx  ; 
-      if ( nx < TMath::Sqrt(nImages)) 
-        ny++ ; 
-      fImage[esIndex]->Divide(nx, ny) ; 
-      TIter nexthist(list[esIndex]) ; 
-      TH1* hist = NULL ;
-      Int_t npad = 1 ; 
-      fImage[esIndex]->cd(npad) ; 
-      while ( (hist=dynamic_cast<TH1*>(nexthist())) ) {
-        if(hist->TestBit(AliQAv1::GetImageBit())) {
-          hist->Draw() ; 
-          fImage[esIndex]->cd(++npad) ; 
-        }
-      }
-      if (fPrintImage) 
-        fImage[esIndex]->Print() ; 
-    }
-  }
+  MakeTheImage(list, task, "Rec") ; 
 }
 
 //____________________________________________________________________________
index 8499afaa34ea82321e0f1886fb616af628b76100..56693089addc8b2cc97fa5ab18c0b092689c0d4f 100644 (file)
@@ -152,7 +152,8 @@ void AliQADataMakerSim::EndOfCycle(AliQAv1::TASKINDEX_t task)
     }
     fOutput->Save() ; 
   }
-  MakeImage(task) ; 
+  if (fPrintImage) 
+    MakeImage(task) ; 
 }
  
 //____________________________________________________________________________
@@ -238,52 +239,7 @@ void AliQADataMakerSim::MakeImage(AliQAv1::TASKINDEX_t task)
     AliFatal("data not initialized, call AliQADataMaker::Init"); 
   return ; 
   }
-  TIter next(list[0]) ;  
-  TH1 * hdata = NULL ; 
-  Int_t nImages = 0 ;
-  while ( (hdata=dynamic_cast<TH1 *>(next())) ) {
-    if ( hdata->TestBit(AliQAv1::GetImageBit()) )
-      nImages++; 
-  }
-  if ( nImages == 0 ) {
-    AliWarning(Form("No histogram will be plotted for %s %s\n", GetName(), AliQAv1::GetTaskName(task).Data())) ;  
-  } else {
-    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++) {
-      if ( !fImage[esIndex] ) {
-        fImage[esIndex] = new TCanvas(Form("QA_%s_%s_%s", 
-                                           GetName(), 
-                                           AliQAv1::GetTaskName(task).Data(), 
-                                           AliRecoParam::GetEventSpecieName(esIndex)), 
-                                      Form("QA control plots for det=%s task=%s eventspecie=%s", 
-                                           GetName(), 
-                                           AliQAv1::GetTaskName(task).Data(), 
-                                           AliRecoParam::GetEventSpecieName(esIndex)), 
-                                      w, h) ;
-        fImage[esIndex]->SetWindowSize(w + (w - fImage[esIndex]->GetWw()), h + (h - fImage[esIndex]->GetWh())) ;
-        Int_t nx = TMath::Sqrt(nImages) ; 
-        Int_t ny = nx  ; 
-        if ( nx < TMath::Sqrt(nImages)) 
-          ny++ ; 
-        fImage[esIndex]->Divide(nx, ny) ; 
-      }
-      fImage[esIndex]->Clear() ; 
-      TIter nexthist(list[esIndex]) ; 
-      TH1* hist = NULL ;
-      Int_t npad = 1 ; 
-      fImage[esIndex]->cd(npad) ; 
-      while ( (hist=dynamic_cast<TH1*>(nexthist())) ) {
-        if(hist->TestBit(AliQAv1::GetImageBit())) {
-          hist->Draw() ; 
-          fImage[esIndex]->cd(++npad) ; 
-        }
-      }
-      if (fPrintImage) 
-        fImage[esIndex]->Print() ; 
-    }
-  }
+  MakeTheImage(list, task, "Sim") ; 
 }
 
 //____________________________________________________________________________ 
index ec9786b3cceffebfa7864a94201c255bfa799813..fdf81602481709604820e3c872032fe1438d7f99 100644 (file)
@@ -28,6 +28,7 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TCanvas.h>
 #include <TKey.h>
 #include <TFile.h>
 #include <TFileMerger.h>
@@ -86,7 +87,8 @@ AliQAManager::AliQAManager() :
   fRawReaderDelete(kTRUE), 
   fRunLoader(NULL), 
   fTasks(""),  
-  fEventSpecie(AliRecoParam::kDefault)
+  fEventSpecie(AliRecoParam::kDefault), 
+  fPrintImage(kTRUE) 
 {
        // default ctor
        fMaxEvents = fNumberOfEvents ; 
@@ -101,7 +103,7 @@ AliQAManager::AliQAManager() :
 }
 
 //_____________________________________________________________________________
-AliQAManager::AliQAManager(const Char_t * mode, const Char_t* gAliceFilename) :
+AliQAManager::AliQAManager(Char_t * mode, const Char_t* gAliceFilename) :
   AliCDBManager(), 
   fCurrentEvent(0),  
        fCycleSame(kFALSE),
@@ -120,7 +122,8 @@ AliQAManager::AliQAManager(const Char_t * mode, const Char_t* gAliceFilename) :
        fRawReaderDelete(kTRUE), 
        fRunLoader(NULL), 
   fTasks(""), 
-  fEventSpecie(AliRecoParam::kDefault)
+  fEventSpecie(AliRecoParam::kDefault), 
+  fPrintImage(kTRUE) 
 {
        // default ctor
        fMaxEvents = fNumberOfEvents ; 
@@ -132,6 +135,10 @@ AliQAManager::AliQAManager(const Char_t * mode, const Char_t* gAliceFilename) :
     }
   }
   SetWriteExpert() ; 
+  if (fMode.Contains("sim")) 
+               fMode.ReplaceAll("s", "S") ; 
+  else if (fMode.Contains("rec")) 
+    fMode.ReplaceAll("r", "R") ; 
 }
 
 //_____________________________________________________________________________
@@ -154,7 +161,9 @@ AliQAManager::AliQAManager(const AliQAManager & qas) :
        fRawReaderDelete(kTRUE), 
        fRunLoader(NULL), 
   fTasks(qas.fTasks), 
-  fEventSpecie(qas.fEventSpecie)
+  fEventSpecie(qas.fEventSpecie), 
+  fPrintImage(qas.fPrintImage) 
+
 {
        // cpy ctor
        for (UInt_t iDet = 0; iDet < fgkNDetectors; iDet++) {
@@ -192,6 +201,9 @@ AliQAManager::~AliQAManager()
                delete fRawReader ;
                fRawReader = NULL ;
        }
+  TCanvas fakeCanvas ; 
+  if (fPrintImage) 
+    fakeCanvas.Print(Form("%s%s%d.%s]", AliQAv1::GetImageFileName(), GetMode(), fRunNumber, AliQAv1::GetImageFileFormat())); 
 }
 
 //_____________________________________________________________________________
@@ -255,14 +267,23 @@ Bool_t AliQAManager::DoIt(const AliQAv1::TASKINDEX_t taskIndex)
             qadm->Exec(taskIndex, data) ; 
                                                break; 
                                                case AliQAv1::kDIGITS :
-            if( loader ) {      
-              loader->LoadDigits() ; 
-              data = loader->TreeD() ; 
-              if ( ! data ) {
-                AliWarning(Form(" Digit Tree not found for  %s", AliQAv1::GetDetName(iDet))) ; 
-                break ; 
-              } 
-            }
+              if( loader ) {      
+                loader->LoadDigits() ; 
+                data = loader->TreeD() ; 
+                if ( ! data ) {
+                  AliWarning(Form(" Digit Tree not found for  %s", AliQAv1::GetDetName(iDet))) ; 
+                  break ; 
+                } 
+              }
+            case AliQAv1::kDIGITSR :
+              if( loader ) {      
+                loader->LoadDigits() ; 
+                data = loader->TreeD() ; 
+                if ( ! data ) {
+                  AliWarning(Form(" Digit Tree not found for  %s", AliQAv1::GetDetName(iDet))) ; 
+                  break ; 
+                } 
+              }
             qadm->Exec(taskIndex, data) ;
                                                break; 
                                                case AliQAv1::kRECPOINTS :
@@ -314,7 +335,7 @@ Bool_t AliQAManager::Finish(const AliQAv1::TASKINDEX_t taskIndex)
 }
 
 //_____________________________________________________________________________
-TObjArray * AliQAManager::GetFromOCDB(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, const char * year) const 
+TObjArray * AliQAManager::GetFromOCDB(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, const Char_t * year) const 
 {
        // Retrieve the list of QA data for a given detector and a given task 
        TObjArray * rv = NULL ;
@@ -338,6 +359,17 @@ TObjArray * AliQAManager::GetFromOCDB(AliQAv1::DETECTORINDEX_t det, AliQAv1::TAS
        return rv ; 
 }
 
+//_____________________________________________________________________________
+TCanvas ** AliQAManager::GetImage(Char_t * detName)
+{
+  // retrieves QA Image for the given detector
+  TCanvas ** rv = NULL ; 
+  Int_t detIndex = AliQAv1::GetDetIndex(detName) ; 
+  AliQADataMaker * qadm = GetQADataMaker(detIndex) ; 
+  rv = qadm->GetImage() ;
+  return rv ; 
+}
+
 //_____________________________________________________________________________
 AliLoader * AliQAManager::GetLoader(Int_t iDet)
 {
@@ -381,7 +413,7 @@ AliLoader * AliQAManager::GetLoader(Int_t iDet)
 AliQAv1 * AliQAManager::GetQA(UInt_t run, UInt_t evt) 
 {
 // retrieves the QA object stored in a file named "Run{run}.Event{evt}_1.ESD.tag.root"  
-  char * fileName = Form("Run%d.Event%d_1.ESD.tag.root", run, evt) ; 
+  Char_t * fileName = Form("Run%d.Event%d_1.ESD.tag.root", run, evt) ; 
   TFile * tagFile = TFile::Open(fileName) ;
   if ( !tagFile ) {
     AliError(Form("File %s not found", fileName)) ;
@@ -443,13 +475,7 @@ AliQADataMaker * AliQAManager::GetQADataMaker(const Int_t iDet)
        // load the QA data maker object
        TPluginManager* pluginManager = gROOT->GetPluginManager() ;
        TString detName = AliQAv1::GetDetName(iDet) ;
-       TString tmp(fMode) ; 
-       if (tmp.Contains("sim")) 
-               tmp.ReplaceAll("s", "S") ; 
-       else if (tmp.Contains("rec")) 
-               tmp.ReplaceAll("r", "R") ; 
-
-       TString qadmName = "Ali" + detName + "QADataMaker" + tmp ;
+       TString qadmName = "Ali" + detName + "QADataMaker" + fMode ;
 
        // first check if a plugin is defined for the quality assurance data maker
        TPluginHandler* pluginHandler = pluginManager->FindHandler("AliQADataMaker", detName) ;
@@ -485,6 +511,10 @@ void  AliQAManager::EndOfCycle(TObjArray * detArray)
 {
        // End of cycle QADataMakers 
        
+  if (fPrintImage) {
+    TCanvas fakeCanvas ; 
+    fakeCanvas.Print(Form("%s%s%d.%s[", AliQAv1::GetImageFileName(), GetMode(), fRunNumber, AliQAv1::GetImageFileFormat())) ; 
+  }
        for (UInt_t iDet = 0; iDet < fgkNDetectors ; iDet++) {
                if (IsSelected(AliQAv1::GetDetName(iDet))) {
                        AliQADataMaker * qadm = GetQADataMaker(iDet) ;
@@ -496,6 +526,7 @@ void  AliQAManager::EndOfCycle(TObjArray * detArray)
                                if (!det || !det->IsActive())  
                                        continue ;
                        }
+      qadm->SetPrintImage(fPrintImage) ;
                        for (UInt_t taskIndex = 0; taskIndex < AliQAv1::kNTASKINDEX; taskIndex++) {
                                if ( fTasks.Contains(Form("%d", taskIndex)) ) 
                                        qadm->EndOfCycle(AliQAv1::GetTaskIndex(AliQAv1::GetTaskName(taskIndex))) ;
@@ -510,7 +541,11 @@ void  AliQAManager::EndOfCycle(TString detectors)
 {
        // End of cycle QADataMakers 
        
-       for (UInt_t iDet = 0; iDet < fgkNDetectors ; iDet++) {
+  if (fPrintImage) {
+    TCanvas fakeCanvas ; 
+    fakeCanvas.Print(Form("%s%s%d.%s[", AliQAv1::GetImageFileName(), GetMode(), fRunNumber, AliQAv1::GetImageFileFormat())) ; 
+  }
+  for (UInt_t iDet = 0; iDet < fgkNDetectors ; iDet++) {
                if (IsSelected(AliQAv1::GetDetName(iDet))) {
                        AliQADataMaker * qadm = GetQADataMaker(iDet) ;
                        if (!qadm) 
@@ -518,6 +553,7 @@ void  AliQAManager::EndOfCycle(TString detectors)
                        // skip non active detectors
       if (!detectors.Contains(AliQAv1::GetDetName(iDet))) 
         continue ;
+      qadm->SetPrintImage(fPrintImage) ;
                for (UInt_t taskIndex = 0; taskIndex < AliQAv1::kNTASKINDEX; taskIndex++) {
                                if ( fTasks.Contains(Form("%d", taskIndex)) ) 
                                        qadm->EndOfCycle(AliQAv1::GetTaskIndex(AliQAv1::GetTaskName(taskIndex))) ;
@@ -541,7 +577,7 @@ void AliQAManager::Increment()
 }
   
 //_____________________________________________________________________________
-Bool_t AliQAManager::InitQA(const AliQAv1::TASKINDEX_t taskIndex, const  char * input )
+Bool_t AliQAManager::InitQA(const AliQAv1::TASKINDEX_t taskIndex, const  Char_t * input )
 {
        // Initialize the event source and QA data makers
        
@@ -606,6 +642,10 @@ Bool_t AliQAManager::InitQA(const AliQAv1::TASKINDEX_t taskIndex, const  char *
                AliGeomManager::LoadGeometry() ; 
        
        InitQADataMaker(fRunNumber, detArray) ; //, fCycleSame, kTRUE, detArray) ; 
+  if (fPrintImage) {
+    TCanvas fakeCanvas ; 
+    fakeCanvas.Print(Form("%s%s%d.%s[", AliQAv1::GetImageFileName(), GetMode(), fRunNumber, AliQAv1::GetImageFileFormat())) ;    
+  }    
        return kTRUE ; 
 }
 
@@ -613,6 +653,7 @@ Bool_t AliQAManager::InitQA(const AliQAv1::TASKINDEX_t taskIndex, const  char *
 void  AliQAManager::InitQADataMaker(UInt_t run, TObjArray * detArray) 
 {
        // Initializes The QADataMaker for all active detectors and for all active tasks 
+  fRunNumber = run ; 
        for (UInt_t iDet = 0; iDet < fgkNDetectors ; iDet++) {
                if (IsSelected(AliQAv1::GetDetName(iDet))) {
                        AliQADataMaker * qadm = GetQADataMaker(iDet) ;
@@ -693,7 +734,7 @@ Bool_t AliQAManager::InitRunLoader()
 }
 
 //_____________________________________________________________________________
-Bool_t AliQAManager::IsSelected(const char * det) 
+Bool_t AliQAManager::IsSelected(const Char_t * det) 
 {
   // check whether detName is contained in detectors
        // if yes, it is removed from detectors
@@ -731,7 +772,7 @@ Bool_t AliQAManager::Merge(Int_t runNumber) const
 }
        
 //______________________________________________________________________
-Bool_t AliQAManager::MergeXML(const char * collectionFile, const char * subFile, const char * outFile) 
+Bool_t AliQAManager::MergeXML(const Char_t * collectionFile, const Char_t * subFile, const Char_t * outFile) 
 {
   // merges files listed in a xml collection 
   // usage Merge(collection, outputFile))
@@ -756,7 +797,7 @@ Bool_t AliQAManager::MergeXML(const char * collectionFile, const char * subFile,
   TGridResult* result = collection->GetGridResult("", 0, 0);
   
   Int_t index = 0  ;
-  const char * turl ;
+  const Char_t * turl ;
   TFileMerger merger(kFALSE) ; 
   if (!outFile) {
     TString tempo(collectionFile) ; 
@@ -769,7 +810,7 @@ Bool_t AliQAManager::MergeXML(const char * collectionFile, const char * subFile,
   merger.OutputFile(outFile) ; 
   
   while ( (turl = result->GetKey(index, "turl")) ) {
-    char * file ;
+    Char_t * file ;
     if ( subFile )
       file = Form("%s#%s", turl, subFile) ; 
     else 
@@ -845,10 +886,10 @@ void AliQAManager::MergeCustom() const
     hisRun->Fill(runNumber) ; 
     AliDebug(AliQAv1::GetQADebugLevel(), Form("Merging run number %d", runNumber)) ; 
     // search all QA files for runNumber in the current directory
-    char * fileList[AliQAv1::kNDET] ;
+    Char_t * fileList[AliQAv1::kNDET] ;
     index = 0 ; 
     for (Int_t iDet = 0; iDet < AliQAv1::kNDET ; iDet++) {
-      char * file = gSystem->Which(gSystem->WorkingDirectory(), Form("%s.%s.%d.root", AliQAv1::GetDetName(iDet), AliQAv1::GetQADataFileName(), runNumber)); 
+      Char_t * file = gSystem->Which(gSystem->WorkingDirectory(), Form("%s.%s.%d.root", AliQAv1::GetDetName(iDet), AliQAv1::GetQADataFileName(), runNumber)); 
       if (file) 
         fileList[index++] = file ;
     }
@@ -956,7 +997,7 @@ Bool_t AliQAManager::MergeData(const Int_t runNumber) const
   TString outFileName = Form("Merged.%s.Data.root",AliQAv1::GetQADataFileName()) ;
   merger.OutputFile(outFileName.Data()) ; 
   for (UInt_t iDet = 0; iDet < fgkNDetectors ; iDet++) {
-    char * file = gSystem->Which(gSystem->WorkingDirectory(), Form("%s.%s.%d.root", AliQAv1::GetDetName(iDet), AliQAv1::GetQADataFileName(), runNumber)); 
+    Char_t * file = gSystem->Which(gSystem->WorkingDirectory(), Form("%s.%s.%d.root", AliQAv1::GetDetName(iDet), AliQAv1::GetQADataFileName(), runNumber)); 
     if (file) 
       merger.AddFile(file) ; 
   }
@@ -1031,11 +1072,13 @@ void AliQAManager::Reset(const Bool_t sameCycle)
 }
 
 //_____________________________________________________________________________
-AliQAManager * AliQAManager::QAManager(const Char_t * mode, TMap *entryCache, Int_t run) 
+AliQAManager * AliQAManager::QAManager(Char_t * mode, TMap *entryCache, Int_t run) 
 {
   // returns AliQAManager instance (singleton)
   
        if (!fgQAInstance) {
+    if ( (strcmp(mode, "sim") != 0) && (strcmp(mode, "rec") != 0) )
+      AliFatalClass("You must specify sim or rec") ; 
     fgQAInstance = new AliQAManager(mode) ;  
     if (!entryCache)
                  fgQAInstance->Init();
@@ -1046,7 +1089,7 @@ AliQAManager * AliQAManager::QAManager(const Char_t * mode, TMap *entryCache, In
 }
 
 //_____________________________________________________________________________
-TString AliQAManager::Run(const char * detectors, AliRawReader * rawReader, const Bool_t sameCycle) 
+TString AliQAManager::Run(const Char_t * detectors, AliRawReader * rawReader, const Bool_t sameCycle) 
 {
        //Runs all the QA data Maker for Raws only
        
@@ -1073,7 +1116,7 @@ TString AliQAManager::Run(const char * detectors, AliRawReader * rawReader, cons
 }
 
 //_____________________________________________________________________________
-TString AliQAManager::Run(const char * detectors, const char * fileName, const Bool_t sameCycle) 
+TString AliQAManager::Run(const Char_t * detectors, const Char_t * fileName, const Bool_t sameCycle) 
 {
        //Runs all the QA data Maker for Raws only
 
@@ -1107,7 +1150,7 @@ TString AliQAManager::Run(const char * detectors, const char * fileName, const B
 }
 
 //_____________________________________________________________________________
-TString AliQAManager::Run(const char * detectors, const AliQAv1::TASKINDEX_t taskIndex, Bool_t const sameCycle, const  char * fileName ) 
+TString AliQAManager::Run(const Char_t * detectors, const AliQAv1::TASKINDEX_t taskIndex, Bool_t const sameCycle, const  Char_t * fileName ) 
 {
        // Runs all the QA data Maker for every detector
        
@@ -1131,9 +1174,7 @@ TString AliQAManager::Run(const char * detectors, const AliQAv1::TASKINDEX_t tas
                        }
                }
        }
-       
-
-       if ( taskIndex == AliQAv1::kNULLTASKINDEX) { 
+  if ( taskIndex == AliQAv1::kNULLTASKINDEX) { 
                for (UInt_t task = 0; task < AliQAv1::kNTASKINDEX; task++) {
                        if ( fTasks.Contains(Form("%d", task)) ) {
         if (!fCycleSame)
@@ -1148,9 +1189,7 @@ TString AliQAManager::Run(const char * detectors, const AliQAv1::TASKINDEX_t tas
         return kFALSE ; 
       DoIt(taskIndex) ; 
   }            
-       
        return fDetectorsW ;
-
 }
 
 //_____________________________________________________________________________
@@ -1240,7 +1279,7 @@ void AliQAManager::RunOneEventInOneDetector(Int_t det, TTree * tree)
 }
 
 //_____________________________________________________________________________
-Bool_t AliQAManager::Save2OCDB(const Int_t runNumber, AliRecoParam::EventSpecie_t es, const char * year, const char * detectors) const
+Bool_t AliQAManager::Save2OCDB(const Int_t runNumber, AliRecoParam::EventSpecie_t es, const Char_t * year, const Char_t * detectors) const
 {
        // take the locasl QA data merge into a single file and save in OCDB 
        Bool_t rv = kTRUE ; 
@@ -1276,7 +1315,7 @@ Bool_t AliQAManager::Save2OCDB(const Int_t runNumber, AliRecoParam::EventSpecie_
 }
 
 //_____________________________________________________________________________
-Bool_t AliQAManager::SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const char * year, AliRecoParam::EventSpecie_t es) const
+Bool_t AliQAManager::SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const Char_t * year, AliRecoParam::EventSpecie_t es) const
 {
        // reads the TH1 from file and adds it to appropriate list before saving to OCDB
        Bool_t rv = kTRUE ;
index 90b6cfeacb51abcafd0c682bdd99ffdba5360a52..912b3a407434755ed29275510454e2de3ceb3913 100644 (file)
@@ -25,6 +25,7 @@
 #include "AliCDBManager.h"
 #include "AliRecoParam.h"
  
+class TCanvas ; 
 class AliESDEvent ; 
 class AliDetectorRecoParam ; 
 class AliESDEvent ; 
@@ -36,82 +37,87 @@ class AliCorrQADataMakerRec ;
 class AliQAManager : public AliCDBManager {
 private:
   AliQAManager() ; 
-       AliQAManager(const Char_t * mode, const Char_t * gAliceFilename = "galice.root") ; 
+       AliQAManager(Char_t * mode, const Char_t * gAliceFilename = "galice.root") ; 
        AliQAManager(const AliQAManager & qas) ; 
        AliQAManager & operator = (const AliQAManager & qas) ; 
 
 public:
        virtual ~AliQAManager() ; 
-       void        EndOfCycle(TObjArray * detArray=0x0) ; 
-  void        EndOfCycle(TString detectors) ; 
-       UInt_t      GetCurrentEvent() const { return fCurrentEvent ; }
-       TObjArray * GetFromOCDB(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, const char * year) const ; 
-  AliQAv1     * GetQA(UInt_t run, UInt_t evt) ; 
+       void             EndOfCycle(TObjArray * detArray=0x0) ; 
+  void             EndOfCycle(TString detectors) ; 
+       UInt_t           GetCurrentEvent() const { return fCurrentEvent ; }
+       TObjArray *      GetFromOCDB(AliQAv1::DETECTORINDEX_t det, AliQAv1::TASKINDEX_t task, const Char_t * year) const ; 
+  TCanvas **       GetImage(Char_t * detName) ;
+  const Char_t *   GetMode(){ return fMode.Data() ; }
+  AliQAv1     *    GetQA(UInt_t run, UInt_t evt) ; 
        AliQADataMaker * GetQADataMaker(const Int_t iDet) ; 
-       void        Increment() ;
-       void        InitQADataMaker(UInt_t run, TObjArray * detArray=0x0) ;
-       Bool_t      Merge(Int_t runNumber = -1) const ;  
-  void        MergeCustom() const ;
-  Bool_t      MergeXML(const char * collection, const char * subFile = 0, const char * outFile = 0) ; 
-  static      AliQAManager * QAManager(const Char_t * mode="", TMap *entryCache = NULL, Int_t run = -1) ;
-       void        Reset(const Bool_t sameCycle = kFALSE) ;  
-       TString     Run(const char * detectors, const AliQAv1::TASKINDEX_t taskIndex=AliQAv1::kNULLTASKINDEX, Bool_t const sameCycle = kFALSE, const char * fileName = NULL) ; 
-       TString     Run(const char * detectors, AliRawReader * rawReader, Bool_t const sameCycle = kFALSE) ; 
-       TString     Run(const char * detectors, const char * filename, Bool_t const sameCycle = kFALSE) ;
-       void        RunOneEvent(AliRawReader * rawReader) ; 
-       void        RunOneEventInOneDetector(Int_t det, TTree * tree) ; 
-       void        RunOneEvent(AliESDEvent *& esd)  ;
-       Bool_t      Save2OCDB(const Int_t runNumber, AliRecoParam::EventSpecie_t es, const char * year = "08", const char * detectors = "ALL") const ; 
-       void        SetActiveDetectors(TString aDet) { fDetectors = aDet ;  }
-       void        SetCycleLength(const AliQAv1::DETECTORINDEX_t det, const Int_t cycle) { fQACycles[det] = cycle ; }
-       void        SetWriteExpert(const AliQAv1::DETECTORINDEX_t det) { fQAWriteExpert[det] = kTRUE ; }
-       void        SetEventRange(UInt_t first, UInt_t last) { fFirstEvent = first ; fMaxEvents = last - first + 1 ; }    
-  void        SetEventSpecie(AliRecoParam::EventSpecie_t es) ; 
-       void        SetFirsEvent(UInt_t first) { fFirstEvent = first ; }      
-       void        SetMaxEvents(UInt_t max) { fMaxEvents = max ; }      
-       void        SetNewCycle() { fCycleSame = kTRUE ; }
-       void        SetRecoParam(const Int_t det, const AliDetectorRecoParam *par) ;
-       void        SetRunLoader(AliRunLoader * rl) { fRunLoader = rl ; }
-       void        SetTasks(TString tasks) { fTasks = tasks ; }
-  void        SetWriteExpert() ; 
+       void             Increment() ;
+       void             InitQADataMaker(UInt_t run, TObjArray * detArray=0x0) ;
+       Bool_t           Merge(Int_t runNumber = -1) const ;  
+  void             MergeCustom() const ;
+  Bool_t           MergeXML(const Char_t * collection, const Char_t * subFile = 0, const Char_t * outFile = 0) ; 
+  static           AliQAManager * QAManager(Char_t * mode = "", TMap *entryCache = NULL, Int_t run = -1) ;
+       void             Reset(const Bool_t sameCycle = kFALSE) ;  
+       TString          Run(const Char_t * detectors, const AliQAv1::TASKINDEX_t taskIndex=AliQAv1::kNULLTASKINDEX, Bool_t const sameCycle = kFALSE, const Char_t * fileName = NULL) ; 
+       TString          Run(const Char_t * detectors, AliRawReader * rawReader, Bool_t const sameCycle = kFALSE) ; 
+       TString          Run(const Char_t * detectors, const Char_t * filename, Bool_t const sameCycle = kFALSE) ;
+       void             RunOneEvent(AliRawReader * rawReader) ; 
+       void             RunOneEventInOneDetector(Int_t det, TTree * tree) ; 
+       void             RunOneEvent(AliESDEvent *& esd)  ;
+       Bool_t           Save2OCDB(const Int_t runNumber, AliRecoParam::EventSpecie_t es, const Char_t * year = "08", const Char_t * detectors = "ALL") const ; 
+       void             SetActiveDetectors(TString aDet) { fDetectors = aDet ;  }
+       void             SetCycleLength(const AliQAv1::DETECTORINDEX_t det, const Int_t cycle) { fQACycles[det] = cycle ; }
+       void             SetWriteExpert(const AliQAv1::DETECTORINDEX_t det) { fQAWriteExpert[det] = kTRUE ; }
+       void             SetEventRange(UInt_t first, UInt_t last) { fFirstEvent = first ; fMaxEvents = last - first + 1 ; }    
+  void             SetEventSpecie(AliRecoParam::EventSpecie_t es) ; 
+       void             SetFirsEvent(UInt_t first) { fFirstEvent = first ; }      
+       void             SetMaxEvents(UInt_t max) { fMaxEvents = max ; }      
+       void             SetNewCycle() { fCycleSame = kTRUE ; }
+  void             SetPrintImage(Bool_t opt = kTRUE) { fPrintImage = opt ; }
+       void             SetRecoParam(const Int_t det, const AliDetectorRecoParam *par) ;
+       void             SetRunLoader(AliRunLoader * rl) { fRunLoader = rl ; }
+       void             SetTasks(TString tasks) { fTasks = tasks ; }
+  void             SetWriteExpert() ; 
+
 private: 
-       Bool_t                    DoIt(const AliQAv1::TASKINDEX_t taskIndex) ;
-       AliLoader   * GetLoader(Int_t iDet) ; 
-       Int_t         GetQACycles(const Int_t iDet) const { return fQACycles[iDet] ; }
-       Bool_t                    InitQA(const AliQAv1::TASKINDEX_t taskIndex, const  char * fileName = NULL) ;
-       Bool_t        InitRunLoader() ; 
-       Bool_t        IsSelected(const char * detName)  ;
-       Bool_t        Finish(const AliQAv1::TASKINDEX_t taskIndex) ;
-       Bool_t        MergeData(const Int_t runNumber) const ;  
-       Bool_t        MergeResults(const Int_t runNumber) const ;  
-       Bool_t        SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const char * year, AliRecoParam::EventSpecie_t es) const ;  
+       Bool_t                  DoIt(const AliQAv1::TASKINDEX_t taskIndex) ;
+       AliLoader * GetLoader(Int_t iDet) ; 
+       Int_t       GetQACycles(const Int_t iDet) const { return fQACycles[iDet] ; }
+       Bool_t            InitQA(const AliQAv1::TASKINDEX_t taskIndex, const  Char_t * fileName = NULL) ;
+       Bool_t      InitRunLoader() ; 
+       Bool_t      IsSelected(const Char_t * detName)  ;
+       Bool_t      Finish(const AliQAv1::TASKINDEX_t taskIndex) ;
+       Bool_t      MergeData(const Int_t runNumber) const ;  
+       Bool_t      MergeResults(const Int_t runNumber) const ;  
+       Bool_t      SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const Char_t * year, AliRecoParam::EventSpecie_t es) const ;  
 
-       static AliQAManager* fgQAInstance; // AliQAManager instance
-       UInt_t                  fCurrentEvent ;                 //! event counter
-       Bool_t                  fCycleSame ;                    //! true if 2 consecutive data making for a same detector   
-       TString                 fDetectors ;                    //! list of active detectors 
-       TString                 fDetectorsW ;                   //! list of active detectors with QA implemented 
-       AliESDEvent *           fESD ;                          //! current ESD
-       TTree *                 fESDTree ;                      //! current ESD Tree
-       TString                 fGAliceFileName ;               //! name of the galice file
-       UInt_t                  fFirstEvent ;                   //! first event to process
-       Long64_t                fMaxEvents ;                    //! number of events to process
-       const Char_t *          fMode ;                         //! sim or rec
-       Long64_t                fNumberOfEvents ;               //! number of events in the run 
-  AliRecoParam            fRecoParam;                     //! container for the reco-param objects for detectors
-       UInt_t                  fRunNumber ;                    //! current run number
-       AliRawReader *          fRawReader ;                    //! current raw reader object 
-       Bool_t                  fRawReaderDelete ;              //! tells if the rawReader has been created by this
-       AliRunLoader *          fRunLoader ;                    //! current run loader object
-       TString                 fTasks ;                        //! list of QA tasks to be performed
-       static const UInt_t     fgkNDetectors = AliQAv1::kNDET ;  //! number of detectors    
-       AliLoader      *        fLoader[fgkNDetectors];         //! array of detectors loader
-       AliQADataMaker *        fQADataMaker[fgkNDetectors];    //! array of QA data maker objects
-       Int_t                   fQACycles[fgkNDetectors];       //! array of QA cycle length
-       Bool_t                  fQAWriteExpert[fgkNDetectors];  //! array of QA cycle length
-  AliRecoParam::EventSpecie_t fEventSpecie ;              //! type of event 
+       static AliQAManager*        fgQAInstance;                   // AliQAManager instance
+       UInt_t                      fCurrentEvent ;                 //! event counter
+       Bool_t                      fCycleSame ;                    //! true if 2 consecutive data making for a same detector   
+       TString                     fDetectors ;                    //! list of active detectors 
+       TString                     fDetectorsW ;                   //! list of active detectors with QA implemented 
+       AliESDEvent *               fESD ;                          //! current ESD
+       TTree *                     fESDTree ;                      //! current ESD Tree
+       TString                     fGAliceFileName ;               //! name of the galice file
+       UInt_t                      fFirstEvent ;                   //! first event to process
+       Long64_t                    fMaxEvents ;                    //! number of events to process
+       TString                     fMode ;                         //! sim or rec
+       Long64_t                    fNumberOfEvents ;               //! number of events in the run 
+  AliRecoParam                fRecoParam;                     //! container for the reco-param objects for detectors
+       UInt_t                      fRunNumber ;                    //! current run number
+       AliRawReader *              fRawReader ;                    //! current raw reader object 
+       Bool_t                      fRawReaderDelete ;              //! tells if the rawReader has been created by this
+       AliRunLoader *              fRunLoader ;                    //! current run loader object
+       TString                     fTasks ;                        //! list of QA tasks to be performed
+       static const UInt_t         fgkNDetectors = AliQAv1::kNDET ;  //! number of detectors    
+       AliLoader      *            fLoader[fgkNDetectors];         //! array of detectors loader
+       AliQADataMaker *            fQADataMaker[fgkNDetectors];    //! array of QA data maker objects
+       Int_t                       fQACycles[fgkNDetectors];       //! array of QA cycle length
+       Bool_t                      fQAWriteExpert[fgkNDetectors];  //! array of QA cycle length
+  AliRecoParam::EventSpecie_t fEventSpecie ;                  //! type of event 
+  Bool_t                      fPrintImage ;                    //! flag to print the images or not
     
-  ClassDef(AliQAManager, 0)      // class for running the QA makers
+  ClassDef(AliQAManager, 1)      // class for running the QA makers
 };
 
 #endif
index 1ae28d3c804f9f366d492595115d8dfb57dc3637..0d35e86bdfc75c0f7b2cc3d8f6161fea6de05980 100644 (file)
@@ -73,7 +73,10 @@ const TString AliQAv1::fgkExpert           = "Expert" ;
 const UInt_t  AliQAv1::fgkExpertBit        = 0x40000 ; 
 const UInt_t  AliQAv1::fgkQABit            = 0x80000 ; 
 const UInt_t  AliQAv1::fgkImageBit         = 0x100000 ; 
-const Int_t  AliQAv1::fgkQADebugLevel      = 99 ; 
+const Int_t   AliQAv1::fgkQADebugLevel     = 99 ; 
+const TString AliQAv1::fImageFileName      = "QAImage" ; 
+const TString AliQAv1::fImageFileFormat    = "eps" ; 
+
 //____________________________________________________________________________
 AliQAv1::AliQAv1() : 
   TNamed("", ""), 
index 3554276b4af4c172548db54af333cee345b7945c..08afbbcc840aa3d633dbbc1bdc0952527dfe4c11 100644 (file)
@@ -38,11 +38,11 @@ public:
   AliQAv1& operator = (const AliQAv1& qa) ;
   virtual ~AliQAv1();
   
-  static  AliQAv1 *        Instance() ;
-  static  AliQAv1 *        Instance(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es) ;
-  static  AliQAv1 *        Instance(const DETECTORINDEX_t det) ;
-  static  AliQAv1 *        Instance(const ALITASK_t tsk) ;
-  static  AliQAv1 *        Instance(const TASKINDEX_t tsk) ;
+  static  AliQAv1 *      Instance() ;
+  static  AliQAv1 *      Instance(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es) ;
+  static  AliQAv1 *      Instance(const DETECTORINDEX_t det) ;
+  static  AliQAv1 *      Instance(const ALITASK_t tsk) ;
+  static  AliQAv1 *      Instance(const TASKINDEX_t tsk) ;
   Bool_t                 CheckFatal() const ;
   static void            Close() ; 
   static const char *    GetAliTaskName(ALITASK_t tsk) ;
@@ -50,6 +50,8 @@ public:
   static const TString   GetExpert() { return fgkExpert ; }
   static       UInt_t    GetExpertBit() { return fgkExpertBit ; }
   static       UInt_t    GetImageBit()  { return fgkImageBit ; }
+  static const char *    GetImageFileName() { return fImageFileName.Data() ; }
+  static const char *    GetImageFileFormat() { return fImageFileFormat.Data() ; }
   static const TString   GetLabLocalFile() { return fgkLabLocalFile ; } 
   static const TString   GetLabLocalOCDB() { return fgkLabLocalOCDB ; } 
   static const TString   GetLabAliEnOCDB() { return fgkLabAliEnOCDB ; } 
@@ -152,6 +154,8 @@ private:
   static       TString fgRefDataDirName       ; //! name of Reference directory name in OCDB for data          
   static const TString fgkQARefOCDBDefault    ; //! default storage for QA in OCDB 
   Bool_t *             fEventSpecies          ; //[fNEventSpecies] list of event species encountered in a run
+  static const TString fImageFileName         ; //! name of the file that contains all the QA images
+  static const TString fImageFileFormat       ; //! format of the file that contains all the QA images
 
  ClassDef(AliQAv1,3)  //ALICE Quality Assurance Object
 };