source: trunk/MagicSoft/Mars/mimage/MHillas.h@ 2445

Last change on this file since 2445 was 2026, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MHillas
2#define MARS_MHillas
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TArrayF;
9class TEllipse;
10
11class MGeomCam;
12class MCerPhotEvt;
13
14class MHillas : public MParContainer
15{
16private:
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 TEllipse *fEllipse; //! Graphical Object to Display Ellipse
29
30public:
31 MHillas(const char *name=NULL, const char *title=NULL);
32 ~MHillas();
33
34 void Reset();
35
36 Int_t Calc(const MGeomCam &geom, const MCerPhotEvt &pix);
37
38 void Print(Option_t *opt=NULL) const;
39 void Draw(Option_t *opt=NULL);
40
41 void Clear(Option_t *opt=NULL);
42
43 Float_t GetLength() const { return fLength; }
44 Float_t GetWidth() const { return fWidth; }
45 Float_t GetDelta() const { return fDelta; }
46 Float_t GetSize() const { return fSize; }
47 Float_t GetMeanX() const { return fMeanX; }
48 Float_t GetMeanY() const { return fMeanY; }
49
50 Float_t GetCosDelta() const { return fCosDelta; }
51 Float_t GetSinDelta() const { return fSinDelta; }
52
53 void Set(const TArrayF &arr);
54
55 ClassDef(MHillas, 3) // Storage Container for Hillas Parameter
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.