source: trunk/MagicSoft/Mars/mastro/MObservatory.h@ 3326

Last change on this file since 3326 was 3326, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MObservatory
2#define MARS_MObservatory
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MObservatory : public MParContainer
9{
10public:
11 enum LocationName_t
12 {
13 kMagic1,
14 kWuerzburgCity
15 };
16
17private:
18 LocationName_t fObservatoryKey; //!
19
20 TString fObservatoryName; //! Name of the observatory
21
22 Double_t fLongitude; //! [rad] Longitude of observatory (+ east)
23 Double_t fLatitude; //! [rad] Latitude of observatory (+ north)
24
25 Double_t fHeight; //! [m] height of observatory
26
27 void Init(const char *name, const char *title);
28
29public:
30 MObservatory(const char *name=NULL, const char *title=NULL);
31 MObservatory(LocationName_t key, const char *name=NULL, const char *title=NULL);
32
33 void SetLocation(LocationName_t name);
34
35 void Print(Option_t *o=0) const;
36
37 const TString &GetObservatoryName() const { return fObservatoryName; }
38
39 Double_t GetLatitudeDeg() const { return fLatitude*kRad2Deg; } //[deg]
40 Double_t GetLongitudeDeg() const { return fLongitude*kRad2Deg; } //[deg]
41
42 Double_t GetLatitudeRad() const { return fLatitude; } //[rad]
43 Double_t GetLongitudeRad() const { return fLongitude; } //[rad]
44
45 Double_t GetPhi() const { return fLatitude; } //[rad]
46 Double_t GetElong() const { return fLongitude; } //[rad]
47
48 Double_t GetHeight() const { return fHeight; }
49
50 LocationName_t GetObservatoryKey() const { return fObservatoryKey; }
51
52 ClassDef(MObservatory, 0) // class storing observatory locations
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.