#ifndef MARS_MHillasSrc #define MARS_MHillasSrc #ifndef MARS_MHillas #include "MHillas.h" #endif class MSrcPosCam; class MHillasSrc : public MParContainer { private: const MSrcPosCam *fSrcPos; //! Source position in the camere Float_t fAlpha; // [deg] angle of major axis with vector to src Float_t fDist; // [mm] distance between src and center of ellipse Float_t fDCA; // [mm] distance between ref. point and shower axis Float_t fDDCA; // [rad] angle between major axis and x-axis [0, 2*pi] Float_t fCosDeltaAlpha; // [1] cosine of angle between d and a public: MHillasSrc(const char *name=NULL, const char *title=NULL); void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; } const MSrcPosCam *GetSrcPos() const { return fSrcPos; } void Reset(); Float_t GetAlpha() const { return fAlpha; } Float_t GetDist() const { return fDist; } Float_t GetDCA() const { return fDCA; } Float_t GetDDCA() const { return fDDCA; } Float_t GetCosDeltaAlpha() const { return fCosDeltaAlpha; } void Print(Option_t *opt=NULL) const; void Print(const MGeomCam &geom) const; virtual Bool_t Calc(const MHillas *hillas); void Set(const TArrayF &arr); ClassDef(MHillasSrc, 5) // Container to hold source position dependant parameters }; #endif