1 | #ifndef MARS_MHillas
|
---|
2 | #define MARS_MHillas
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TArrayF;
|
---|
9 | class TVector2;
|
---|
10 |
|
---|
11 | class MGeomCam;
|
---|
12 | class MSignalCam;
|
---|
13 |
|
---|
14 | class MHillas : public MParContainer
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | // for description see MHillas.cc
|
---|
18 | Float_t fLength; // [mm] major axis of ellipse
|
---|
19 | Float_t fWidth; // [mm] minor axis of ellipse
|
---|
20 | Float_t fDelta; // [rad] angle of major axis with x-axis
|
---|
21 | Float_t fSize; // [#CerPhot] sum of content of all pixels (number of Cherenkov photons)
|
---|
22 | Float_t fMeanX; // [mm] x-coordinate of center of ellipse
|
---|
23 | Float_t fMeanY; // [mm] y-coordinate of center of ellipse
|
---|
24 |
|
---|
25 | Float_t fSinDelta; // [1] sin of Delta (to be used in derived classes)
|
---|
26 | Float_t fCosDelta; // [1] cos of Delta (to be used in derived classes)
|
---|
27 |
|
---|
28 | public:
|
---|
29 | MHillas(const char *name=NULL, const char *title=NULL);
|
---|
30 |
|
---|
31 | void Reset();
|
---|
32 |
|
---|
33 | Int_t Calc(const MGeomCam &geom, const MSignalCam &pix, Int_t island=-1);
|
---|
34 |
|
---|
35 | void Print(const MGeomCam &geom) const;
|
---|
36 | void Print(Option_t *opt=NULL) const;
|
---|
37 | void Paint(Option_t *opt=NULL);
|
---|
38 |
|
---|
39 | Float_t GetLength() const { return fLength; }
|
---|
40 | Float_t GetWidth() const { return fWidth; }
|
---|
41 | Float_t GetDelta() const { return fDelta; }
|
---|
42 | Float_t GetSize() const { return fSize; }
|
---|
43 | Float_t GetMeanX() const { return fMeanX; }
|
---|
44 | Float_t GetMeanY() const { return fMeanY; }
|
---|
45 | Double_t GetDist0() const { return TMath::Hypot(fMeanX, fMeanY); } // return distance to center
|
---|
46 |
|
---|
47 | TVector2 GetMean() const;
|
---|
48 |
|
---|
49 | Double_t GetBorderLine() const;
|
---|
50 | Double_t GetArea() const;
|
---|
51 |
|
---|
52 | Float_t GetCosDelta() const { return fCosDelta; }
|
---|
53 | Float_t GetSinDelta() const { return fSinDelta; }
|
---|
54 |
|
---|
55 | void Set(const TArrayF &arr);
|
---|
56 |
|
---|
57 | ClassDef(MHillas, 3) // Storage Container for Hillas Parameter
|
---|
58 | };
|
---|
59 |
|
---|
60 | #endif
|
---|