]>
Commit | Line | Data |
---|---|---|
94594e5d | 1 | #ifndef ALIEMCALQADataMakerRec_H |
2 | #define ALIEMCALQADataMakerRec_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* | |
7 | Produces the data needed to calculate the quality assurance. | |
8 | All data must be mergeable objects. | |
9 | ||
10 | Based on PHOS code written by | |
11 | Y. Schutz CERN July 2007 | |
12 | */ | |
13 | ||
14 | ||
15 | // --- ROOT system --- | |
16 | class TH1F ; | |
17 | class TH1I ; | |
18 | class TObjArray ; | |
19 | ||
20 | // --- Standard library --- | |
21 | ||
22 | // --- AliRoot header files --- | |
23 | #include "AliQADataMakerRec.h" | |
24 | ||
25 | class AliEMCALQADataMakerRec: public AliQADataMakerRec { | |
26 | ||
27 | public: | |
28 | //Histograms for Raw data control | |
85149d34 | 29 | enum HRawType_t { |
30 | // first normal Low Gain and High Gain info | |
31 | kNsmodLG,kNsmodHG,kTimeLG,kTimeHG, | |
32 | kSigLG,kSigHG,kNtotLG,kNtotHG, | |
33 | kPedLG,kPedHG, | |
34 | kPedRMSLG,kPedRMSHG, | |
35 | // then TRU info | |
36 | kNsmodTRU,kTimeTRU, | |
37 | kSigTRU,kNtotTRU, | |
38 | kPedTRU,kPedRMSTRU, | |
39 | // and also LED Mon info | |
40 | kNsmodLGLEDMon,kNsmodHGLEDMon,kTimeLGLEDMon,kTimeHGLEDMon, | |
41 | kSigLGLEDMon,kSigHGLEDMon,kNtotLGLEDMon,kNtotHGLEDMon, | |
42 | kPedLGLEDMon,kPedHGLEDMon, | |
43 | kPedRMSLGLEDMon,kPedRMSHGLEDMon | |
44 | } ; | |
601c73e3 | 45 | |
94594e5d | 46 | //Histograms for RecPoints control |
601c73e3 | 47 | enum HRPType_t {kRecPE,kRecPM,kRecPDigM}; |
48 | ||
94594e5d | 49 | //Histograms for ESDs control |
601c73e3 | 50 | enum HESDType_t {kESDCaloClusE,kESDCaloClusM,kESDCaloCellA,kESDCaloCellM} ; |
94594e5d | 51 | |
52 | ||
53 | public: | |
54 | AliEMCALQADataMakerRec() ; // ctor | |
55 | AliEMCALQADataMakerRec(const AliEMCALQADataMakerRec& qadm) ; | |
56 | AliEMCALQADataMakerRec& operator = (const AliEMCALQADataMakerRec& qadm) ; | |
57 | virtual ~AliEMCALQADataMakerRec() {;} // dtor | |
3fe36ccb | 58 | |
59 | void SetSuperModules(int i) {fSuperModules = i;}; //The number of SuperModules | |
60 | int GetSuperModules() const {return fSuperModules;}; //The number of SuperModules | |
d3b82d58 | 61 | |
62 | // for pedestal calculation with raw data | |
63 | void SetFirstPedestalSample(int i) {fFirstPedestalSample = i;}; // first sample | |
64 | int GetFirstPedestalSample() const {return fFirstPedestalSample;}; // first sample | |
65 | void SetLastPedestalSample(int i) {fLastPedestalSample = i;}; // last sample | |
66 | int GetLastPedestalSample() const {return fLastPedestalSample;}; // last sample | |
67 | ||
4e25ac79 | 68 | virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray ** list) ; |
94594e5d | 69 | virtual void InitESDs() ; |
44ed7a66 | 70 | virtual void InitDigits() ; |
94594e5d | 71 | virtual void InitRecPoints() ; |
72 | virtual void InitRaws() ; | |
73 | virtual void MakeESDs(AliESDEvent * esd) ; | |
6252ceeb | 74 | virtual void MakeDigits() ; |
44ed7a66 | 75 | virtual void MakeDigits(TTree * digTree) ; |
94594e5d | 76 | virtual void MakeRecPoints(TTree * recpoTree) ; |
77 | virtual void MakeRaws(AliRawReader* rawReader) ; | |
78 | virtual void StartOfDetectorCycle() ; | |
79 | ||
da1b120b | 80 | private: |
3fe36ccb | 81 | int fSuperModules; //The number of SuperModules activated |
d3b82d58 | 82 | int fFirstPedestalSample; // first sample for pedestal calculation |
83 | int fLastPedestalSample; // last sample for pedestal calculation | |
3fe36ccb | 84 | |
85149d34 | 85 | ClassDef(AliEMCALQADataMakerRec,3) // description |
94594e5d | 86 | |
87 | }; | |
88 | ||
89 | #endif // AliEMCALQADataMakerRec_H |