|
Last change
on this file since 1683 was 1681, checked in by rwagner, 23 years ago |
|
Preliminary version of classes for the Visibility Plotter. You need
slalib installed in Mars/..
Makefile therefore is currently not included in central MARS Makefile.
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 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 | char* fObsName;
|
|---|
| 12 | Double_t fLatitude;
|
|---|
| 13 | Double_t fLongitude;
|
|---|
| 14 | Double_t fElevation;
|
|---|
| 15 | Double_t fgDegToRad;
|
|---|
| 16 | // TH1F fHorizon;
|
|---|
| 17 |
|
|---|
| 18 | public:
|
|---|
| 19 | MObservatoryLocation(const char *name=NULL, const char *title=NULL);
|
|---|
| 20 | ~MObservatoryLocation();
|
|---|
| 21 |
|
|---|
| 22 | inline void SetLatitude(Double_t latitude) { fLatitude = latitude; }
|
|---|
| 23 | inline void SetLongitude(Double_t longitude) { fLongitude = longitude; }
|
|---|
| 24 | inline void SetElevation(Double_t elevation) { fElevation = elevation; }
|
|---|
| 25 | inline void SetObservatoryName(char* name) { fObsName = name; }
|
|---|
| 26 |
|
|---|
| 27 | void MObservatoryLocation::Print(Option_t *) const;
|
|---|
| 28 |
|
|---|
| 29 | inline Double_t GetLatitude() { return fLatitude/fgDegToRad; }
|
|---|
| 30 | inline Double_t GetLongitude() { return fLongitude/fgDegToRad; }
|
|---|
| 31 | inline Double_t GetElevation() { return fElevation; }
|
|---|
| 32 | Double_t GetLatitudeRad() { return fLatitude; }
|
|---|
| 33 | Double_t GetLongitudeRad() { return fLongitude; }
|
|---|
| 34 | char* GetObservatoryName() { return fObsName; }
|
|---|
| 35 | // Double_t GetHorizon(Double_t phi);
|
|---|
| 36 | // void SetHorizonLine(TF1 hor) { fHorizon = hor; }
|
|---|
| 37 | // TH1F GetHorizonLine() { return fHorizon; }
|
|---|
| 38 |
|
|---|
| 39 | ClassDef(MObservatoryLocation, 1)
|
|---|
| 40 |
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.