| 1 | #ifndef MARS_MHMcTriggerLvl2
|
|---|
| 2 | #define MARS_MHMcTriggerLvl2
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MH
|
|---|
| 5 | #include "MH.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class TH1F;
|
|---|
| 9 | class TF1;
|
|---|
| 10 | class MMcTriggerLvl2;
|
|---|
| 11 |
|
|---|
| 12 | class MHMcTriggerLvl2 : public MH
|
|---|
| 13 | {
|
|---|
| 14 | public:
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | private:
|
|---|
| 18 |
|
|---|
| 19 | TH1F *hfLutPseudoSize; // Histogram of fLutPseudoSize
|
|---|
| 20 | TH1F *hfLutPseudoSizeNorm; // Histogram of fLutPseudoSize normalized on integral of distribution
|
|---|
| 21 | TH1F *hfPseudoSize; // Histogram of fPseudoSize
|
|---|
| 22 | TH1F *hfPseudoSizeNorm; // Histogram of fPseudoSize normalized on integral of distribution
|
|---|
| 23 | TH1F *hfSizeBiggerCell; // Histogram of fSizeBiggerCell
|
|---|
| 24 | TH1F *hfSizeBiggerCellNorm; // Histogram of fSizeBiggerCell normalized on integral of distribution
|
|---|
| 25 |
|
|---|
| 26 | TF1* f1; // Function used to normalize histograms
|
|---|
| 27 |
|
|---|
| 28 | public:
|
|---|
| 29 | MHMcTriggerLvl2(const char *name=NULL, const char *title=NULL);
|
|---|
| 30 | ~MHMcTriggerLvl2();
|
|---|
| 31 |
|
|---|
| 32 | Bool_t Fill(const MParContainer *par);
|
|---|
| 33 |
|
|---|
| 34 | TH1 *GetHistByName(const TString name);
|
|---|
| 35 |
|
|---|
| 36 | TH1F *GetHistfLutPseudoSize() const { return hfLutPseudoSize; }
|
|---|
| 37 | TH1F *GetHistfLutPseudoSizeNorm() const { return hfLutPseudoSizeNorm; }
|
|---|
| 38 | TH1F *GetHistfPseudoSize() const { return hfPseudoSize; }
|
|---|
| 39 | TH1F *GetHistfPseudoSizeNorm() const { return hfPseudoSizeNorm; }
|
|---|
| 40 | TH1F *GetHistfSizeBiggerCell() const { return hfSizeBiggerCell; }
|
|---|
| 41 | TH1F *GetHistfSizeBiggerCellNorm() const { return hfSizeBiggerCellNorm; }
|
|---|
| 42 |
|
|---|
| 43 | void Draw(Option_t *opt=NULL);
|
|---|
| 44 | TObject *DrawClone(Option_t *opt=NULL) const;
|
|---|
| 45 |
|
|---|
| 46 | TH1 *NormalizeHist(TH1 *histNorm, TH1 *hist) const;
|
|---|
| 47 |
|
|---|
| 48 | ClassDef(MHMcTriggerLvl2, 1) // Container which holds histograms for the Trigger Level2 image parameters
|
|---|
| 49 |
|
|---|
| 50 | private:
|
|---|
| 51 |
|
|---|
| 52 | TObject *DrawHist(TH1 *hist, TH1 *histNorm, const char *canvasname, Int_t *colore) const;
|
|---|
| 53 |
|
|---|
| 54 | };
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | #endif
|
|---|