Ignore:
Timestamp:
02/21/03 19:40:04 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/MObservatory.h

    r1758 r1784  
    2727    void Init(const char *name, const char *title);
    2828
    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-6
    33         return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec);
    34     }
    35 
    3629public:
    3730    MObservatory(const char *name=NULL, const char *title=NULL);
     
    5750    LocationName_t GetObservatoryKey() const { return fObservatoryKey; }
    5851
     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
    5966    ClassDef(MObservatory, 0)
    6067
Note: See TracChangeset for help on using the changeset viewer.