| 1 | #ifndef MARS_MObservatoryLocation
|
|---|
| 2 | #define MARS_MObservatoryLocation
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MObservatoryLocation : public MParContainer
|
|---|
| 9 | {
|
|---|
| 10 | private:
|
|---|
| 11 | TString fObsName;
|
|---|
| 12 | Double_t fLatitude;
|
|---|
| 13 | Double_t fLongitude;
|
|---|
| 14 | Double_t fElevation;
|
|---|
| 15 | static Double_t fgDegToRad;
|
|---|
| 16 | // TH1F fHorizon;
|
|---|
| 17 |
|
|---|
| 18 | void Init(const char *name, const char *title);
|
|---|
| 19 |
|
|---|
| 20 | public:
|
|---|
| 21 | enum LocationName_t
|
|---|
| 22 | {
|
|---|
| 23 | kMagic1,
|
|---|
| 24 | kMagic2,
|
|---|
| 25 | kRobertGarten
|
|---|
| 26 | };
|
|---|
| 27 |
|
|---|
| 28 | MObservatoryLocation(const char *name=NULL, const char *title=NULL);
|
|---|
| 29 | MObservatoryLocation(LocationName_t name, const char *name=NULL, const char *title=NULL);
|
|---|
| 30 | ~MObservatoryLocation();
|
|---|
| 31 |
|
|---|
| 32 | void SetLatitude(Double_t latitude) { fLatitude = latitude; }
|
|---|
| 33 | void SetLongitude(Double_t longitude) { fLongitude = longitude; }
|
|---|
| 34 | void SetElevation(Double_t elevation) { fElevation = elevation; }
|
|---|
| 35 | void SetObservatoryName(TString name) { fObsName = name; }
|
|---|
| 36 |
|
|---|
| 37 | void Print(Option_t *) const;
|
|---|
| 38 |
|
|---|
| 39 | Double_t GetLatitude() const { return fLatitude*kRad2Deg; }
|
|---|
| 40 | Double_t GetLongitude() const { return fLongitude*kRad2Deg; }
|
|---|
| 41 | Double_t GetElevation() const { return fElevation; }
|
|---|
| 42 | Double_t GetLatitudeRad() const { return fLatitude; }
|
|---|
| 43 | Double_t GetLongitudeRad() const { return fLongitude; }
|
|---|
| 44 | TString GetObservatoryName() const { return fObsName; }
|
|---|
| 45 | // Double_t GetHorizon(Double_t phi);
|
|---|
| 46 | // void SetHorizonLine(TF1 hor) { fHorizon = hor; }
|
|---|
| 47 | // TH1F GetHorizonLine() { return fHorizon; }
|
|---|
| 48 |
|
|---|
| 49 | ClassDef(MObservatoryLocation, 1)
|
|---|
| 50 |
|
|---|
| 51 | };
|
|---|
| 52 |
|
|---|
| 53 | #endif
|
|---|
| 54 |
|
|---|