source: trunk/Mars/mhflux/MHEnergyEst.h@ 16569

Last change on this file since 16569 was 9153, checked in by tbretz, 16 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 TH2D fHResolutionEst;
36 TH2D fHResolutionMC;
37 TH2D fHImpact;
38
39 Double_t fChisq;
40 Double_t fBias;
41
42 TH1 *MakeProj(const char *how);
43 TH1 *MakeProf(TH2 &h);
44 void UpdateProf(TH2 &h, Bool_t logy);
45
46 Double_t GetVal(Int_t i) const;
47 void CalcChisq(Double_t &chisq, Double_t &prob) const;
48
49 Bool_t SetupFill(const MParList *pList);
50 Int_t Fill(const MParContainer *par, const Stat_t w=1);
51 Bool_t Finalize();
52
53public:
54 MHEnergyEst(const char *name=NULL, const char *title=NULL);
55
56 const TH3D &GetHEnergy() const { return fHEnergy; }
57 void GetWeights(TH1D &hist) const;
58
59 void InitMapping(MHMatrix *mat);
60 void StopMapping();
61
62 void Paint(Option_t *opt="");
63 void Draw(Option_t *option="");
64 void Print(Option_t *o="") const;
65
66 ClassDef(MHEnergyEst, 2) // Histogram for the result of the energy reconstruction
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.