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

Last change on this file since 7841 was 7103, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.7 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 MHillasSrc(const MHillasSrc &h) { h.Copy(*this); }
25
26 void Copy(TObject &o) const
27 {
28 MHillasSrc &src = static_cast<MHillasSrc&>(o);
29 src.fSrcPos = fSrcPos;
30 src.fAlpha = fAlpha;
31 src.fDist = fDist;
32 src.fCosDeltaAlpha = fCosDeltaAlpha;
33 src.fDCA = fDCA;
34 src.fDCADelta = fDCADelta;
35 }
36
37 void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; }
38 const MSrcPosCam *GetSrcPos() const { return fSrcPos; }
39
40 void Reset();
41
42 Float_t GetAlpha() const { return fAlpha; }
43 Float_t GetDist() const { return fDist; }
44 Float_t GetCosDeltaAlpha() const { return fCosDeltaAlpha; }
45 Float_t GetDCA() const { return fDCA; }
46 Float_t GetDCADelta() const { return fDCADelta; }
47
48 void Print(Option_t *opt=NULL) const;
49 void Print(const MGeomCam &geom) const;
50 void Paint(Option_t *opt=NULL);
51
52 virtual Int_t Calc(const MHillas &hillas);
53
54 void Set(const TArrayF &arr);
55
56 ClassDef(MHillasSrc, 5) // Container to hold source position dependant parameters
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.