]>
Commit | Line | Data |
---|---|---|
c810e10b | 1 | #ifndef AliPHOSDA1_H |
2 | #define AliPHOSDA1_H | |
3 | ||
4 | #include "TNamed.h" | |
5 | #include "TH1.h" | |
6 | #include "TH2F.h" | |
7 | #include "TFile.h" | |
8 | ||
9 | class AliPHOSDA1 : public TNamed { | |
10 | ||
11 | public: | |
12 | ||
13 | AliPHOSDA1(Int_t module); | |
14 | AliPHOSDA1(const AliPHOSDA1& ); | |
15 | AliPHOSDA1& operator= (const AliPHOSDA1& ); | |
16 | ~AliPHOSDA1(); | |
17 | ||
18 | void FillHistograms(Float_t e[64][56][2], Float_t t[64][56][2]); | |
19 | Int_t GetModule() { return fMod; } | |
20 | void UpdateHistoFile(); | |
a4500091 | 21 | |
22 | const TH2F* GetTimeEnergyHistogram(Int_t X, Int_t Z, Int_t gain) const | |
23 | { return fTimeEnergy[X][Z][gain]; } | |
24 | const TH1F* GetHgLgRatioHistogram(Int_t X, Int_t Z) const | |
25 | { return fHgLgRatio[X][Z]; } | |
26 | ||
c810e10b | 27 | private: |
28 | ||
29 | TFile* fHistoFile; // root file to store histograms in | |
30 | TH1F* fHgLgRatio[64][56]; // high gain to low gain ratio | |
31 | TH2F* fTimeEnergy[64][56][2]; // time and energy | |
32 | Int_t fMod; // PHOS module number (0..4) | |
33 | ||
34 | ClassDef(AliPHOSDA1,1) | |
35 | ||
36 | }; | |
37 | ||
38 | #endif |