Merge branch 'master_patch'
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDA2.h
CommitLineData
6a34dadb 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"
c526b05d 8#include "TObjArray.h"
6a34dadb 9
10class AliPHOSDA2 : public TNamed {
11
12 public:
13
14 AliPHOSDA2(Int_t module);
c526b05d 15 AliPHOSDA2(Int_t module, TObjArray* oldHistos);
16
6a34dadb 17 AliPHOSDA2(const AliPHOSDA2& );
18 AliPHOSDA2& operator= (const AliPHOSDA2& );
19 ~AliPHOSDA2();
20
21 void FillQualityHistograms(Float_t quality[64][56][2]);
7708b003 22 void FillFiredCellsHistogram(Int_t nCells);
6a34dadb 23 Int_t GetModule() { return fMod; }
24 void UpdateHistoFile();
a4500091 25
26 const TH1F* GetQualityHistogram(Int_t X, Int_t Z, Int_t gain) const
27 { return fHQuality[X][Z][gain]; }
7708b003 28
29 const TH1I* GetFiredCellsHistogram() { return fFiredCells; }
6a34dadb 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
7708b003 35 TH1I* fFiredCells; // Number of fired cells pre event.
6a34dadb 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