AliRoot Core  3dc7879 (3dc7879)
AliEMCALQADataMakerRec.h
Go to the documentation of this file.
1 #ifndef ALIEMCALQADATAMAKERREC_H
2 #define ALIEMCALQADATAMAKERREC_H
3 
4 //_________________________________________________________________________
29 
30 // --- ROOT system ---
31 class TH1F ;
32 class TH1I ;
33 class TH2F ;
34 class TH2 ;
35 class TLine ;
36 class TText ;
37 class TProfile ;
38 class TObjArray ;
39 
40 // --- AliRoot header files ---
41 #include "AliQADataMakerRec.h"
42 class AliCaloRawAnalyzer;
43 class AliEMCALGeometry;
44 #include "AliCaloConstants.h"
46 
48 
49 public:
50 
51  // Histograms for Raw data control
52  enum HRawType_t {
53  // first normal Low Gain and High Gain info
58  // then TRU info
63  // and also LED Mon info
67  //and STU info
70  } ;
71 
72  // Histograms for RecPoints control
74 
75  // Histograms for ESDs control
77 
78 public:
79  // ctor
80  AliEMCALQADataMakerRec(Int_t fitAlgo = Algo::kStandard) ;
81  // Default fitter is kStandard=0 (see AliCaloConstants)
82 
85  virtual ~AliEMCALQADataMakerRec() {;} // dtor
86 
87  Int_t GetFittingAlgorithm() const {return fFittingAlgorithm;}
88  void SetFittingAlgorithm(Int_t val);
89 
92 
93  // The number of SuperModules
94  void SetSuperModules(int i) {fSuperModules = i;};
95  int GetSuperModules() const {return fSuperModules;};
96 
97  // For pedestal calculation with raw data
98  void SetFirstPedestalSample(int i) {fFirstPedestalSample = i;} // first sample
99  int GetFirstPedestalSample() const {return fFirstPedestalSample;} // first sample
100  void SetLastPedestalSample(int i) {fLastPedestalSample = i;} // last sample
101  int GetLastPedestalSample() const {return fLastPedestalSample;} // last sample
102 
103  void SetFirstPedestalSampleTRU(int i) {fFirstPedestalSampleTRU = i;} // first sample, TRU
104  int GetFirstPedestalSampleTRU() const {return fFirstPedestalSampleTRU;} // first sample, TRU
105  void SetLastPedestalSampleTRU(int i) {fLastPedestalSampleTRU = i;} // last sample, TRU
106  int GetLastPedestalSampleTRU() const {return fLastPedestalSampleTRU;} // last sample, TRU
107 
108  // For selection of interesting signal (max-min) range
109  // Low Gain channels
110  void SetMinSignalLG(int i) {fMinSignalLG = i;}
111  int GetMinSignalLG() const {return fMinSignalLG;}
112  void SetMaxSignalLG(int i) {fMaxSignalLG = i;}
113  int GetMaxSignalLG() const {return fMaxSignalLG;}
114 
115  // High Gain channels
116  void SetMinSignalHG(int i) {fMinSignalHG = i;}
117  int GetMinSignalHG() const {return fMinSignalHG;}
118  void SetMaxSignalHG(int i) {fMaxSignalHG = i;}
119  int GetMaxSignalHG() const {return fMaxSignalHG;}
120 
121  // TRU channels
122  void SetMinSignalTRU(int i) {fMinSignalTRU = i;}
123  int GetMinSignalTRU() const {return fMinSignalTRU;}
124  void SetMaxSignalTRU(int i) {fMaxSignalTRU = i;}
125  int GetMaxSignalTRU() const {return fMaxSignalTRU;}
126 
127  // LEDMon channels
136 
137  virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** list) ;
138  void GetCalibRefFromOCDB() ;
139  //void GetTruChannelPosition( Int_t &globRow, Int_t &globColumn, Int_t module, Int_t ddl, Int_t branch, Int_t column ) const;
140  virtual void InitESDs() ;
141  virtual void InitDigits() ;
142  virtual void InitRecPoints() ;
143  virtual void InitRaws() ;
144  virtual void MakeESDs(AliESDEvent * esd) ;
145  virtual void MakeDigits() ;
146  virtual void MakeDigits(TTree * digTree) ;
147  virtual void MakeRecPoints(TTree * recpoTree) ;
148  virtual void MakeRaws(AliRawReader* rawReader) ;
149  virtual void MakeRawsSTU(AliRawReader* rawReader);
150  virtual void StartOfDetectorCycle() ;
151 
152 private:
153 
154  void ConvertProfile2H(TProfile * p, TH2 * histo) ;
155 
157 
161 
167 
178 
180  TProfile * fCalibRefHistoPro ; // ->
181 
183  TH2F * fCalibRefHistoH2F ; //->
184 
186  TProfile * fLEDMonRefHistoPro; //->
187 
189  TH2F * fHighEmcHistoH2F ; //->
190 
191 // TText ** fTextSM ; //! Text info for each SM
192 // TLine * fLineCol ; //! line to distinguish the different SM side: A side and C side
193 // TLine * fLineRow ; //! line to distinguish the different SM sector 0 and 1
194 
196  ClassDef(AliEMCALQADataMakerRec,6) ;
198 };
199 
200 #endif
virtual void MakeRawsSTU(AliRawReader *rawReader)
Base class for extraction of signal amplitude and peak position.
int fMinSignalLGLEDMon
Minimum signal, for LEDMon channels, low gain.
int fMaxSignalTRU
Maximum signal, for TRU channels.
virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray **list)
#define TObjArray
int fMinSignalLG
Minimum signal, for Low Gain channels.
int fMinSignalHGLEDMon
Minimum signal, for LEDMon channels, high gain.
int fMaxSignalHG
Maximum signal, for High Gain channels.
Float_t p[]
Definition: kNNTest.C:133
AliCaloRawAnalyzer * GetRawAnalyzerTRU() const
int fMinSignalTRU
Minimum signal, for TRU channels.
int fSuperModules
The number of SuperModules activated.
virtual void MakeRaws(AliRawReader *rawReader)
Int_t fFittingAlgorithm
Select the fitting algorithm, only used in copy ctor ...
int fLastPedestalSampleTRU
Last sample for pedestal calculation, in bunch.
void ConvertProfile2H(TProfile *p, TH2 *histo)
AliCaloRawAnalyzer * GetRawAnalyzer() const
AliCaloRawAnalyzer * fRawAnalyzerTRU
For TRU signal fitting.
int fLastPedestalSample
Last sample for pedestal calculation, in bunch.
int fMinSignalHG
Minimum signal, for High Gain channels.
int fMaxSignalLG
Maximum signal, for Low Gain channels.
int fMaxSignalHGLEDMon
Maximum signal, for LEDMon channels, high gain.
AliEMCALQADataMakerRec & operator=(const AliEMCALQADataMakerRec &qadm)
TProfile * fLEDMonRefHistoPro
TProfile reference histogram from LED monitor.
TASKINDEX_t
Definition: AliQAv1.h:30
AliEMCALQADataMakerRec(Int_t fitAlgo=Algo::kStandard)
TProfile * fCalibRefHistoPro
TProfile reference histogram from LED run.
int fFirstPedestalSampleTRU
First sample for pedestal calculation, in bunch.
int fMaxSignalLGLEDMon
Maximum signal, for LEDMon channels, low gain.
AliCaloRawAnalyzer * fRawAnalyzer
For signal fitting.
int fFirstPedestalSample
First sample for pedestal calculation, in bunch.
virtual void MakeESDs(AliESDEvent *esd)
virtual void MakeRecPoints(TTree *recpoTree)
EMCal reconstruction QA.
EMCal geometry, singleton.
TH2F * fHighEmcHistoH2F
TH2F reference histogram from LED run.
AliEMCALGeometry * fGeom
EMCAL geometry, needed for STU decoding.
TH2F * fCalibRefHistoH2F
TH2F reference histogram from LED run.