source: trunk/MagicSoft/Mars/mimage/MHillasSrc.h@ 5657

Last change on this file since 5657 was 5080, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHillasSrc
2#define MARS_MHillasSrc
3
4#ifndef MARS_MHillas
5#include "MHillas.h"
6#endif
7
8class MSrcPosCam;
9
10class MHillasSrc : public MParContainer
11{
12private:
13 const MSrcPosCam *fSrcPos; //! Source position in the camere
14
15 Float_t fAlpha; // [deg] angle of major axis with vector to src
16 Float_t fDist; // [mm] distance between src and center of ellipse
17 Float_t fCosDeltaAlpha; // [1] cosine of angle between d and a
18
19 Float_t fDCA; // [mm] Distance to closest approach 'DCA'
20 Float_t fDCADelta; // [deg] Angle of the shower axis with respect to the x-axis
21
22public:
23 MHillasSrc(const char *name=NULL, const char *title=NULL);
24
25 void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; }
26 const MSrcPosCam *GetSrcPos() const { return fSrcPos; }
27
28 void Reset();
29
30 Float_t GetAlpha() const { return fAlpha; }
31 Float_t GetDist() const { return fDist; }
32 Float_t GetCosDeltaAlpha() const { return fCosDeltaAlpha; }
33 Float_t GetDCA() const { return fDCA; }
34 Float_t GetDCADelta() const { return fDCADelta; }
35
36 void Print(Option_t *opt=NULL) const;
37 void Print(const MGeomCam &geom) const;
38 void Paint(Option_t *opt=NULL);
39
40 virtual Int_t Calc(const MHillas &hillas);
41
42 void Set(const TArrayF &arr);
43
44 ClassDef(MHillasSrc, 5) // Container to hold source position dependant parameters
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.