source: trunk/MagicSoft/Mars/msim/MSimPointingPos.h@ 9336

Last change on this file since 9336 was 9336, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MSimPointingPos
2#define MARS_MSimPointingPos
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MParList;
9class MCorsikaEvtHeader;
10class MCorsikaRunHeader;
11class MPointingPos;
12
13class MSimPointingPos : public MTask
14{
15private:
16 MCorsikaRunHeader *fRunHeader; //! Header storing event information
17 MCorsikaEvtHeader *fEvtHeader; //! Header storing event information
18 MPointingPos *fPointingCorsika; //! Output storing telescope poiting position in corsika coordinate system (modulo magnetig field declination)
19 MPointingPos *fPointingLocal; //! Output storing telescope poiting 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 // MParContainer
25 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
26
27 // MTask
28 Int_t PreProcess(MParList *pList);
29 //Bool_t ReInit(MParList *pList);
30 Int_t Process();
31
32public:
33 MSimPointingPos(const char *name=NULL, const char *title=NULL);
34
35 // Getter
36 Double_t GetOffTargetDistance() const { return fOffTargetDistance*TMath::RadToDeg(); }
37 Double_t GetOffTargetPhi() const { return fOffTargetPhi*TMath::RadToDeg(); }
38
39 // Setter
40 void SetOffTargetDistance(Double_t d=-1) { fOffTargetDistance = d*TMath::DegToRad(); }
41 void SetOffTargetPhi(Double_t p=-1) { fOffTargetPhi = p*TMath::DegToRad(); }
42
43 // MSimPointingPos
44 Bool_t IsOffTargetObservation() const { return fOffTargetDistance>0; }
45
46 // TObject
47
48 ClassDef(MSimPointingPos, 0) // Task to simulate the pointing position (mirror orientation)
49};
50
51#endif
52
Note: See TracBrowser for help on using the repository browser.