From 3faf3764477759d2f86f2e93e69d6bb44729c24a Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 9 Oct 2014 23:58:00 +0200 Subject: [PATCH] Add ctselect::time_reference() method to access the CTA time reference. --- src/ctselect/ctselect.hpp | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/ctselect/ctselect.hpp b/src/ctselect/ctselect.hpp index 172bf25..326b84d 100644 --- a/src/ctselect/ctselect.hpp +++ b/src/ctselect/ctselect.hpp @@ -56,11 +56,12 @@ public: ctselect& operator=(const ctselect& app); // Methods - void clear(void); - void execute(void); - void run(void); - void save(void); - const GObservations& obs(void) const; + void clear(void); + void execute(void); + void run(void); + void save(void); + const GObservations& obs(void) const; + const GTimeReference& time_reference(void) const; protected: // Protected methods @@ -113,4 +114,16 @@ const GObservations& ctselect::obs(void) const return m_obs; } + +/***********************************************************************//** + * @brief Return CTA time reference + * + * @return CTA time reference + ***************************************************************************/ +inline +const GTimeReference& ctselect::time_reference(void) const +{ + return m_cta_ref; +} + #endif /* CTSELECT_HPP */ -- libgit2 0.21.4