| Line | |
|---|
| 1 | #ifndef MARS_MHillasSrc
|
|---|
| 2 | #define MARS_MHillasSrc
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MHillas
|
|---|
| 5 | #include "MHillas.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MSrcPosCam;
|
|---|
| 9 |
|
|---|
| 10 | class MHillasSrc : public MParContainer
|
|---|
| 11 | {
|
|---|
| 12 | private:
|
|---|
| 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 | public:
|
|---|
| 20 | MHillasSrc(const char *name=NULL, const char *title=NULL);
|
|---|
| 21 |
|
|---|
| 22 | void SetSrcPos(const MSrcPosCam *pos) { fSrcPos = pos; }
|
|---|
| 23 | const MSrcPosCam *GetSrcPos() const { return fSrcPos; }
|
|---|
| 24 |
|
|---|
| 25 | void Reset();
|
|---|
| 26 |
|
|---|
| 27 | Float_t GetAlpha() const { return fAlpha; }
|
|---|
| 28 | Float_t GetDist() const { return fDist; }
|
|---|
| 29 | Float_t GetCosDeltaAlpha() const { return fCosDeltaAlpha; }
|
|---|
| 30 |
|
|---|
| 31 | void Print(Option_t *opt=NULL) const;
|
|---|
| 32 |
|
|---|
| 33 | virtual Bool_t Calc(const MHillas *hillas);
|
|---|
| 34 |
|
|---|
| 35 | void Set(const TArrayF &arr);
|
|---|
| 36 |
|
|---|
| 37 | ClassDef(MHillasSrc, 4) // Container to hold source position dependant parameters
|
|---|
| 38 | };
|
|---|
| 39 |
|
|---|
| 40 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.