Changeset 2750 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 12/29/03 18:19:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MObservatory.cc
r2578 r2750 30 30 ///////////////////////////////////////////////////////////////////////////// 31 31 #include "MObservatory.h" 32 33 #include "MAstro.h" 32 34 33 35 #include "MLog.h" … … 63 65 // Values taken from the GPS Receiver (avg 20h) 64 66 // on 26/11/2003 at 17h30 in the counting house 65 fLatitude = Dms2Rad( 28, 45, 42.576);66 fLongitude = Dms2Rad(-17, 53, 26.460);67 fLatitude = MAstro::Dms2Rad(28, 45, 42.576, '+'); 68 fLongitude = MAstro::Dms2Rad(17, 53, 26.460, '-'); 67 69 fHeight = 2196.5; // m 68 70 fObservatoryName = "Observatorio del Roque de los Muchachos (Magic1)"; … … 70 72 71 73 case kWuerzburgCity: 72 fLatitude = Dms2Rad(51, 38, 48.0);73 fLongitude = Dms2Rad( 9, 56, 36.0);74 fLatitude = MAstro::Dms2Rad(51, 38, 48.0); 75 fLongitude = MAstro::Dms2Rad( 9, 56, 36.0); 74 76 fHeight = 300; 75 77 fObservatoryName = "Wuerzburg City"; -
trunk/MagicSoft/Mars/mtemp/MObservatory.h
r1784 r2750 50 50 LocationName_t GetObservatoryKey() const { return fObservatoryKey; } 51 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-656 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-563 return DS2R * (60.0 * (60.0 * (Double_t)hor + (Double_t)min) + sec);64 }65 66 52 ClassDef(MObservatory, 0) 67 53
Note:
See TracChangeset
for help on using the changeset viewer.