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