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

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