source: trunk/MagicSoft/Mars/mhflux/MHEnergyEst.h@ 7825

Last change on this file since 7825 was 7692, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHEnergyEst
2#define MARS_MHEnergyEst
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH3
9#include <TH3.h>
10#endif
11
12#ifndef ROOT_TH2
13#include <TH2.h>
14#endif
15
16class MMcEvt;
17class MParList;
18class MParameterD;
19class MHMatrix;
20
21class MHEnergyEst : public MH
22{
23private:
24 //TString fNameEnergy;
25 //TString fNameResult;
26
27 MMcEvt *fMcEvt; //!
28 MParameterD *fEnergy; //!
29 MParameterD *fResult; //!
30
31 Int_t fMap[100]; // FIXME!
32 MHMatrix *fMatrix; //!
33
34 TH3D fHEnergy;
35 TH3D fHResolution;
36 TH2D fHImpact;
37
38 Double_t fChisq;
39 Double_t fBias;
40
41 TH1 *MakePlot(TH3 &h, const char *how);
42 void UpdatePlot(TH3 &h, const char *how, Bool_t logy=kFALSE);
43
44 Double_t GetVal(Int_t i) const;
45 void CalcChisq(Double_t &chisq, Double_t &prob) const;
46
47 Bool_t SetupFill(const MParList *pList);
48 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
49 Bool_t Finalize();
50
51public:
52 MHEnergyEst(const char *name=NULL, const char *title=NULL);
53
54 const TH3D &GetHEnergy() const { return fHEnergy; }
55 void GetWeights(TH1D &hist) const;
56
57 void InitMapping(MHMatrix *mat);
58 void StopMapping();
59
60 void Paint(Option_t *opt="");
61 void Draw(Option_t *option="");
62 void Print(Option_t *o="") const;
63
64 //ClassDef(MHEnergyEst, 2) //
65 ClassDef(MHEnergyEst, 1) // Histogram for the result of the energy reconstruction
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.