Commit 68cc1d5553bc3caa4836b4674948847add332c67
1 parent
886dd597
Add m_instrument member.
Showing
1 changed file
with
3 additions
and
1 deletions
inst/cta/include/GCTAObservation.hpp
| @@ -48,6 +48,7 @@ class GCTAObservation : public GObservation { | @@ -48,6 +48,7 @@ class GCTAObservation : public GObservation { | ||
| 48 | public: | 48 | public: |
| 49 | // Constructors and destructors | 49 | // Constructors and destructors |
| 50 | GCTAObservation(void); | 50 | GCTAObservation(void); |
| 51 | + GCTAObservation(const std::string& instrument); | ||
| 51 | GCTAObservation(const GCTAObservation& obs); | 52 | GCTAObservation(const GCTAObservation& obs); |
| 52 | virtual ~GCTAObservation(void); | 53 | virtual ~GCTAObservation(void); |
| 53 | 54 | ||
| @@ -60,7 +61,7 @@ public: | @@ -60,7 +61,7 @@ public: | ||
| 60 | virtual void response(const GResponse& rsp); | 61 | virtual void response(const GResponse& rsp); |
| 61 | virtual GCTAResponse* response(void) const; | 62 | virtual GCTAResponse* response(void) const; |
| 62 | virtual GCTAPointing* pointing(void) const; | 63 | virtual GCTAPointing* pointing(void) const; |
| 63 | - virtual std::string instrument(void) const; | 64 | + virtual std::string instrument(void) const { return m_instrument; } |
| 64 | virtual double ontime(void) const { return m_ontime; } | 65 | virtual double ontime(void) const { return m_ontime; } |
| 65 | virtual double livetime(void) const { return m_livetime; } | 66 | virtual double livetime(void) const { return m_livetime; } |
| 66 | virtual double deadc(const GTime& time) const { return m_deadc; } | 67 | virtual double deadc(const GTime& time) const { return m_deadc; } |
| @@ -98,6 +99,7 @@ protected: | @@ -98,6 +99,7 @@ protected: | ||
| 98 | double npred_temp(const GModel& model) const; | 99 | double npred_temp(const GModel& model) const; |
| 99 | 100 | ||
| 100 | // Protected members | 101 | // Protected members |
| 102 | + std::string m_instrument; //!< Instrument name | ||
| 101 | std::string m_eventfile; //!< Event filename | 103 | std::string m_eventfile; //!< Event filename |
| 102 | GCTAResponse* m_response; //!< Pointer to instrument response functions | 104 | GCTAResponse* m_response; //!< Pointer to instrument response functions |
| 103 | GCTAPointing* m_pointing; //!< Pointer to pointing direction | 105 | GCTAPointing* m_pointing; //!< Pointer to pointing direction |