source: branches/AddingGoogleTestEnvironment/msim/MSimPointingPos.h@ 18459

Last change on this file since 18459 was 9367, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.5 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 *fPointing; //! Output storing telescope poiting position in local (telescope) coordinate system
19
20 Double_t fOffTargetDistance; // [rad] Distance of the observed off-target position from the source
21 Double_t fOffTargetPhi; // [rad] Rotation angle of the off-target position (phi==0 means south, phi=90 west) [0;2pi], phi<0 means random
22
23 // MSimPointingPos
24 void GetDelta(Double_t &dtheta, Double_t &dphi) const;
25
26 // MParContainer
27 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
28
29 // MTask
30 Int_t PreProcess(MParList *pList);
31 Bool_t ReInit(MParList *pList);
32 Int_t Process();
33
34public:
35 MSimPointingPos(const char *name=NULL, const char *title=NULL);
36
37 // Getter
38 Double_t GetOffTargetDistance() const;
39 Double_t GetOffTargetPhi() const;
40
41 // Setter
42 void SetOffTargetDistance(Double_t d=0);
43 void SetOffTargetPhi(Double_t p=-1);
44
45 // MSimPointingPos
46 Bool_t IsOffTargetObservation() const { return fOffTargetDistance!=0; }
47
48 // TObject
49
50 ClassDef(MSimPointingPos, 0) // Task to simulate the pointing position (mirror orientation)
51};
52
53#endif
54
Note: See TracBrowser for help on using the repository browser.