source: trunk/Mars/mimage/MHHillasExt.h@ 10058

Last change on this file since 10058 was 9854, checked in by tbretz, 14 years ago
Added Histograms for the new variables in MHillasExt to MHHillasExt.
File size: 1.6 KB
Line 
1#ifndef MARS_MHHillasExt
2#define MARS_MHHillasExt
3
4#ifndef ROOT_TH2
5#include <TH2.h>
6#endif
7#ifndef MARS_MH
8#include "MH.h"
9#endif
10
11class MGeomCam;
12class MHillas;
13class MHillasExt;
14
15class MHHillasExt : public MH
16{
17private:
18 MGeomCam *fGeom; //! conversion mm to deg
19 MHillas *fHillas; //! Pointer to the MHillas container
20 MHillasExt *fHillasExt; //! Pointer to the MHillasExt container
21
22 TH1F fHAsym; // [mm] fDist minus dist: center of ellipse, highest pixel
23 TH1F fHM3Long; // [mm] 3rd moment (e-weighted) along major axis
24 TH1F fHM3Trans; // [mm] 3rd moment (e-weighted) along minor axis
25 TH2F fHSlopeL; //
26
27 TH1F fHTimeSpread; // [ns] Spread (rms) of arrival time around mean
28 TH1F fHTimeSpreadW; // [ns] Weighted spread (rms) of arrival time around weighted mean
29 TH1F fHSlopeSpread; // [ns] Spread (rms) of arrival time around slope
30 TH1F fHSlopeSpreadW; // [ns] Weighted spread (rms) of arrival time around slope
31
32 TString fHilName;
33
34public:
35 MHHillasExt(const char *name=NULL, const char *title=NULL);
36
37 void SetHillasName(const char *name) { fHilName = name; }
38
39 Bool_t SetupFill(const MParList *pList);
40 Int_t Fill(const MParContainer *par, const Stat_t w=1);
41
42 TH1 *GetHistByName(const TString name) const;
43 TObject *FindObject(const TObject *obj) const { return 0; }
44 TObject *FindObject(const char *name) const
45 {
46 return (TObject*)GetHistByName(name);
47 }
48
49 void Draw(Option_t *opt=NULL);
50
51 ClassDef(MHHillasExt, 4) // Container which holds histograms for the extended hillas parameters
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.