1 | #ifndef MARS_MHMcTriggerLvl2
|
---|
2 | #define MARS_MHMcTriggerLvl2
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH2D;
|
---|
9 | class TH1F;
|
---|
10 | class TF1;
|
---|
11 | class MMcTriggerLvl2;
|
---|
12 |
|
---|
13 | class MHMcTriggerLvl2 : public MH
|
---|
14 | {
|
---|
15 | private:
|
---|
16 |
|
---|
17 | TH1F *fHistLutPseudoSize; // Histogram of fLutPseudoSize
|
---|
18 | TH1F *fHistLutPseudoSizeNorm; // Histogram of fLutPseudoSize normalized on integral of distribution
|
---|
19 | TH1F *fHistPseudoSize; // Histogram of fPseudoSize
|
---|
20 | TH1F *fHistPseudoSizeNorm; // Histogram of fPseudoSize normalized on integral of distribution
|
---|
21 | TH1F *fHistSizeBiggerCell; // Histogram of fSizeBiggerCell
|
---|
22 | TH1F *fHistSizeBiggerCellNorm; // Histogram of fSizeBiggerCell normalized on integral of distribution
|
---|
23 | TH2D *fHistPseudoSizeEnergy; // 2D-Histogram of fPseudoSize vs. Energy
|
---|
24 | TF1* fFNorm; // Function used to normalize histograms
|
---|
25 |
|
---|
26 | static Int_t fColorLps;
|
---|
27 | static Int_t fColorSbc;
|
---|
28 | static Int_t fColorPs;
|
---|
29 | static Int_t fColorPsE;
|
---|
30 |
|
---|
31 | TObject *DrawHist(TH1 &hist, TH1 &histNorm, const TString &canvasname, Int_t &colore) const;
|
---|
32 | TObject *Draw2DHist(TH1 &hist, const TString &canvasname, Int_t &col) const;
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MHMcTriggerLvl2(const char *name=NULL, const char *title=NULL);
|
---|
36 | ~MHMcTriggerLvl2();
|
---|
37 |
|
---|
38 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
39 | // Bool_t Fill(const Double_t energy, const MParContainer *par, const Stat_t w=1);
|
---|
40 | TH1 *GetHistByName(const TString name);
|
---|
41 |
|
---|
42 | TH1F *GetHistLutPseudoSize() const { return fHistLutPseudoSize; }
|
---|
43 | TH1F *GetHistLutPseudoSizeNorm() const { return fHistLutPseudoSizeNorm; }
|
---|
44 | TH1F *GetHistPseudoSize() const { return fHistPseudoSize; }
|
---|
45 | TH1F *GetHistPseudoSizeNorm() const { return fHistPseudoSizeNorm; }
|
---|
46 | TH1F *GetHistSizeBiggerCell() const { return fHistSizeBiggerCell; }
|
---|
47 | TH1F *GetHistSizeBiggerCellNorm() const { return fHistSizeBiggerCellNorm; }
|
---|
48 | TH2D *GetHistPseudoSizeEnergy() const { return fHistPseudoSizeEnergy; }
|
---|
49 |
|
---|
50 | void Draw(Option_t *opt=NULL);
|
---|
51 | TObject *DrawClone(Option_t *opt=NULL) const;
|
---|
52 |
|
---|
53 | TH1 *NormalizeHist(TH1 *histNorm, TH1 *hist) const;
|
---|
54 |
|
---|
55 | ClassDef(MHMcTriggerLvl2, 1) // Container which holds histograms for the Trigger Level2 image parameters
|
---|
56 | };
|
---|
57 |
|
---|
58 |
|
---|
59 | #endif
|
---|