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

Last change on this file since 4844 was 3666, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.0 KB
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;
12class MTime;
13
14class MSrcPosCalc : public MTask
15{
16private:
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
33public:
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.