1 #ifndef ALIQADATAMAKERREC_H
2 #define ALIQADATAMAKERREC_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
11 // Produces the data needed to calculate the quality assurance.
12 // All data must be mergeable objects.
13 // Y. Schutz CERN July 2007
16 // --- ROOT system ---
18 // --- Standard library ---
20 // --- AliRoot header files ---
21 #include "AliQADataMaker.h"
23 class AliQADataMakerRec: public AliQADataMaker {
27 AliQADataMakerRec(const char * name="", const char * title="") ; // ctor
28 AliQADataMakerRec(const AliQADataMakerRec& qadm) ;
29 AliQADataMakerRec& operator = (const AliQADataMakerRec& qadm) ;
30 virtual ~AliQADataMakerRec() {;} // dtor
32 virtual Int_t Add2DigitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
33 virtual Int_t Add2ESDsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fESDsQAList) ; }
34 virtual Int_t Add2HitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
35 virtual Int_t Add2RecPointsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fRecPointsQAList) ; }
36 virtual Int_t Add2RawsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fRawsQAList) ; }
37 virtual Int_t Add2SDigitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
38 virtual void Exec(AliQA::TASKINDEX task, TObject * data) ;
39 virtual void EndOfCycle(AliQA::TASKINDEX task) ;
40 virtual TH1 * GetDigitsData(const Int_t /*index*/) { return NULL ; }
41 virtual TH1 * GetESDsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fESDsQAList, index)) ; }
42 virtual TH1 * GetHitsData(const Int_t /*index*/) { return NULL ; }
43 virtual TH1 * GetRecPointsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRecPointsQAList, index)) ; }
44 virtual TH1 * GetRawsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRawsQAList, index)) ; }
45 virtual TH1 * GetSDigitsData(const Int_t /*index*/) { return NULL ; }
46 virtual TObjArray * Init(AliQA::TASKINDEX task, Int_t run, Int_t cycles = -1) ;
47 virtual void Init(AliQA::TASKINDEX task, TObjArray * list, Int_t run, Int_t cycles = -1) ;
48 virtual void StartOfCycle(AliQA::TASKINDEX task, const Bool_t sameCycle = kFALSE) ;
52 virtual void EndOfDetectorCycle(AliQA::TASKINDEX, TObjArray * ) {AliInfo("To be implemented by detectors");}
53 virtual void InitDigits() {AliFatal("Call not valid") ; }
54 virtual void InitESDs() {AliInfo("To be implemented by detectors");}
55 virtual void InitHits() {AliFatal("Call not valid") ; }
56 //virtual void InitRecParticles() {AliInfo("To be implemented by detectors");}
57 virtual void InitRecPoints() {AliInfo("To be implemented by detectors");}
58 virtual void InitRaws() {AliInfo("To be implemented by detectors");}
59 virtual void InitSDigits() {AliFatal("Call not valid") ; }
60 //virtual void InitTrackSegments() {AliInfo("To ne implemented by detectors");}
61 virtual void MakeESDs(AliESDEvent * ) {AliInfo("To be implemented by detectors");}
62 virtual void MakeHits(TClonesArray * ) {AliFatal("Call not valid") ; }
63 virtual void MakeHits(TTree * ) {AliFatal("Call not valid") ; }
64 virtual void MakeDigits(TClonesArray * ) {AliFatal("Call not valid") ; }
65 virtual void MakeDigits(TTree * ) {AliFatal("Call not valid") ; }
66 //virtual void MakeRecParticles(TClonesArray * ) {AliInfo("To be implemented by detectors");}
67 virtual void MakeRaws(AliRawReader *) {AliInfo("To be implemented by detectors");}
68 virtual void MakeRecPoints(TTree * ) {AliInfo("To be implemented by detectors");}
69 virtual void MakeSDigits(TClonesArray * ) {AliFatal("Call not valid") ; }
70 virtual void MakeSDigits(TTree * ) {AliFatal("Call not valid") ; }
71 virtual void StartOfDetectorCycle() {AliInfo("To be implemented by detectors");}
73 TObjArray * fESDsQAList ; //! list of the ESDs QA data objects
74 TObjArray * fRawsQAList ; //! list of the raws QA data objects
75 TObjArray * fRecPointsQAList ; //! list of the RecPoints QA data objects
77 ClassDef(AliQADataMakerRec,1) // description
81 #endif // ALIQADATAMAKERREC_H