source: trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.h@ 1211

Last change on this file since 1211 was 1211, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MHAlphaEnergyTheta
2#define MARS_MHAlphaEnergyTheta
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TH3
8#include "TH3.h"
9#endif
10
11class MMcEvt;
12class MHillasSrc;
13class MEnergyEst;
14class TH2D;
15class MParList;
16
17
18class MHAlphaEnergyTheta : public MH
19{
20private:
21 MMcEvt *fMcEvt; //!
22 MHillasSrc *fHillas; //!
23 MEnergyEst *fEnergy; //!
24
25 TH3D fHist;
26
27 void SetAlphaRange(Axis_t lo, Axis_t up);
28
29public:
30 MHAlphaEnergyTheta(const char *name=NULL, const char *title=NULL);
31
32 virtual Bool_t SetupFill(const MParList *pList);
33 virtual Bool_t Fill(const MParContainer *par);
34
35 const TH3D *GetHist() { return &fHist; }
36 const TH3D *GetHist() const { return &fHist; }
37
38 void Draw(Option_t *option="");
39 TObject *DrawClone(Option_t *option="") const;
40
41 void Substract(const TH3D *h1, const TH3D *h2);
42 void Substract(const MHAlphaEnergyTheta *h1, const MHAlphaEnergyTheta *h2)
43 {
44 Substract(h1->GetHist(), h2->GetHist());
45 }
46
47 TH2D *GetAlphaProjection(Axis_t lo, Axis_t up);
48
49 ClassDef(MHAlphaEnergyTheta, 1) //Histogram to store a 3-Dim histogram in alpha, Energy and theta
50};
51
52#endif
53
54
55
56
57
Note: See TracBrowser for help on using the repository browser.