source: trunk/MagicSoft/Mars/mhist/MHMcTriggerLvl2.h@ 1951

Last change on this file since 1951 was 1934, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MHMcTriggerLvl2
2#define MARS_MHMcTriggerLvl2
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TH1F;
9class TF1;
10class MMcTriggerLvl2;
11
12class MHMcTriggerLvl2 : public MH
13{
14 public:
15
16
17private:
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 static Int_t fColorLps;
29 static Int_t fColorSbc;
30 static Int_t fColorPs;
31
32public:
33 MHMcTriggerLvl2(const char *name=NULL, const char *title=NULL);
34 ~MHMcTriggerLvl2();
35
36 Bool_t Fill(const MParContainer *par);
37
38 TH1 *GetHistByName(const TString name);
39
40 TH1F *GetHistfLutPseudoSize() const { return hfLutPseudoSize; }
41 TH1F *GetHistfLutPseudoSizeNorm() const { return hfLutPseudoSizeNorm; }
42 TH1F *GetHistfPseudoSize() const { return hfPseudoSize; }
43 TH1F *GetHistfPseudoSizeNorm() const { return hfPseudoSizeNorm; }
44 TH1F *GetHistfSizeBiggerCell() const { return hfSizeBiggerCell; }
45 TH1F *GetHistfSizeBiggerCellNorm() const { return hfSizeBiggerCellNorm; }
46
47 void Draw(Option_t *opt=NULL);
48 TObject *DrawClone(Option_t *opt=NULL) const;
49
50 TH1 *NormalizeHist(TH1 *histNorm, TH1 *hist) const;
51
52 ClassDef(MHMcTriggerLvl2, 1) // Container which holds histograms for the Trigger Level2 image parameters
53
54private:
55
56 TObject *DrawHist(TH1 &hist, TH1 &histNorm, const TString &canvasname, Int_t &colore) const;
57
58};
59
60
61#endif
Note: See TracBrowser for help on using the repository browser.