source: trunk/MagicSoft/Mars/manalysis/MHillas.h@ 1312

Last change on this file since 1312 was 1218, checked in by tbretz, 23 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#ifndef MARS_MHillas
2#define MARS_MHillas
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TEllipse;
9
10class MGeomCam;
11class MCerPhotEvt;
12
13class MHillas : public MParContainer
14{
15private:
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 TEllipse *fEllipse; //! Graphical Object to Display Ellipse
28
29protected:
30 //
31 // This is only for calculations in derived classes because
32 // we don't want to read/write this data members
33 //
34 Float_t GetCosDelta() const { return fCosDelta; }
35 Float_t GetSinDelta() const { return fSinDelta; }
36
37public:
38 MHillas(const char *name=NULL, const char *title=NULL);
39 ~MHillas();
40
41 void Reset();
42
43 virtual Bool_t Calc(const MGeomCam &geom, const MCerPhotEvt &pix);
44
45 virtual void Print(Option_t *opt=NULL) const;
46 virtual void Draw(Option_t *opt=NULL);
47 //virtual void Paint(Option_t *);
48
49 virtual void Clear(Option_t *opt=NULL);
50
51 Float_t GetLength() const { return fLength; }
52 Float_t GetWidth() const { return fWidth; }
53 Float_t GetDelta() const { return fDelta; }
54 Float_t GetSize() const { return fSize; }
55 Float_t GetMeanX() const { return fMeanX; }
56 Float_t GetMeanY() const { return fMeanY; }
57
58 virtual void AsciiRead(ifstream &fin);
59 //virtual void AsciiWrite(ofstream &fout) const;
60
61 ClassDef(MHillas, 1) // Storage Container for Hillas Parameter
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.