1 | #ifndef MARS_MSourcePosfromStarPos
|
---|
2 | #define MARS_MSourcePosfromStarPos
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MSourcePosfromStarPos //
|
---|
7 | // //
|
---|
8 | // Task to calculate the position of the source in the camera from
|
---|
9 | // the position of a known star in the camera
|
---|
10 | // //
|
---|
11 | /////////////////////////////////////////////////////////////////////////////
|
---|
12 |
|
---|
13 | #ifndef MARS_MTask
|
---|
14 | #include "MTask.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | #ifndef ROOT_TArrayI
|
---|
18 | #include <TArrayI.h>
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | #ifndef ROOT_TArrayD
|
---|
22 | #include <TArrayD.h>
|
---|
23 | #endif
|
---|
24 |
|
---|
25 | class TList;
|
---|
26 | class MRawRunHeader;
|
---|
27 | class MGeomCam;
|
---|
28 | class MSrcPosCam;
|
---|
29 |
|
---|
30 |
|
---|
31 | class MSourcePosfromStarPos : public MTask
|
---|
32 | {
|
---|
33 | private:
|
---|
34 | const MRawRunHeader *fRun; //!
|
---|
35 | const MGeomCam *fGeomCam; //! Camera Geometry used to calculate Hillas
|
---|
36 | MSrcPosCam *fSrcPos; //!
|
---|
37 |
|
---|
38 | ifstream *fIn; // input file
|
---|
39 | TList *fFileNames; // array which contains the \0-terminated file names
|
---|
40 |
|
---|
41 | Float_t fMm2Deg;
|
---|
42 |
|
---|
43 | Int_t fRuns; // current number of entries in TArray
|
---|
44 | Int_t fSize; // final number of entries in TArray
|
---|
45 |
|
---|
46 | Double_t fDecStar;
|
---|
47 | Double_t fRaStar;
|
---|
48 |
|
---|
49 | Double_t fDecSource;
|
---|
50 | Double_t fRaSource;
|
---|
51 |
|
---|
52 | Double_t fxSource;
|
---|
53 | Double_t fySource;
|
---|
54 | Double_t fdxSource;
|
---|
55 | Double_t fdySource;
|
---|
56 |
|
---|
57 | TArrayI fRunNr;
|
---|
58 | TArrayD fThetaTel;
|
---|
59 | TArrayD fPhiTel;
|
---|
60 | TArrayD fdThetaTel;
|
---|
61 | TArrayD fdPhiTel;
|
---|
62 | TArrayD fxStar;
|
---|
63 | TArrayD fyStar;
|
---|
64 | TArrayD fdxStar;
|
---|
65 | TArrayD fdyStar;
|
---|
66 |
|
---|
67 | Int_t AddFile(const char *fname, Int_t dummy=-1);
|
---|
68 | Bool_t OpenNextFile();
|
---|
69 | void ReadData();
|
---|
70 | void FixSize();
|
---|
71 |
|
---|
72 | Int_t PreProcess(MParList *pList);
|
---|
73 | Bool_t ReInit(MParList *pList);
|
---|
74 | Int_t Process();
|
---|
75 | Int_t PostProcess();
|
---|
76 |
|
---|
77 | public:
|
---|
78 | MSourcePosfromStarPos(const char *name=NULL, const char *title=NULL);
|
---|
79 | ~MSourcePosfromStarPos();
|
---|
80 |
|
---|
81 | void SetSourceAndStarPosition(Double_t decSource, Double_t raSource,
|
---|
82 | Double_t decStar, Double_t raStar);
|
---|
83 |
|
---|
84 | void SourcefromStar(Double_t &, Double_t &, Double_t &,
|
---|
85 | Double_t &, Double_t &, Double_t &, Double_t &, Double_t &, Double_t &,
|
---|
86 | Double_t &, Double_t &, Double_t &, Double_t &, Double_t &, Double_t & );
|
---|
87 |
|
---|
88 | ClassDef(MSourcePosfromStarPos, 0) // Task to calculate the source position from a star position
|
---|
89 | };
|
---|
90 |
|
---|
91 | #endif
|
---|
92 |
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 |
|
---|
99 |
|
---|