fixing small memory leak
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDA2.h
... / ...
CommitLineData
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#include "TObjArray.h"
9
10class AliPHOSDA2 : public TNamed {
11
12 public:
13
14 AliPHOSDA2(Int_t module);
15 AliPHOSDA2(Int_t module, TObjArray* oldHistos);
16
17 AliPHOSDA2(const AliPHOSDA2& );
18 AliPHOSDA2& operator= (const AliPHOSDA2& );
19 ~AliPHOSDA2();
20
21 void FillQualityHistograms(Float_t quality[64][56][2]);
22 void FillFiredCellsHistogram(Int_t nCells);
23 Int_t GetModule() { return fMod; }
24 void UpdateHistoFile();
25
26 const TH1F* GetQualityHistogram(Int_t X, Int_t Z, Int_t gain) const
27 { return fHQuality[X][Z][gain]; }
28
29 const TH1I* GetFiredCellsHistogram() { return fFiredCells; }
30
31 private:
32
33 TFile* fHistoFile; // root file to store histograms in
34 TH1F* fHQuality[64][56][2]; // "quality" for high and low gains
35 TH1I* fFiredCells; // Number of fired cells pre event.
36 Int_t fMod; // PHOS module number (0..4)
37 TH2F* fMaps[2]; // 2D quality map for low and high gains.
38
39 ClassDef(AliPHOSDA2,1)
40
41};
42
43#endif