Changeset 6346 for trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h
- Timestamp:
- 02/10/05 13:43:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h
r6082 r6346 20 20 { 21 21 private: 22 enum { 23 kIsOwner = BIT(14) 24 }; 25 22 26 MObservatory *fObservatory; 23 27 MPointingPos *fPointPos; … … 27 31 MTime *fTime; 28 32 33 // MSrcPosCalc 29 34 TVector2 CalcXYinCamera(const MVector3 &pos0, const MVector3 &pos) const; 35 TString GetRaDec(const MPointingPos &pos) const; 36 Bool_t GetCoordinate(TString str, Double_t &ret) const; 37 void FreeSourcePos(); 30 38 39 // MParContainer 40 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 41 42 // MTask 31 43 Int_t PreProcess(MParList *pList); 32 44 Int_t Process(); … … 34 46 public: 35 47 MSrcPosCalc(const char *name=NULL, const char *title=NULL); 48 ~MSrcPosCalc() { FreeSourcePos(); } 36 49 37 ClassDef(MSrcPosCalc, 0) // Derotates the source position in the camera 50 // MSrcPosCalc 51 void SetSourcePos(MPointingPos *pos) { FreeSourcePos(); fSourcePos = pos; } 52 void SetSourcePos(Double_t ra, Double_t dec); 53 void SetOwner(Bool_t b=kTRUE) { b ? SetBit(kIsOwner) : ResetBit(kIsOwner); } // Make MSrcPosCalc owner of fSourcePos 54 55 ClassDef(MSrcPosCalc, 0) // Calculates the source position in the camera 38 56 }; 39 57
Note:
See TracChangeset
for help on using the changeset viewer.