source: trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.h@ 3396

Last change on this file since 3396 was 3274, checked in by wittek, 21 years ago
*** empty log message ***
File size: 3.1 KB
Line 
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#ifndef ROOT_TMatrixD
26#include <TMatrixD.h>
27#endif
28
29class TList;
30class MRawRunHeader;
31class MMcEvt;
32class MGeomCam;
33class MSrcPosCam;
34
35
36class MSourcePosfromStarPos : public MTask
37{
38 private:
39 const MRawRunHeader *fRun; //!
40 const MGeomCam *fGeomCam; //! Camera Geometry used to calculate Hillas
41 MMcEvt *fMcEvt;
42 MSrcPosCam *fSrcPos; //!
43
44 ifstream *fIn; // input file
45 TList *fFileNames; // array which contains the \0-terminated file names
46
47 Double_t fMm2Deg;
48 Double_t fDistCameraReflector;
49
50 Int_t fRuns; // current number of runs
51 Int_t fSize; // final number of runs
52 Int_t fStars; // number of stars
53
54
55 Double_t fDecSource;
56 Double_t fRaSource;
57 Double_t fxSource;
58 Double_t fySource;
59 Double_t fdxSource;
60 Double_t fdySource;
61
62 TArrayI fRunNr;
63 TArrayD fThetaTel;
64 TArrayD fPhiTel;
65 TArrayD fdThetaTel;
66 TArrayD fdPhiTel;
67
68 TArrayD fDecStar;
69 TArrayD fRaStar;
70 TMatrixD fxStar;
71 TMatrixD fyStar;
72 TMatrixD fdxStar;
73 TMatrixD fdyStar;
74
75
76 Bool_t OpenNextFile();
77 void ReadData();
78 void FixSize();
79
80 Int_t PreProcess(MParList *pList);
81 Bool_t ReInit(MParList *pList);
82 Int_t Process();
83 Int_t PostProcess();
84
85public:
86 MSourcePosfromStarPos(const char *name=NULL, const char *title=NULL);
87 ~MSourcePosfromStarPos();
88
89 void SetSourceAndStarPosition(
90 TString nameSource,
91 Double_t decSourceDeg, Double_t decSourceMin, Double_t decSourceSec,
92 Double_t raSourceHour, Double_t raSourceMin, Double_t raSourceSec,
93 TString nameStar,
94 Double_t decStarDeg, Double_t decStarMin, Double_t decStarSec,
95 Double_t raStarHour, Double_t raStarMin, Double_t raStarSec );
96
97 Int_t AddFile(const char *fname, Int_t dummy=-1);
98
99 void AddStar(
100 TString nameStar,
101 Double_t decStarDeg, Double_t decStarMin, Double_t decStarSec,
102 Double_t raStarHour, Double_t raStarMin, Double_t raStarSec );
103
104 void SourcefromStar(Double_t &,
105 TArrayD &, TArrayD &, Double_t &, Double_t &, Double_t &, Double_t &,
106 TArrayD &, TArrayD &, TArrayD &, TArrayD &, Double_t &, Double_t &,
107 Double_t &, Double_t & );
108
109 ClassDef(MSourcePosfromStarPos, 0) // Task to calculate the source position from a star position
110};
111
112#endif
113
114
115
116
117
118
119
120
Note: See TracBrowser for help on using the repository browser.