| 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 *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 |
|
|---|
| 32 | public:
|
|---|
| 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.