source: trunk/MagicSoft/Mars/mhist/MHMcEnergy.h@ 1379

Last change on this file since 1379 was 1015, checked in by tbretz, 23 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#ifndef MARS_MHMcEnergy
2#define MARS_MHMcEnergy
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TH1F;
9class TF1;
10
11class MHMcEnergy : public MParContainer
12{
13private:
14
15 TH1F *fHist; // histogram with the logarith of the energy
16
17 Float_t fThreshold;
18 Float_t fThresholdErr;
19 Float_t fGaussPeak;
20 Float_t fGaussSigma;
21
22 Float_t CalcThreshold(TF1 *gauss);
23 Float_t CalcThresholdErr(TF1 *gauss);
24
25 Float_t CalcGaussPeak(TF1 *gauss);
26 Float_t CalcGaussSigma(TF1 *gauss);
27
28 void DrawLegend() const;
29
30public:
31
32 MHMcEnergy(const char *name=NULL, const char *title=NULL);
33 ~MHMcEnergy();
34
35 void SetName(const char *name);
36
37 Float_t GetThreshold() const { return fThreshold; }
38 Float_t GetThresholdErr() const { return fThresholdErr; }
39
40 Float_t GetGaussPeak() const { return fGaussPeak; }
41 Float_t GetGaussSigma() const { return fGaussSigma; };
42
43 void Fill(Float_t log10E, Float_t w);
44 void Fit(Axis_t xxmin, Axis_t xxmax);
45 void SetNumBins(Int_t nbins = 100);
46
47 void Draw(Option_t* option = "");
48 TObject *DrawClone(Option_t* option = "") const;
49 void Print(Option_t* option = NULL) const;
50
51 ClassDef(MHMcEnergy, 1) // Histogram container for montecarlo energy threshold
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.