source: branches/removing_cpp11_features/mimage/MHillasExt.h@ 18226

Last change on this file since 18226 was 9850, checked in by tbretz, 14 years ago
Adapted MHillasExt member functions. Fixed code to calculate weighted time spread.
File size: 2.2 KB
Line 
1#ifndef MARS_MHillasExt
2#define MARS_MHillasExt
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TArrayF;
9
10class MHillas;
11class MGeomCam;
12class MSignalCam;
13
14class MHillasExt : public MParContainer
15{
16private:
17 // for description see MExtHillas.cc
18 Float_t fAsym; // [mm] fDist minus dist: center of ellipse, highest pixel
19 Float_t fM3Long; // [mm] 3rd moment (e-weighted) along major axis
20 Float_t fM3Trans; // [mm] 3rd moment (e-weighted) along minor axis
21
22 Float_t fSlopeLong; // [ns/mm] Slope of the arrival time along the major axis
23 Float_t fSlopeTrans; // [ns/mm] Slope of the arrival time along the minor axis
24
25 // FIXME: We could try to use the Medians!
26 Float_t fTimeSpread; // [ns] Spread (RMS) of the arrival times around the mean arrival time
27 Float_t fTimeSpreadWeighted; // [ns] Weighted spread (RMS) of the arrival times around the weighted mean arrival time
28
29 Float_t fSlopeSpread; // [ns] Spread (RMS) of the arrival time around the slope along the major axis
30 Float_t fSlopeSpreadWeighted; // [ns] Weighted spread (RMS) of the arrival time around the slope along the major axis
31
32public:
33 MHillasExt(const char *name=NULL, const char *title=NULL);
34
35 void Reset();
36
37 Float_t GetAsym() const { return fAsym; }
38 Float_t GetM3Long() const { return fM3Long; }
39 Float_t GetM3Trans() const { return fM3Trans; }
40 Float_t GetSlopeLong() const { return fSlopeLong; }
41 Float_t GetSlopeTrans() const { return fSlopeTrans; }
42 Float_t GetTimeSpread() const { return fTimeSpread; }
43 Float_t GetTimeSpreadWeighted() const { return fTimeSpreadWeighted; }
44 Float_t GetSlopeSpread() const { return fSlopeSpread; }
45 Float_t GetSlopeSpreadWeighted() const { return fSlopeSpreadWeighted; }
46
47 Int_t Calc(const MGeomCam &geom, const MSignalCam &pix,
48 const MHillas &hil, Int_t island=-1);
49
50 void Print(Option_t *opt=NULL) const;
51 void Print(const MGeomCam &geom) const;
52
53 void Paint(Option_t *o="");
54
55 void Set(const TArrayF &arr);
56
57 ClassDef(MHillasExt, 5) // Storage Container for extended Hillas Parameter
58};
59#endif
Note: See TracBrowser for help on using the repository browser.