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 | TH2D *fHistLutPseudoSizeEnergy; // 2D-Histogram of fLutPseudoSize vs. Energy
|
---|
25 | TH2D *fHistSizeBiggerCellEnergy; // 2D-Histogram of fSizeBiggerCell vs. Energy
|
---|
26 | TF1* fFNorm; // Function used to normalize histograms
|
---|
27 |
|
---|
28 | static Int_t fColorLps;
|
---|
29 | static Int_t fColorSbc;
|
---|
30 | static Int_t fColorPs;
|
---|
31 | static Int_t fColorPsE;
|
---|
32 | static Int_t fColorLPsE;
|
---|
33 | static Int_t fColorSBCE;
|
---|
34 |
|
---|
35 |
|
---|
36 | TObject *DrawHist(TH1 &hist, TH1 &histNorm, const TString &canvasname, Int_t &colore) const;
|
---|
37 | TObject *Draw2DHist(TH1 &hist, const TString &canvasname, Int_t &col) const;
|
---|
38 |
|
---|
39 | public:
|
---|
40 | MHMcTriggerLvl2(const char *name=NULL, const char *title=NULL);
|
---|
41 | ~MHMcTriggerLvl2();
|
---|
42 |
|
---|
43 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
44 |
|
---|
45 | TH1 *GetHistByName(const TString name);
|
---|
46 |
|
---|
47 | TH1F *GetHistLutPseudoSize() const { return fHistLutPseudoSize; }
|
---|
48 | TH1F *GetHistLutPseudoSizeNorm() const { return fHistLutPseudoSizeNorm; }
|
---|
49 | TH1F *GetHistPseudoSize() const { return fHistPseudoSize; }
|
---|
50 | TH1F *GetHistPseudoSizeNorm() const { return fHistPseudoSizeNorm; }
|
---|
51 | TH1F *GetHistSizeBiggerCell() const { return fHistSizeBiggerCell; }
|
---|
52 | TH1F *GetHistSizeBiggerCellNorm() const { return fHistSizeBiggerCellNorm; }
|
---|
53 | TH2D *GetHistLutPseudoSizeEnergy() const { return fHistLutPseudoSizeEnergy; }
|
---|
54 | TH2D *GetHistPseudoSizeEnergy() const { return fHistPseudoSizeEnergy; }
|
---|
55 | TH2D *GetHistSizeBiggerCellEnergy() const { return fHistSizeBiggerCellEnergy; }
|
---|
56 |
|
---|
57 |
|
---|
58 | void Draw(Option_t *opt=NULL);
|
---|
59 | TObject *DrawClone(Option_t *opt=NULL) const;
|
---|
60 |
|
---|
61 | TH1 *NormalizeHist(TH1 *histNorm, TH1 *hist) const;
|
---|
62 |
|
---|
63 | ClassDef(MHMcTriggerLvl2, 1) // Container which holds histograms for the Trigger Level2 image parameters
|
---|
64 | };
|
---|
65 |
|
---|
66 |
|
---|
67 | #endif
|
---|