| Line | |
|---|
| 1 | #ifndef MARS_MSrcPosCalc
|
|---|
| 2 | #define MARS_MSrcPosCalc
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MObservatory;
|
|---|
| 9 | class MPointingPos;
|
|---|
| 10 | class MSrcPosCam;
|
|---|
| 11 | class MGeomCam;
|
|---|
| 12 | class MTime;
|
|---|
| 13 |
|
|---|
| 14 | class MSrcPosCalc : public MTask
|
|---|
| 15 | {
|
|---|
| 16 | private:
|
|---|
| 17 | MObservatory *fObservatory;
|
|---|
| 18 | MPointingPos *fPointPos;
|
|---|
| 19 | MSrcPosCam *fSrcPos;
|
|---|
| 20 | MGeomCam *fGeom;
|
|---|
| 21 | MTime *fTime;
|
|---|
| 22 |
|
|---|
| 23 | Double_t fR; // Distance of source to a fitted star
|
|---|
| 24 | Double_t fDrho; // angle between the two stars
|
|---|
| 25 |
|
|---|
| 26 | Double_t fX; // [deg] x-position of source
|
|---|
| 27 | Double_t fY; // [deg] y-position of source
|
|---|
| 28 |
|
|---|
| 29 | Int_t PreProcess(MParList *pList);
|
|---|
| 30 | Int_t Process();
|
|---|
| 31 | Bool_t ReInit(MParList *pList);
|
|---|
| 32 |
|
|---|
| 33 | public:
|
|---|
| 34 | MSrcPosCalc(const char *name=NULL, const char *title=NULL);
|
|---|
| 35 |
|
|---|
| 36 | // Use is deprecated!
|
|---|
| 37 | void SetOffset(Double_t r, Double_t drho)
|
|---|
| 38 | {
|
|---|
| 39 | fDrho = drho*TMath::DegToRad();
|
|---|
| 40 | fR = r;
|
|---|
| 41 | }
|
|---|
| 42 | void SetPositionXY(Double_t x, Double_t y) { fX=x; fY=y; }
|
|---|
| 43 |
|
|---|
| 44 | ClassDef(MSrcPosCalc, 0) // Derotates the source position in the camera
|
|---|
| 45 | };
|
|---|
| 46 |
|
|---|
| 47 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.