]>
Commit | Line | Data |
---|---|---|
ece56eb9 | 1 | #ifndef ALIMUONVQADATAMAKERREC_H |
2 | #define ALIMUONVQADATAMAKERREC_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
9 | /// \ingroup rec | |
10 | /// \class AliMUONVQADataMakerRec | |
11 | /// \brief Interface for a MUON QADataMakerRec | |
12 | /// | |
c442ee61 | 13 | // Author Laurent Aphecetche |
ece56eb9 | 14 | |
15 | #ifndef ROOT_TObject | |
16 | # include "TObject.h" | |
17 | #endif | |
18 | ||
19 | #ifndef ALIRECOPARAM_H | |
20 | # include "AliRecoParam.h" | |
21 | #endif | |
22 | ||
23 | class AliESDEvent; | |
24 | class AliQADataMakerRec; | |
25 | class AliMUONRecoParam; | |
26 | class AliRawReader; | |
27 | class TH1; | |
28 | class TObjArray; | |
29 | class TTree; | |
30 | ||
31 | class AliMUONVQADataMakerRec : public TObject | |
32 | { | |
33 | public: | |
34 | AliMUONVQADataMakerRec(AliQADataMakerRec* master); | |
35 | virtual ~AliMUONVQADataMakerRec(); | |
36 | ||
ca04ed6c | 37 | /// Initialization for handling Digits |
ece56eb9 | 38 | virtual void InitDigits() = 0; |
ca04ed6c | 39 | /// Initialization for handling ESD |
ece56eb9 | 40 | virtual void InitESDs() = 0; |
ca04ed6c | 41 | /// Initialization for handling Raws |
ece56eb9 | 42 | virtual void InitRaws() = 0; |
ca04ed6c | 43 | /// Initialization for handling RecPoints |
ece56eb9 | 44 | virtual void InitRecPoints() = 0; |
45 | ||
ca04ed6c | 46 | /// Produces QA data for Raws |
ece56eb9 | 47 | virtual void MakeRaws(AliRawReader* rawReader) = 0; |
ca04ed6c | 48 | /// Produces QA data for Digits |
ece56eb9 | 49 | virtual void MakeDigits(TTree* dig) = 0; |
ca04ed6c | 50 | /// Produces QA data for RecPoints |
ece56eb9 | 51 | virtual void MakeRecPoints(TTree* recpo) = 0; |
ca04ed6c | 52 | /// Produces QA data for ESD |
ece56eb9 | 53 | virtual void MakeESDs(AliESDEvent* esd) = 0; |
54 | ||
ca04ed6c | 55 | /// Wrap up things at each cycle for Raws |
ece56eb9 | 56 | virtual void EndOfDetectorCycleRaws(Int_t specie, TObjArray** list) = 0; |
ca04ed6c | 57 | /// Wrap up things at each cycle for RecPoints |
ece56eb9 | 58 | virtual void EndOfDetectorCycleRecPoints(Int_t specie, TObjArray** list) = 0; |
ca04ed6c | 59 | /// Wrap up things at each cycle for ESD |
ece56eb9 | 60 | virtual void EndOfDetectorCycleESDs(Int_t specie, TObjArray** list) = 0; |
ca04ed6c | 61 | /// Wrap up things at each cycle for Digits |
ece56eb9 | 62 | virtual void EndOfDetectorCycleDigits(Int_t specie, TObjArray** list) = 0; |
63 | ||
152fe71e | 64 | /// Reset anything that must be reset for Raws |
65 | virtual void ResetDetectorRaws(TObjArray* list) { ResetDetector(list); } | |
66 | /// Reset anything that must be reset for RecPoints | |
67 | virtual void ResetDetectorRecPoints(TObjArray* list) { ResetDetector(list); } | |
68 | /// Reset anything that must be reset for ESD | |
69 | virtual void ResetDetectorESDs(TObjArray* list) { ResetDetector(list); } | |
70 | /// Reset anything that must be reset for Digits | |
71 | virtual void ResetDetectorDigits(TObjArray* list) { ResetDetector(list); } | |
72 | ||
ece56eb9 | 73 | protected: |
74 | ||
152fe71e | 75 | void ResetDetector(TObjArray* list); |
76 | ||
ece56eb9 | 77 | Int_t RunNumber() const; |
78 | ||
79 | AliRecoParam::EventSpecie_t CurrentEventSpecie() const; | |
80 | ||
81 | const AliMUONRecoParam* GetRecoParam() const; | |
82 | ||
83 | TH1* GetDigitsData(Int_t index) const; | |
84 | TH1* GetESDsData(Int_t index) const; | |
85 | TH1* GetRecPointsData(Int_t index) const; | |
86 | TH1* GetRawsData(Int_t index) const; | |
87 | ||
88 | Int_t Add2DigitsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE); | |
89 | Int_t Add2ESDsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE); | |
90 | Int_t Add2RecPointsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE); | |
91 | Int_t Add2RawsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE, const Bool_t saveForCorr = kFALSE); | |
92 | ||
93 | private: | |
949d9006 | 94 | /// Not implemented |
ece56eb9 | 95 | AliMUONVQADataMakerRec(const AliMUONVQADataMakerRec& rhs); |
949d9006 | 96 | /// Not implemented |
ece56eb9 | 97 | AliMUONVQADataMakerRec& operator=(const AliMUONVQADataMakerRec& rhs); |
98 | ||
99 | AliQADataMakerRec* fMaster; ///< master to get access to its methods | |
100 | ||
101 | ClassDef(AliMUONVQADataMakerRec,1) // Interface for a MUON QADataMakerRec | |
102 | }; | |
103 | ||
104 | #endif |