Changeset 1784 for trunk/MagicSoft/Mars/mtemp/MObservatory.h
- Timestamp:
- 02/21/03 19:40:04 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MObservatory.h
r1758 r1784 27 27 void Init(const char *name, const char *title); 28 28 29 Double_t Daf2rad(Int_t deg, UInt_t min, Double_t sec)30 {31 /* pi/(180*3600): arcseconds to radians */32 #define DAS2R 4.8481368110953599358991410235794797595635330237270e-633 return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec);34 }35 36 29 public: 37 30 MObservatory(const char *name=NULL, const char *title=NULL); … … 57 50 LocationName_t GetObservatoryKey() const { return fObservatoryKey; } 58 51 52 static Double_t Dms2Rad(Int_t deg, UInt_t min, Double_t sec) 53 { 54 /* pi/(180*3600): arcseconds to radians */ 55 #define DAS2R 4.8481368110953599358991410235794797595635330237270e-6 56 return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec); 57 } 58 59 static Double_t Hms2Rad(Int_t hor, UInt_t min, Double_t sec) 60 { 61 /* pi/(12*3600): seconds of time to radians */ 62 #define DS2R 7.2722052166430399038487115353692196393452995355905e-5 63 return DS2R * (60.0 * (60.0 * (Double_t)hor + (Double_t)min) + sec); 64 } 65 59 66 ClassDef(MObservatory, 0) 60 67
Note:
See TracChangeset
for help on using the changeset viewer.