AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONVQADataMakerRec.h
Go to the documentation of this file.
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 
13 // Author Laurent Aphecetche
14 
15 #ifndef ROOT_TObject
16 # include "TObject.h"
17 #endif
18 
19 #ifndef ALIRECOPARAM_H
20 # include "AliRecoParam.h"
21 #endif
22 
23 #ifndef ALIQAv1_H
24 # include "AliQAv1.h"
25 #endif
26 
27 #include "AliQADataMakerRec.h"
28 
29 class AliESDEvent;
30 class AliMUONRecoParam;
31 class AliRawReader;
32 class TH1;
33 class TObjArray;
34 class TTree;
35 
36 class AliMUONVQADataMakerRec : public TObject
37 {
38 public:
39  AliMUONVQADataMakerRec(AliQADataMakerRec* master);
40  virtual ~AliMUONVQADataMakerRec();
41 
43  virtual void InitDigits() = 0;
45  virtual void InitESDs() = 0;
47  virtual void InitRaws() = 0;
49  virtual void InitRecPoints() = 0;
50 
52  virtual void MakeRaws(AliRawReader* rawReader) = 0;
54  virtual void MakeDigits(TTree* dig) = 0;
56  virtual void MakeRecPoints(TTree* recpo) = 0;
58  virtual void MakeESDs(AliESDEvent* esd) = 0;
59 
61  virtual void EndOfDetectorCycleRaws(Int_t specie, TObjArray** list) = 0;
63  virtual void EndOfDetectorCycleRecPoints(Int_t specie, TObjArray** list) = 0;
65  virtual void EndOfDetectorCycleESDs(Int_t specie, TObjArray** list) = 0;
67  virtual void EndOfDetectorCycleDigits(Int_t specie, TObjArray** list) = 0;
68 
70  virtual void ResetDetectorRaws(TObjArray* list) { ResetDetector(list); }
72  virtual void ResetDetectorRecPoints(TObjArray* list) { ResetDetector(list); }
74  virtual void ResetDetectorESDs(TObjArray* list) { ResetDetector(list); }
76  virtual void ResetDetectorDigits(TObjArray* list) { ResetDetector(list); }
78  void ForbidCloning(TH1* h, Bool_t v=kTRUE) { if (fMaster) fMaster->ForbidCloning(h,v); }
80 protected:
81 
82  void ResetDetector(const TObjArray* list);
83 
84  Int_t RunNumber() const;
85 
86  AliRecoParam::EventSpecie_t CurrentEventSpecie() const;
87 
88  const AliMUONRecoParam* GetRecoParam() const;
89 
90  TObject* GetDigitsData(Int_t index) const {return fMaster ? fMaster->GetDigitsData(index) : 0x0;}
91  TObject* GetESDsData(Int_t index) const {return fMaster ? fMaster->GetESDsData(index) : 0x0;}
92  TObject* GetRecPointsData(Int_t index) const {return fMaster ? fMaster->GetRecPointsData(index) : 0x0;}
93  TObject* GetRawsData(Int_t index) const {return fMaster ? fMaster->GetRawsData(index) : 0x0;}
94 
95  TH1* GetDigitsData(Int_t index, int trCl) const {return fMaster ? fMaster->GetDigitsData(index, trCl) : 0x0;}
96  TH1* GetESDsData(Int_t index, int trCl) const {return fMaster ? fMaster->GetESDsData(index, trCl) : 0x0;}
97  TH1* GetRecPointsData(Int_t index, int trCl) const {return fMaster ? fMaster->GetRecPointsData(index, trCl) : 0x0;}
98  TH1* GetRawsData(Int_t index, int trCl) const {return fMaster ? fMaster->GetRawsData(index,trCl) : 0x0;}
99 
100  TH1* GetMatchingRawsHisto(Int_t index, Int_t trigId) const {return fMaster ? fMaster->GetMatchingRawsHisto(index, trigId) : 0x0;}
101 
102  Int_t Add2DigitsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE);
103  Int_t Add2ESDsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE);
104  Int_t Add2RecPointsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE);
105  Int_t Add2RawsList(TH1 * hist, const Int_t index, const Bool_t expert = kFALSE, const Bool_t image = kFALSE, const Bool_t saveForCorr = kFALSE);
106  //
107  Int_t FillDigitsData(Int_t index, double x) {return fMaster ? fMaster->FillDigitsData(index,x) : 0;}
108  Int_t FillRawsData(Int_t index, double x) {return fMaster ? fMaster->FillRawsData(index,x) : 0;}
109  Int_t FillRecPointsData(Int_t index, double x) {return fMaster ? fMaster->FillRecPointsData(index,x) : 0;}
110  Int_t FillESDsData(Int_t index, double x) {return fMaster ? fMaster->FillESDsData(index,x) : 0;}
111  //
112  Int_t FillDigitsData(Int_t index, double x, double y) {return fMaster ? fMaster->FillDigitsData(index,x,y) : 0;}
113  Int_t FillRawsData(Int_t index, double x, double y) {return fMaster ? fMaster->FillRawsData(index,x,y) : 0;}
114  Int_t FillRecPointsData(Int_t index, double x, double y) {return fMaster ? fMaster->FillRecPointsData(index,x,y) : 0;}
115  Int_t FillESDsData(Int_t index, double x, double y) {return fMaster ? fMaster->FillESDsData(index,x,y) : 0;}
116  //
117  Int_t FillDigitsData(Int_t index, double x, double y, double w) {return fMaster ? fMaster->FillDigitsData(index,x,y,w) : 0;}
118  Int_t FillRawsData(Int_t index, double x, double y, double w) {return fMaster ? fMaster->FillRawsData(index,x,y,w) : 0;}
119  Int_t FillRecPointsData(Int_t index, double x, double y, double w) {return fMaster ? fMaster->FillRecPointsData(index,x,y,w) : 0;}
120  Int_t FillESDsData(Int_t index, double x, double y, double w) {return fMaster ? fMaster->FillESDsData(index,x,y,w) : 0;}
121  //
122  void ClonePerTrigClass(AliQAv1::TASKINDEX_t task);
123 
124  AliQADataMakerRec* fMaster;
125 
126 private:
131 
132  ClassDef(AliMUONVQADataMakerRec,1) // Interface for a MUON QADataMakerRec
133 };
134 
135 #endif
Int_t FillRawsData(Int_t index, double x, double y)
virtual void InitRaws()=0
Initialization for handling Raws.
virtual void EndOfDetectorCycleRecPoints(Int_t specie, TObjArray **list)=0
Wrap up things at each cycle for RecPoints.
AliRecoParam::EventSpecie_t CurrentEventSpecie() const
virtual void MakeESDs(AliESDEvent *esd)=0
Produces QA data for ESD.
Int_t Add2ESDsList(TH1 *hist, const Int_t index, const Bool_t expert=kFALSE, const Bool_t image=kFALSE)
Int_t FillRecPointsData(Int_t index, double x, double y)
#define TObjArray
virtual void MakeRaws(AliRawReader *rawReader)=0
Produces QA data for Raws.
Int_t Add2RecPointsList(TH1 *hist, const Int_t index, const Bool_t expert=kFALSE, const Bool_t image=kFALSE)
Int_t FillRawsData(Int_t index, double x, double y, double w)
virtual void InitESDs()=0
Initialization for handling ESD.
TH1 * GetRawsData(Int_t index, int trCl) const
AliMUONVQADataMakerRec & operator=(const AliMUONVQADataMakerRec &rhs)
Not implemented.
AliQADataMakerRec * fMaster
master to get access to its methods
virtual void InitRecPoints()=0
Initialization for handling RecPoints.
Class with MUON reconstruction parameters.
TH1 * GetDigitsData(Int_t index, int trCl) const
void ResetDetector(const TObjArray *list)
TH1 * GetMatchingRawsHisto(Int_t index, Int_t trigId) const
Int_t Add2DigitsList(TH1 *hist, const Int_t index, const Bool_t expert=kFALSE, const Bool_t image=kFALSE)
Int_t FillDigitsData(Int_t index, double x, double y, double w)
Int_t FillDigitsData(Int_t index, double x, double y)
virtual void InitDigits()=0
Initialization for handling Digits.
TH1 * GetRecPointsData(Int_t index, int trCl) const
AliMUONVQADataMakerRec(AliQADataMakerRec *master)
virtual void ResetDetectorDigits(TObjArray *list)
Reset anything that must be reset for Digits.
virtual void EndOfDetectorCycleESDs(Int_t specie, TObjArray **list)=0
Wrap up things at each cycle for ESD.
virtual void ResetDetectorRecPoints(TObjArray *list)
Reset anything that must be reset for RecPoints.
Int_t FillRecPointsData(Int_t index, double x, double y, double w)
Int_t FillESDsData(Int_t index, double x, double y)
void ClonePerTrigClass(AliQAv1::TASKINDEX_t task)
Interface for a MUON QADataMakerRec.
TObject * GetDigitsData(Int_t index) const
virtual void MakeRecPoints(TTree *recpo)=0
Produces QA data for RecPoints.
Int_t FillESDsData(Int_t index, double x)
virtual void EndOfDetectorCycleDigits(Int_t specie, TObjArray **list)=0
Wrap up things at each cycle for Digits.
Int_t FillESDsData(Int_t index, double x, double y, double w)
TObject * GetRawsData(Int_t index) const
void ForbidCloning(TH1 *h, Bool_t v=kTRUE)
TH1 * GetESDsData(Int_t index, int trCl) const
TObject * GetESDsData(Int_t index) const
virtual void ResetDetectorRaws(TObjArray *list)
Reset anything that must be reset for Raws.
virtual void EndOfDetectorCycleRaws(Int_t specie, TObjArray **list)=0
Wrap up things at each cycle for Raws.
Int_t FillRecPointsData(Int_t index, double x)
Int_t FillRawsData(Int_t index, double x)
const AliMUONRecoParam * GetRecoParam() const
Int_t Add2RawsList(TH1 *hist, const Int_t index, const Bool_t expert=kFALSE, const Bool_t image=kFALSE, const Bool_t saveForCorr=kFALSE)
virtual void ResetDetectorESDs(TObjArray *list)
Reset anything that must be reset for ESD.
virtual void MakeDigits(TTree *dig)=0
Produces QA data for Digits.
Int_t FillDigitsData(Int_t index, double x)
TObject * GetRecPointsData(Int_t index) const