Compilation warnings
[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:
04236e67 37
38 AliQADataMaker(const char * name="", const char * title="") ; // ctor
39 AliQADataMaker(const AliQADataMaker& qadm) ;
609d9712 40 AliQADataMaker& operator = (const AliQADataMaker& /*qadm*/) {;}
04236e67 41 virtual ~AliQADataMaker() {;} // dtor
421ab0fb 42
04236e67 43 virtual const Int_t Add2DigitsList(TH1 * hist, const Int_t index) = 0 ;
44 virtual const Int_t Add2ESDsList(TH1 * hist, const Int_t index) = 0 ;
45 virtual const Int_t Add2HitsList(TH1 * hist, const Int_t index) = 0 ;
46 virtual const Int_t Add2RecPointsList(TH1 * hist, const Int_t index) = 0 ;
47 virtual const Int_t Add2RawsList(TH1 * hist, const Int_t index) = 0 ;
48 virtual const Int_t Add2SDigitsList(TH1 * hist, const Int_t index) = 0 ;
49 virtual void Exec(AliQA::TASKINDEX, TObject * data) = 0 ;
50 virtual void EndOfCycle(AliQA::TASKINDEX) = 0 ;
51 void Finish() const ;
52 virtual TH1 * GetDigitsData(const Int_t index) = 0 ;
53 virtual TH1 * GetESDsData(const Int_t index) = 0 ;
54 virtual TH1 * GetHitsData(const Int_t index) = 0 ;
55 virtual TH1 * GetRecPointsData(const Int_t index) = 0 ;
56 virtual TH1 * GetRawsData(const Int_t index) = 0 ;
57 virtual TH1 * GetSDigitsData(const Int_t index) = 0 ;
58 const char * GetDetectorDirName() { return fDetectorDirName.Data() ; }
59 const Int_t Increment() { return ++fCycleCounter ; }
60 virtual TObjArray * Init(AliQA::TASKINDEX, Int_t run, Int_t cycles = -1) = 0 ;
61 virtual void Init(AliQA::TASKINDEX, TObjArray * list, Int_t run, Int_t cycles = -1) = 0 ;
62 const Bool_t IsCycleDone() const { return fCycleCounter > fCycle ? kTRUE : kFALSE ; }
609d9712 63 void Reset(const Bool_t sameCycle = kTRUE) ;
04236e67 64 void SetCycle(Int_t nevts) { fCycle = nevts ; }
65 virtual void StartOfCycle(AliQA::TASKINDEX, const Bool_t sameCycle = kFALSE) = 0 ;
6c18591a 66
421ab0fb 67protected:
68
04236e67 69 Int_t Add2List(TH1 * hist, const Int_t index, TObjArray * list) ;
70 virtual void EndOfDetectorCycle(AliQA::TASKINDEX, TObjArray * ) = 0 ;
71 TObject * GetData(TObjArray * list, const Int_t index) ;
72 virtual void InitDigits() = 0 ;
73 virtual void InitESDs() = 0 ;
74 virtual void InitHits() = 0 ;
75 //virtual void InitRecParticles() = 0 ;
76 virtual void InitRecPoints() = 0 ;
77 virtual void InitRaws() = 0 ;
78 virtual void InitSDigits() = 0 ;
79 //virtual void InitTrackSegments() = 0 ;
80 virtual void MakeESDs(AliESDEvent * ) = 0 ;
81 virtual void MakeHits(TClonesArray * ) = 0 ;
82 virtual void MakeHits(TTree * ) = 0 ;
83 virtual void MakeDigits(TClonesArray * ) = 0 ;
84 virtual void MakeDigits(TTree * ) = 0 ;
85 //virtual void MakeRecParticles(TClonesArray * ) = 0 ;
86 virtual void MakeRaws(AliRawReader *) = 0 ;
87 virtual void MakeRecPoints(TTree * ) = 0 ;
88 virtual void MakeSDigits(TClonesArray * ) = 0 ;
89 virtual void MakeSDigits(TTree * ) = 0 ;
90 //virtual void MakeTrackSegments(TTree * ) = 0 ;
91 void ResetCycle() { fCurrentCycle++ ; fCycleCounter = 0 ; }
92 virtual void StartOfDetectorCycle() = 0 ;
93
94 TFile * fOutput ; //! output root file
95 TDirectory * fDetectorDir ; //! directory for the given detector in the file
96 TString fDetectorDirName ; //! detector directory name in the quality assurance data file
97 Int_t fCurrentCycle ; //! current cycle number
98 Int_t fCycle ; //! length (# events) of the QA data acquisition cycle
99 Int_t fCycleCounter ; //! cycle counter
100 Int_t fRun ; //! run number
a4976ef3 101
2e42b4d4 102 ClassDef(AliQADataMaker,1) // description
421ab0fb 103
104};
105
2e42b4d4 106#endif // AliQADataMaker_H