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

Last change on this file since 7353 was 6954, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.2 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 MMcEvt *fMcEvt; //!
25 MParameterD *fEnergy; //!
26 MParameterD *fResult; //!
27
28 Int_t fMap[100]; // FIXME!
29 MHMatrix *fMatrix; //!
30
31 TH3D fHEnergy;
32 TH3D fHResolution;
33 TH2D fHImpact;
34
35 Double_t fChisq;
36 Double_t fBias;
37
38 TH1 *MakePlot(TH3 &h, const char *how);
39 void UpdatePlot(TH3 &h, const char *how, Bool_t logy=kFALSE);
40
41 Double_t GetVal(Int_t i) const;
42
43 Bool_t SetupFill(const MParList *pList);
44 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
45 Bool_t Finalize();
46
47public:
48 MHEnergyEst(const char *name=NULL, const char *title=NULL);
49
50 const TH3D &GetHEnergy() const { return fHEnergy; }
51 void GetWeights(TH1D &hist) const;
52
53 void InitMapping(MHMatrix *mat);
54 void StopMapping();
55
56 void Paint(Option_t *opt="");
57 void Draw(Option_t *option="");
58 void Print(Option_t *o="") const;
59
60 ClassDef(MHEnergyEst, 1) //
61
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.