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

Last change on this file since 954 was 954, checked in by tbretz, 23 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.3 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
31 void DrawLegend() const;
32
33public:
34
35 MHMcEnergy(const char *name=NULL, const char *title=NULL);
36 ~MHMcEnergy();
37
38 void SetName(const char *name);
39
40 Float_t GetThreshold() const { return fThreshold; }
41 Float_t GetThresholdErr() const { return fThresholdErr; }
42
43 Float_t GetGaussPeak() const { return fGaussPeak; }
44 Float_t GetGaussSigma() const { return fGaussSigma; };
45
46 void Fill(Float_t log10E, Float_t w);
47 void Fit(Axis_t xxmin, Axis_t xxmax);
48 void SetNumBins(Int_t nbins = 100);
49
50 void Draw(Option_t* option = "");
51 TObject *DrawClone(Option_t* option = "");
52 void Print(Option_t* option = NULL);
53
54 ClassDef(MHMcEnergy, 1) // Histogram container for montecarlo energy threshold
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.