source: trunk/MagicSoft/Mars/mmontecarlo/MMcEnerHisto.h@ 860

Last change on this file since 860 was 833, checked in by jlopez, 23 years ago
Header for MMcEnerHisto.cc
File size: 973 bytes
Line 
1#ifndef MMCENERHISTO_H
2#define MMCENERHISTO_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7#ifndef MPARCONTAINER_H
8#include "MParContainer.h"
9#endif
10
11#ifndef TH1_H
12#include <TH1.h>
13#endif
14#ifndef TF1_H
15#include <TF1.h>
16#endif
17
18class TH1F;
19class TF1;
20
21class MMcEnerHisto : public TObject {
22
23 private:
24
25 TH1F* hLogEner; // histogram with the logarith of the energy
26 TF1* fLogEner; // gausian function to fit the histogram
27
28 public:
29
30 MMcEnerHisto(const int index) ;
31 ~MMcEnerHisto() ;
32
33 Float_t GetEnerThre() ;
34 Float_t GetEnerThreErr() ;
35 Float_t GetPeakAtLogE() ;
36 Float_t GetSigmaAtLogE() ;
37
38 void SetBins(Int_t nbins = 100, Float_t xmin = 0.5, Float_t xmax = 4.5) ;
39
40 void Fill(Float_t log10E, Float_t w) ;
41 void Fit(const char *fname, Option_t *option, Option_t *goption, Axis_t xxmin, Axis_t xxmax) ;
42 void Draw(Option_t* option = "") ;
43 void Print() ;
44
45 ClassDef(MMcEnerHisto, 1) // Data Container to calculate Energy Threshold
46} ;
47
48#endif
Note: See TracBrowser for help on using the repository browser.