]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSDA1.h
Improvments for RAW QA:
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDA1.h
CommitLineData
c810e10b 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"
ea542e87 8#include "TObjArray.h"
c810e10b 9
10class AliPHOSDA1 : public TNamed {
11
12 public:
13
14 AliPHOSDA1(Int_t module);
b3efbd4c 15 AliPHOSDA1(Int_t module, TH2F oldTimeEnergy[64][56][2]);
c810e10b 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();
b3efbd4c 23 void SetWriteToFile(Bool_t write);
a4500091 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]; }
ea542e87 29
30 const TObjArray* GetHistoContainer() const { return &fHistoArray; }
a4500091 31
c810e10b 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)
b3efbd4c 38 Bool_t fWriteToFile; // kTRUE to save histograms to ROOT file (default)
ea542e87 39 TObjArray fHistoArray; // container for histograms
c810e10b 40
41 ClassDef(AliPHOSDA1,1)
42
43};
44
45#endif