]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSDA2.h
Memory leak in AliPHOSRawFitterv0 is fixed.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDA2.h
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]);
19   void  FillFiredCellsHistogram(Int_t nCells);
20   Int_t GetModule() { return fMod; }
21   void  UpdateHistoFile();
22
23   const TH1F* GetQualityHistogram(Int_t X, Int_t Z, Int_t gain) const
24   { return fHQuality[X][Z][gain]; }
25
26   const TH1I* GetFiredCellsHistogram() { return fFiredCells; }
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
32   TH1I* fFiredCells;            // Number of fired cells pre event.
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