1 #ifndef AliPHOSRCUDA1_H
2 #define AliPHOSRCUDA1_H
10 class AliPHOSRcuDA1 : public TNamed {
14 AliPHOSRcuDA1(Int_t module, Int_t rcu);
15 AliPHOSRcuDA1(Int_t module, Int_t rcu, TObjArray* oldTimeEnergy);
18 void FillHistograms(Float_t e[64][56][2], Float_t t[64][56][2]);
19 Int_t GetModule() { return fMod; }
20 Int_t GetRCU() { return fRCU; }
21 void UpdateHistoFile();
22 void SetWriteToFile(Bool_t write);
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]; }
29 const TObjArray* GetHistoContainer() const { return &fHistoArray; }
33 AliPHOSRcuDA1(const AliPHOSRcuDA1& );
34 AliPHOSRcuDA1& operator= (const AliPHOSRcuDA1& );
38 TFile* fHistoFile; // root file to store histograms in
39 TH1F* fHgLgRatio[64][56]; // high gain to low gain ratio
40 TH2F* fTimeEnergy[64][56][2]; // time and energy
41 Int_t fMod; // PHOS module number (0..4)
42 Int_t fRCU; // RCU number (0..3)
43 Bool_t fWriteToFile; // kTRUE to save histograms to ROOT file (default)
44 TObjArray fHistoArray; // container for histograms
46 ClassDef(AliPHOSRcuDA1,1)