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

Last change on this file since 6081 was 6081, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.2 KB
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
12class MObservatory;
13class MPointingPos;
14class MSrcPosCam;
15class MGeomCam;
16class MTime;
17class MVector3;
18
19class MSrcPosCalc : public MTask
20{
21private:
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
40public:
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.