Small correction for coding conventions
[u/mrichter/AliRoot.git] / STEER / AliQADataMakerRec.h
CommitLineData
04236e67 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 */
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
eaff8e3b 14x
15x
04236e67 16*/
17
18
19// --- ROOT system ---
20
21// --- Standard library ---
22
23// --- AliRoot header files ---
24#include "AliQADataMaker.h"
25
26class AliQADataMakerRec: public AliQADataMaker {
27
28public:
29
30 AliQADataMakerRec(const char * name="", const char * title="") ; // ctor
31 AliQADataMakerRec(const AliQADataMakerRec& qadm) ;
32 AliQADataMakerRec& operator = (const AliQADataMakerRec& qadm) ;
33 virtual ~AliQADataMakerRec() {;} // dtor
34
54194e95 35 virtual Int_t Add2DigitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
36 virtual Int_t Add2ESDsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fESDsQAList) ; }
37 virtual Int_t Add2HitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
38 virtual Int_t Add2RecPointsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fRecPointsQAList) ; }
39 virtual Int_t Add2RawsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fRawsQAList) ; }
40 virtual Int_t Add2SDigitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
eaff8e3b 41 virtual void Exec(AliQA::TASKINDEX task, TObject * data) ;
42 virtual void EndOfCycle(AliQA::TASKINDEX task) ;
04236e67 43 virtual TH1 * GetDigitsData(const Int_t /*index*/) { return NULL ; }
44 virtual TH1 * GetESDsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fESDsQAList, index)) ; }
45 virtual TH1 * GetHitsData(const Int_t /*index*/) { return NULL ; }
46 virtual TH1 * GetRecPointsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRecPointsQAList, index)) ; }
eaff8e3b 47 virtual TH1 * GetRawsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fRawsQAList, index)) ; }
04236e67 48 virtual TH1 * GetSDigitsData(const Int_t /*index*/) { return NULL ; }
eaff8e3b 49 virtual TObjArray * Init(AliQA::TASKINDEX task, Int_t run, Int_t cycles = -1) ;
50 virtual void Init(AliQA::TASKINDEX task, TObjArray * list, Int_t run, Int_t cycles = -1) ;
51 virtual void StartOfCycle(AliQA::TASKINDEX task, const Bool_t sameCycle = kFALSE) ;
04236e67 52
53protected:
54
55 virtual void EndOfDetectorCycle(AliQA::TASKINDEX, TObjArray * ) {AliInfo("To be implemented by detectors");}
56 virtual void InitDigits() {AliFatal("Call not valid") ; }
57 virtual void InitESDs() {AliInfo("To be implemented by detectors");}
58 virtual void InitHits() {AliFatal("Call not valid") ; }
59 //virtual void InitRecParticles() {AliInfo("To be implemented by detectors");}
60 virtual void InitRecPoints() {AliInfo("To be implemented by detectors");}
61 virtual void InitRaws() {AliInfo("To be implemented by detectors");}
62 virtual void InitSDigits() {AliFatal("Call not valid") ; }
63 //virtual void InitTrackSegments() {AliInfo("To ne implemented by detectors");}
64 virtual void MakeESDs(AliESDEvent * ) {AliInfo("To be implemented by detectors");}
65 virtual void MakeHits(TClonesArray * ) {AliFatal("Call not valid") ; }
66 virtual void MakeHits(TTree * ) {AliFatal("Call not valid") ; }
67 virtual void MakeDigits(TClonesArray * ) {AliFatal("Call not valid") ; }
68 virtual void MakeDigits(TTree * ) {AliFatal("Call not valid") ; }
69 //virtual void MakeRecParticles(TClonesArray * ) {AliInfo("To be implemented by detectors");}
70 virtual void MakeRaws(AliRawReader *) {AliInfo("To be implemented by detectors");}
71 virtual void MakeRecPoints(TTree * ) {AliInfo("To be implemented by detectors");}
72 virtual void MakeSDigits(TClonesArray * ) {AliFatal("Call not valid") ; }
73 virtual void MakeSDigits(TTree * ) {AliFatal("Call not valid") ; }
74 virtual void StartOfDetectorCycle() {AliInfo("To be implemented by detectors");}
75
76 TObjArray * fESDsQAList ; //! list of the ESDs QA data objects
77 TObjArray * fRawsQAList ; //! list of the raws QA data objects
78 TObjArray * fRecPointsQAList ; //! list of the RecPoints QA data objects
79
80 ClassDef(AliQADataMakerRec,1) // description
81
82};
83
84#endif // AliQADataMakerRec_H