source: trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTime.h@ 1264

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