]>
Commit | Line | Data |
---|---|---|
202374b1 | 1 | #ifndef ALIQADATAMAKERREC_H |
2 | #define ALIQADATAMAKERREC_H | |
04236e67 | 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 | ||
202374b1 | 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 | // | |
04236e67 | 15 | |
16 | // --- ROOT system --- | |
57acd2d2 | 17 | class TNtupleD ; |
04236e67 | 18 | // --- Standard library --- |
19 | ||
20 | // --- AliRoot header files --- | |
fb6e511e | 21 | class AliDetectorRecoParam ; |
04236e67 | 22 | #include "AliQADataMaker.h" |
4e25ac79 | 23 | #include "AliQAv1.h" |
04236e67 | 24 | |
25 | class AliQADataMakerRec: public AliQADataMaker { | |
26 | ||
27 | public: | |
28 | ||
29 | AliQADataMakerRec(const char * name="", const char * title="") ; // ctor | |
30 | AliQADataMakerRec(const AliQADataMakerRec& qadm) ; | |
31 | AliQADataMakerRec& operator = (const AliQADataMakerRec& qadm) ; | |
63c6f8ae | 32 | virtual ~AliQADataMakerRec() ; // dtor |
04236e67 | 33 | |
7d297381 | 34 | virtual Int_t Add2DigitsList(TH1 * /*hist*/, const Int_t /*index*/, const Bool_t /*expert = kFALSE*/, const Bool_t /*image = kFALSE*/) { return -1 ; } |
35 | virtual Int_t Add2ESDsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE) { return Add2List(hist, index, fESDsQAList, expert, image) ; } | |
36 | virtual Int_t Add2HitsList(TH1 * /*hist*/, const Int_t /*index*/, const Bool_t /*expert = kFALSE*/, const Bool_t /*image = kFALSE*/) { return -1 ; } | |
37 | virtual Int_t Add2RecPointsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE) { return Add2List(hist, index, fRecPointsQAList, expert, image) ; } | |
02392740 | 38 | virtual Int_t Add2RawsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE, const Bool_t saveForCorr = kFALSE) { |
39 | return Add2List(hist, index, fRawsQAList, expert, image, saveForCorr) ; } | |
7d297381 | 40 | virtual Int_t Add2SDigitsList(TH1 * /*hist*/, const Int_t /*index*/, const Bool_t /*expert = kFALSE*/, const Bool_t /*image = kFALSE*/) { return -1 ; } |
4e25ac79 | 41 | virtual void Exec(AliQAv1::TASKINDEX_t task, TObject * data) ; |
930e6e3e | 42 | virtual void EndOfCycle() ; |
4e25ac79 | 43 | virtual void EndOfCycle(AliQAv1::TASKINDEX_t task) ; |
44 | virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** ) {AliInfo("To be implemented by detectors");} | |
57acd2d2 | 45 | virtual TH1 * GetDigitsData(const Int_t /*index*/) { return NULL ; } |
46 | virtual TH1 * GetESDsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fESDsQAList, index)) ; } | |
47 | virtual TH1 * GetHitsData(const Int_t /*index*/) { return NULL ; } | |
48 | virtual TH1 * GetRecPointsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRecPointsQAList, index)) ; } | |
49 | virtual TH1 * GetRawsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRawsQAList, index)) ; } | |
04236e67 | 50 | virtual TH1 * GetSDigitsData(const Int_t /*index*/) { return NULL ; } |
7d297381 | 51 | virtual void MakeImage(AliQAv1::TASKINDEX_t task) ; |
4e25ac79 | 52 | virtual TObjArray** Init(AliQAv1::TASKINDEX_t task, Int_t cycles = -1) ; |
53 | virtual void Init(AliQAv1::TASKINDEX_t task, TObjArray ** list, Int_t run, Int_t cycles = -1) ; | |
930e6e3e | 54 | virtual void StartOfCycle(Int_t run = -1) ; |
4e25ac79 | 55 | virtual void StartOfCycle(AliQAv1::TASKINDEX_t task, Int_t run, const Bool_t sameCycle = kFALSE) ; |
04236e67 | 56 | |
a2b64fbd | 57 | virtual void SetRecoParam(const AliDetectorRecoParam *param) { fRecoParam = param; } |
b8bd1ab8 | 58 | |
04236e67 | 59 | protected: |
60 | ||
edf10d5d | 61 | virtual void InitDigits() {AliWarning("Call not valid") ; } |
04236e67 | 62 | virtual void InitESDs() {AliInfo("To be implemented by detectors");} |
fb6e511e | 63 | virtual void InitRecoParams() ; |
edf10d5d | 64 | virtual void InitHits() {AliWarning("Call not valid") ; } |
04236e67 | 65 | //virtual void InitRecParticles() {AliInfo("To be implemented by detectors");} |
66 | virtual void InitRecPoints() {AliInfo("To be implemented by detectors");} | |
67 | virtual void InitRaws() {AliInfo("To be implemented by detectors");} | |
edf10d5d | 68 | virtual void InitSDigits() {AliWarning("Call not valid") ; } |
04236e67 | 69 | //virtual void InitTrackSegments() {AliInfo("To ne implemented by detectors");} |
70 | virtual void MakeESDs(AliESDEvent * ) {AliInfo("To be implemented by detectors");} | |
edf10d5d | 71 | virtual void MakeHits(TClonesArray * ) {AliWarning("Call not valid") ; } |
72 | virtual void MakeHits(TTree * ) {AliWarning("Call not valid") ; } | |
73 | virtual void MakeDigits(TClonesArray * ) {AliWarning("Call not valid") ; } | |
74 | virtual void MakeDigits(TTree * ) {AliWarning("Call not valid") ; } | |
04236e67 | 75 | //virtual void MakeRecParticles(TClonesArray * ) {AliInfo("To be implemented by detectors");} |
76 | virtual void MakeRaws(AliRawReader *) {AliInfo("To be implemented by detectors");} | |
77 | virtual void MakeRecPoints(TTree * ) {AliInfo("To be implemented by detectors");} | |
edf10d5d | 78 | virtual void MakeSDigits(TClonesArray * ) {AliWarning("Call not valid") ; } |
79 | virtual void MakeSDigits(TTree * ) {AliWarning("Call not valid") ; } | |
04236e67 | 80 | virtual void StartOfDetectorCycle() {AliInfo("To be implemented by detectors");} |
81 | ||
57acd2d2 | 82 | TObjArray * * fESDsQAList ; //! list of the ESDs QA data objects |
83 | TObjArray * * fRawsQAList ; //! list of the raws QA data objects | |
84 | TObjArray * * fRecPointsQAList ; //! list of the RecPoints QA data objects | |
85 | TNtupleD * * fCorrNt ; //! This is used by Corr only to hold its Ntuple. | |
a2b64fbd | 86 | const AliDetectorRecoParam *fRecoParam; //! const pointer to the reco parameters to be used in the reco QA |
04236e67 | 87 | |
b8bd1ab8 | 88 | ClassDef(AliQADataMakerRec,2) // description |
04236e67 | 89 | |
90 | }; | |
91 | ||
202374b1 | 92 | #endif // ALIQADATAMAKERREC_H |