]>
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); | |
b3efbd4c | 14 | AliPHOSDA1(Int_t module, TH2F oldTimeEnergy[64][56][2]); |
c810e10b | 15 | AliPHOSDA1(const AliPHOSDA1& ); |
16 | AliPHOSDA1& operator= (const AliPHOSDA1& ); | |
17 | ~AliPHOSDA1(); | |
18 | ||
19 | void FillHistograms(Float_t e[64][56][2], Float_t t[64][56][2]); | |
20 | Int_t GetModule() { return fMod; } | |
21 | void UpdateHistoFile(); | |
b3efbd4c | 22 | void SetWriteToFile(Bool_t write); |
a4500091 | 23 | |
24 | const TH2F* GetTimeEnergyHistogram(Int_t X, Int_t Z, Int_t gain) const | |
25 | { return fTimeEnergy[X][Z][gain]; } | |
26 | const TH1F* GetHgLgRatioHistogram(Int_t X, Int_t Z) const | |
27 | { return fHgLgRatio[X][Z]; } | |
28 | ||
c810e10b | 29 | private: |
30 | ||
31 | TFile* fHistoFile; // root file to store histograms in | |
32 | TH1F* fHgLgRatio[64][56]; // high gain to low gain ratio | |
33 | TH2F* fTimeEnergy[64][56][2]; // time and energy | |
34 | Int_t fMod; // PHOS module number (0..4) | |
b3efbd4c | 35 | Bool_t fWriteToFile; // kTRUE to save histograms to ROOT file (default) |
c810e10b | 36 | |
37 | ClassDef(AliPHOSDA1,1) | |
38 | ||
39 | }; | |
40 | ||
41 | #endif |