source: trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h@ 3664

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