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