Last change
on this file since 19766 was 18280, checked in by ftemme, 9 years ago |
Reintegrating MarsWobble branch into trunk
|
File size:
1.7 KB
|
Line | |
---|
1 | #ifndef MARS_MSimPointingPos
|
---|
2 | #define MARS_MSimPointingPos
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MParList;
|
---|
9 | class MCorsikaEvtHeader;
|
---|
10 | class MCorsikaRunHeader;
|
---|
11 | class MPointingPos;
|
---|
12 |
|
---|
13 | class MSimPointingPos : public MTask
|
---|
14 | {
|
---|
15 | private:
|
---|
16 | MCorsikaRunHeader *fRunHeader; //! Header storing event information
|
---|
17 | MCorsikaEvtHeader *fEvtHeader; //! Header storing event information
|
---|
18 | MPointingPos *fPointing; //! Output storing telescope pointing position in local (telescope) coordinate system
|
---|
19 | MPointingPos *fSimSourcePosition; //! Output storing simulated source pointing position in local (telescope) coordinate system
|
---|
20 |
|
---|
21 | Double_t fOffTargetDistance; // [rad] Distance of the observed off-target position from the source
|
---|
22 | Double_t fOffTargetPhi; // [rad] Rotation angle of the off-target position (phi==0 means south, phi=90 west) [0;2pi], phi<0 means random
|
---|
23 |
|
---|
24 | // MSimPointingPos
|
---|
25 | void GetDelta(Double_t &dtheta, Double_t &dphi) const;
|
---|
26 |
|
---|
27 | // MParContainer
|
---|
28 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
|
---|
29 |
|
---|
30 | // MTask
|
---|
31 | Int_t PreProcess(MParList *pList);
|
---|
32 | Bool_t ReInit(MParList *pList);
|
---|
33 | Int_t Process();
|
---|
34 |
|
---|
35 | public:
|
---|
36 | MSimPointingPos(const char *name=NULL, const char *title=NULL);
|
---|
37 |
|
---|
38 | // Getter
|
---|
39 | Double_t GetOffTargetDistance() const;
|
---|
40 | Double_t GetOffTargetPhi() const;
|
---|
41 |
|
---|
42 | // Setter
|
---|
43 | void SetOffTargetDistance(Double_t d=0);
|
---|
44 | void SetOffTargetPhi(Double_t p=-1);
|
---|
45 |
|
---|
46 | // MSimPointingPos
|
---|
47 | Bool_t IsOffTargetObservation() const { return fOffTargetDistance!=0; }
|
---|
48 |
|
---|
49 | // TObject
|
---|
50 |
|
---|
51 | ClassDef(MSimPointingPos, 0) // Task to simulate the pointing position (mirror orientation)
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif
|
---|
55 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.