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