]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliQADataMaker.h
removing T00 DPs for FDR
[u/mrichter/AliRoot.git] / STEER / AliQADataMaker.h
CommitLineData
2e42b4d4 1#ifndef ALIQADATAMAKER_H
2#define ALIQADATAMAKER_H
421ab0fb 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id$ */
8
9/*
10 Base Class:
11 Produces the data needed to calculate the quality assurance.
12 All data must be mergeable objects.
13 Y. Schutz CERN July 2007
14*/
15
16
17// --- ROOT system ---
6c18591a 18#include <TH1.h>
4edbc5bc 19#include <TObjArray.h>
421ab0fb 20#include <TNamed.h>
4edbc5bc 21class TClonesArray;
7079c8d7 22class TDirectory;
4edbc5bc 23class TFile;
d76c31f4 24class TObject;
25class TTree;
26class AliESDEvent;
d5cf81bd 27class AliRawReader;
a5fa6165 28
421ab0fb 29// --- Standard library ---
30
31// --- AliRoot header files ---
2e42b4d4 32#include "AliQA.h"
421ab0fb 33
2e42b4d4 34class AliQADataMaker: public TNamed {
421ab0fb 35
36public:
37
2e42b4d4 38 AliQADataMaker(const char * name="", const char * title="") ; // ctor
39 AliQADataMaker(const AliQADataMaker& qadm) ;
40 AliQADataMaker& operator = (const AliQADataMaker& qadm) ;
312e6f8d 41 virtual ~AliQADataMaker() {;} // dtor
421ab0fb 42
d62f9368 43 const Int_t Add2DigitsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fDigitsQAList) ; }
44 const Int_t Add2ESDsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fESDsQAList) ; }
45 const Int_t Add2HitsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fHitsQAList) ; }
46 const Int_t Add2RecPointsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fRecPointsQAList) ; }
47 const Int_t Add2RawsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fRawsQAList) ; }
48 const Int_t Add2SDigitsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fSDigitsQAList) ; }
312e6f8d 49 virtual void Exec(AliQA::TASKINDEX, TObject * data) ;
50 void EndOfCycle(AliQA::TASKINDEX) ;
c65c502a 51 void Finish() const ;
d62f9368 52 TH1 * GetDigitsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fDigitsQAList, index)) ; }
53 TH1 * GetESDsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fESDsQAList, index)) ; }
54 TH1 * GetHitsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fHitsQAList, index)) ; }
55 TH1 * GetRecPointsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRecPointsQAList, index)) ; }
56 TH1 * GetRawsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRawsQAList, index)) ; }
57 TH1 * GetSDigitsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fSDigitsQAList, index)) ; }
312e6f8d 58 const char * GetDetectorDirName() { return fDetectorDirName.Data() ; }
59 const Int_t Increment() { return ++fCycleCounter ; }
4edbc5bc 60 TObjArray * Init(AliQA::TASKINDEX, Int_t run, Int_t cycles = -1) ;
61 void Init(AliQA::TASKINDEX, TObjArray * list, Int_t run, Int_t cycles = -1) ;
312e6f8d 62 const Bool_t IsCycleDone() const { return fCycleCounter > fCycle ? kTRUE : kFALSE ; }
c65c502a 63 void Reset() ;
5b188f2f 64 void SetCycle(Int_t nevts) { fCycle = nevts ; }
c65c502a 65 void StartOfCycle(AliQA::TASKINDEX, const Bool_t sameCycle = kFALSE) ;
6c18591a 66
421ab0fb 67protected:
68
4edbc5bc 69 Int_t Add2List(TH1 * hist, const Int_t index, TObjArray * list) ;
70 virtual void EndOfDetectorCycle(AliQA::TASKINDEX, TObjArray * ) {AliInfo("To be implemented by detectors");}
71 TObject * GetData(TObjArray * list, const Int_t index) { return list->At(index) ; }
5b188f2f 72 virtual void InitDigits() {AliInfo("To be implemented by detectors");}
73 virtual void InitESDs() {AliInfo("To be implemented by detectors");}
74 virtual void InitHits() {AliInfo("To be implemented by detectors");}
75 //virtual void InitRecParticles() {AliInfo("To be implemented by detectors");}
76 virtual void InitRecPoints() {AliInfo("To be implemented by detectors");}
77 virtual void InitRaws() {AliInfo("To be implemented by detectors");}
78 virtual void InitSDigits() {AliInfo("To be implemented by detectors");}
6c18591a 79 //virtual void InitTrackSegments() {AliInfo("To ne implemented by detectors");}
5b188f2f 80 virtual void MakeESDs(AliESDEvent * ) {AliInfo("To be implemented by detectors");}
d5cf81bd 81 virtual void MakeHits(TClonesArray * ) {AliInfo("To be implemented by detectors");}
312e6f8d 82 virtual void MakeHits(TTree * ) {AliInfo("To be implemented by detectors");}
d5cf81bd 83 virtual void MakeDigits(TClonesArray * ) {AliInfo("To be implemented by detectors");}
312e6f8d 84 virtual void MakeDigits(TTree * ) {AliInfo("To be implemented by detectors");}
5b188f2f 85 // virtual void MakeRecParticles(TClonesArray * ) {AliInfo("To be implemented by detectors");}
d5cf81bd 86 virtual void MakeRaws(AliRawReader *) {AliInfo("To be implemented by detectors");}
5b188f2f 87 virtual void MakeRecPoints(TTree * ) {AliInfo("To be implemented by detectors");}
d5cf81bd 88 virtual void MakeSDigits(TClonesArray * ) {AliInfo("To be implemented by detectors");}
312e6f8d 89 virtual void MakeSDigits(TTree * ) {AliInfo("To be implemented by detectors");}
5b188f2f 90 //virtual void MakeTrackSegments(TTree * ) {AliInfo("To be implemented by detectors");}
d62f9368 91 void ResetCycle() { fCurrentCycle++ ; fCycleCounter = 0 ; }
5b188f2f 92 virtual void StartOfDetectorCycle() {AliInfo("To be implemented by detectors");}
421ab0fb 93
6c18591a 94 TFile * fOutput ; //! output root file
95 TDirectory * fDetectorDir ; //! directory for the given detector in the file
312e6f8d 96 TString fDetectorDirName ; //! detector directory name in the quality assurance data file
4edbc5bc 97 TObjArray * fDigitsQAList ; //! list of the digits QA data objects
98 TObjArray * fESDsQAList ; //! list of the ESDs QA data objects
99 TObjArray * fHitsQAList ; //! list of the hits QA data objects
100 TObjArray * fRawsQAList ; //! list of the raws QA data objects
101 TObjArray * fRecPointsQAList ; //! list of the recpoints QA data objects
102 TObjArray * fSDigitsQAList ; //! list of the sdigits QA data objects
5b188f2f 103 Int_t fCurrentCycle ; //! current cycle number
104 Int_t fCycle ; //! length (# events) of the QA data acquisition cycle
105 Int_t fCycleCounter ; //! cycle counter
106 Int_t fRun ; //! run number
a4976ef3 107
2e42b4d4 108 ClassDef(AliQADataMaker,1) // description
421ab0fb 109
110};
111
2e42b4d4 112#endif // AliQADataMaker_H