Bug corrected.
[u/mrichter/AliRoot.git] / STEER / AliQADataMakerSim.h
CommitLineData
54194e95 1#ifndef AliQADataMakerSim_H
2#define AliQADataMakerSim_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
54194e95 9// Base Class:
10// Produces the data needed to calculate the quality assurance.
11// All data must be mergeable objects.
12// Y. Schutz CERN July 2007
04236e67 13
14
15// --- ROOT system ---
16
17// --- Standard library ---
18
19// --- AliRoot header files ---
20#include "AliQADataMaker.h"
21
22class AliQADataMakerSim: public AliQADataMaker {
23
24public:
25
26 AliQADataMakerSim(const char * name="", const char * title="") ; // ctor
27 AliQADataMakerSim(const AliQADataMakerSim& qadm) ;
28 AliQADataMakerSim& operator = (const AliQADataMakerSim& qadm) ;
63c6f8ae 29 virtual ~AliQADataMakerSim() ; // dtor
04236e67 30
44ed7a66 31 virtual Int_t Add2DigitsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE)
32 { return Add2List(hist, index, fDigitsQAList, expert, image) ; }
33 virtual Int_t Add2ESDsList(TH1 * /*hist*/, const Int_t /*index*/, const Bool_t /*expert = kFALSE*/, const Bool_t /*image = kFALSE*/)
eca4fa66 34 { return -1 ; }
44ed7a66 35 virtual Int_t Add2HitsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE)
eca4fa66 36 { return Add2List(hist, index, fHitsQAList, expert, image) ; }
44ed7a66 37 virtual Int_t Add2RecPointsList(TH1 * /*hist*/, const Int_t /*index*/, const Bool_t /*expert = kFALSE*/, const Bool_t /*image = kFALSE*/)
38 { return -1 ; }
eca4fa66 39 virtual Int_t Add2RawsList(TH1 * /*hist*/, const Int_t /*index*/, const Bool_t /*expert = kFALSE*/, const Bool_t /*saveForCorr = kFALSE*/, const Bool_t /*image = kFALSE*/)
44ed7a66 40 { return -1 ; }
eca4fa66 41 virtual Int_t Add2SDigitsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE)
44ed7a66 42 { return Add2List(hist, index, fSDigitsQAList, expert, image) ; }
eca4fa66 43
44 virtual void Exec(AliQAv1::TASKINDEX_t task, TObject * data) ;
930e6e3e 45 virtual void EndOfCycle() ;
4e25ac79 46 virtual void EndOfCycle(AliQAv1::TASKINDEX_t task) ;
47 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** ) {AliInfo("To be implemented by detectors");}
04236e67 48 virtual TH1 * GetDigitsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fDigitsQAList, index)) ; }
49 virtual TH1 * GetESDsData(const Int_t /*index*/) { return NULL ; }
50 virtual TH1 * GetHitsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fHitsQAList, index)) ; }
51 virtual TH1 * GetRecPointsData(const Int_t /*index*/) { return NULL ; }
52 virtual TH1 * GetRawsData(const Int_t /*index*/) { return NULL ; }
53 virtual TH1 * GetSDigitsData(const Int_t index) { return dynamic_cast<TH1 *>(GetData(fSDigitsQAList, index)) ; }
4e25ac79 54 virtual TObjArray** Init(AliQAv1::TASKINDEX_t task, Int_t cycles = -1) ;
55 virtual void Init(AliQAv1::TASKINDEX_t task, TObjArray ** list, Int_t run, Int_t cycles = -1) ;
6252ceeb 56 virtual void InitRaws() {AliWarning("Call not valid") ; }
9ae03649 57 virtual void InitRecPoints() {AliWarning("Call not valid") ; }
9ac91920 58 virtual void ResetDetector(AliQAv1::TASKINDEX_t task) ;
930e6e3e 59 virtual void StartOfCycle(Int_t run = -1) ;
4e25ac79 60 virtual void StartOfCycle(AliQAv1::TASKINDEX_t task, Int_t run, const Bool_t sameCycle = kFALSE) ;
04236e67 61
62protected:
63
04236e67 64 virtual void InitDigits() {AliInfo("To be implemented by detectors");}
edf10d5d 65 virtual void InitESDs() {AliWarning("Call not valid") ; }
04236e67 66 virtual void InitHits() {AliInfo("To be implemented by detectors");}
04236e67 67 virtual void InitSDigits() {AliInfo("To be implemented by detectors");}
edf10d5d 68 virtual void MakeESDs(AliESDEvent * ) {AliWarning("Call not valid") ; }
6252ceeb 69 virtual void MakeHits() {AliInfo("To be implemented by detectors");}
04236e67 70 virtual void MakeHits(TTree * ) {AliInfo("To be implemented by detectors");}
6252ceeb 71 virtual void MakeDigits() {AliInfo("To be implemented by detectors");}
04236e67 72 virtual void MakeDigits(TTree * ) {AliInfo("To be implemented by detectors");}
edf10d5d 73 virtual void MakeRaws(AliRawReader *) {AliWarning("Call not valid") ; }
74 virtual void MakeRecPoints(TTree * ) {AliWarning("Call not valid") ; }
6252ceeb 75 virtual void MakeSDigits() {AliInfo("To be implemented by detectors");}
04236e67 76 virtual void MakeSDigits(TTree * ) {AliInfo("To be implemented by detectors");}
77 virtual void StartOfDetectorCycle() {AliInfo("To be implemented by detectors");}
78
eca4fa66 79 TObjArray * * fDigitsQAList ; //! list of the digits QA data objects
80 TObjArray * * fHitsQAList ; //! list of the hits QA data objects
81 TObjArray * * fSDigitsQAList ; //! list of the sdigits QA data objects
6252ceeb 82 TClonesArray * fHitsArray ; //! array to hold the hits
83 TClonesArray * fSDigitsArray ; //! array to hold the digits
84
eca4fa66 85
6252ceeb 86 ClassDef(AliQADataMakerSim,2) // description
04236e67 87
88};
89
90#endif // AliQADataMakerSim_H
eaff8e3b 91