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

Last change on this file since 896 was 891, 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 char *name=NULL, const char *title=NULL);
34 ~MHMcEnergy();
35
36 void SetName(const char *name);
37
38 Float_t GetThreshold() const { return fThreshold; }
39 Float_t GetThresholdErr() const { return fThresholdErr; }
40
41 Float_t GetGaussPeak() const { return fGaussPeak; }
42 Float_t GetGaussSigma() const { return fGaussSigma; };
43
44 void Fill(Float_t log10E, Float_t w);
45 void Fit(Axis_t xxmin, Axis_t xxmax);
46 void SetNumBins(Int_t nbins = 100);
47
48 void Draw(Option_t* option = "");
49 void Print(Option_t* option = NULL);
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.