]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQADataMakerSteer.h
Base class (AliMisaligner); each detector will provide its derived class,
[u/mrichter/AliRoot.git] / STEER / AliQADataMakerSteer.h
index 46c3b31ffdf45a49aeca46a00309dfa005ee9957..ba046239971f5cd0ecb6d3652b9da6a3ff5e7442 100644 (file)
@@ -44,9 +44,10 @@ public:
   void        EndOfCycle(TString detectors) ; 
        UInt_t      GetCurrentEvent() const { return fCurrentEvent ; }
        TObjArray * GetFromOCDB(AliQA::DETECTORINDEX_t det, AliQA::TASKINDEX_t task, const char * year) const ; 
+  AliQA     * GetQA(UInt_t run, UInt_t evt) ; 
        AliQADataMaker * GetQADataMaker(const Int_t iDet) ; 
        void        Increment() ;
-       void        InitQADataMaker(UInt_t run, const AliRecoParam & par, TObjArray * detArray=0x0) ;
+       void        InitQADataMaker(UInt_t run, TObjArray * detArray=0x0) ;
        Bool_t      Merge(const Int_t runNumber = -1 ) const ;  
        void        Reset(const Bool_t sameCycle = kFALSE) ;  
        TString     Run(const char * detectors, const AliQA::TASKINDEX_t taskIndex=AliQA::kNULLTASKINDEX, Bool_t const sameCycle = kFALSE, const char * fileName = NULL) ; 
@@ -55,29 +56,30 @@ public:
        void        RunOneEvent(AliRawReader * rawReader) ; 
        void        RunOneEventInOneDetector(Int_t det, TTree * tree) ; 
        void        RunOneEvent(AliESDEvent *& esd)  ;
-       Bool_t      Save2OCDB(const Int_t runNumber, const char * year = "08", const char * detectors = "ALL") const ; 
+       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 AliQA::DETECTORINDEX_t det, const Int_t cycle) { fQACycles[det] = cycle ; }
        void        SetWriteExpert(const AliQA::DETECTORINDEX_t det) { fQAWriteExpert[det] = kTRUE ; }
-       void        SetEventRange(UInt_t first, UInt_t last) { fFirstEvent = first ; fMaxEvents = last - first + 1 ; }      
+       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 char* detector, AliDetectorRecoParam *par) ;
+       void        SetRecoParam(const Int_t det, const AliDetectorRecoParam *par) ;
        void        SetRunLoader(AliRunLoader * rl) { fRunLoader = rl ; }
        void        SetTasks(TString tasks) { fTasks = tasks ; }
 
 private: 
        Bool_t                    DoIt(const AliQA::TASKINDEX_t taskIndex) ;
        AliLoader   * GetLoader(Int_t iDet) ; 
-       Int_t   GetQACycles(const Int_t iDet) const { return fQACycles[iDet] ; }
+       Int_t         GetQACycles(const Int_t iDet) const { return fQACycles[iDet] ; }
        Bool_t                    Init(const AliQA::TASKINDEX_t taskIndex, const  char * fileName = NULL) ;
        Bool_t        InitRunLoader() ; 
        Bool_t        IsSelected(const char * detName)  ;
        Bool_t        Finish(const AliQA::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) const ;  
+       Bool_t        SaveIt2OCDB(const Int_t runNumber, TFile * inputFile, const char * year, AliRecoParam::EventSpecie_t es) const ;  
 
  
        UInt_t                  fCurrentEvent ;                 //! event counter
@@ -102,7 +104,7 @@ private:
        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 ;              //! event specie, see AliRecoParam::EventSpecie_t 
   ClassDef(AliQADataMakerSteer, 0)      // class for running the QA makers
 };