source: trunk/MagicSoft/Mars/mtemp/meth/MHillasSrc.h@ 6723

Last change on this file since 6723 was 4095, checked in by commichau, 21 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 fDCA; // [mm] distance between ref. point and shower axis
18 Float_t fDDCA; // [rad] angle between major axis and x-axis [0, 2*pi]
19 Float_t fCosDeltaAlpha; // [1] cosine of angle between d and a
20
21public:
22 MHillasSrc(const char *name=NULL, const char *title=NULL);
23
24 void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; }
25 const MSrcPosCam *GetSrcPos() const { return fSrcPos; }
26
27 void Reset();
28
29 Float_t GetAlpha() const { return fAlpha; }
30 Float_t GetDist() const { return fDist; }
31 Float_t GetDCA() const { return fDCA; }
32 Float_t GetDDCA() const { return fDDCA; }
33 Float_t GetCosDeltaAlpha() const { return fCosDeltaAlpha; }
34
35 void Print(Option_t *opt=NULL) const;
36 void Print(const MGeomCam &geom) const;
37
38 virtual Bool_t Calc(const MHillas *hillas);
39
40 void Set(const TArrayF &arr);
41
42 ClassDef(MHillasSrc, 5) // Container to hold source position dependant parameters
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.