]>
Commit | Line | Data |
---|---|---|
6a34dadb | 1 | #ifndef AliPHOSDA2_H |
2 | #define AliPHOSDA2_H | |
3 | ||
4 | #include "TNamed.h" | |
5 | #include "TH1.h" | |
6 | #include "TH2.h" | |
7 | #include "TFile.h" | |
8 | ||
9 | class AliPHOSDA2 : public TNamed { | |
10 | ||
11 | public: | |
12 | ||
13 | AliPHOSDA2(Int_t module); | |
14 | AliPHOSDA2(const AliPHOSDA2& ); | |
15 | AliPHOSDA2& operator= (const AliPHOSDA2& ); | |
16 | ~AliPHOSDA2(); | |
17 | ||
18 | void FillQualityHistograms(Float_t quality[64][56][2]); | |
7708b003 | 19 | void FillFiredCellsHistogram(Int_t nCells); |
6a34dadb | 20 | Int_t GetModule() { return fMod; } |
21 | void UpdateHistoFile(); | |
a4500091 | 22 | |
23 | const TH1F* GetQualityHistogram(Int_t X, Int_t Z, Int_t gain) const | |
24 | { return fHQuality[X][Z][gain]; } | |
7708b003 | 25 | |
26 | const TH1I* GetFiredCellsHistogram() { return fFiredCells; } | |
6a34dadb | 27 | |
28 | private: | |
29 | ||
30 | TFile* fHistoFile; // root file to store histograms in | |
31 | TH1F* fHQuality[64][56][2]; // "quality" for high and low gains | |
7708b003 | 32 | TH1I* fFiredCells; // Number of fired cells pre event. |
6a34dadb | 33 | Int_t fMod; // PHOS module number (0..4) |
34 | TH2F* fMaps[2]; // 2D quality map for low and high gains. | |
35 | ||
36 | ClassDef(AliPHOSDA2,1) | |
37 | ||
38 | }; | |
39 | ||
40 | #endif |