Commit 3faf3764477759d2f86f2e93e69d6bb44729c24a
1 parent
0e005d47
Add ctselect::time_reference() method to access the CTA time reference.
Showing
1 changed file
with
18 additions
and
5 deletions
src/ctselect/ctselect.hpp
| @@ -56,11 +56,12 @@ public: | @@ -56,11 +56,12 @@ public: | ||
| 56 | ctselect& operator=(const ctselect& app); | 56 | ctselect& operator=(const ctselect& app); |
| 57 | 57 | ||
| 58 | // Methods | 58 | // Methods |
| 59 | - void clear(void); | ||
| 60 | - void execute(void); | ||
| 61 | - void run(void); | ||
| 62 | - void save(void); | ||
| 63 | - const GObservations& obs(void) const; | 59 | + void clear(void); |
| 60 | + void execute(void); | ||
| 61 | + void run(void); | ||
| 62 | + void save(void); | ||
| 63 | + const GObservations& obs(void) const; | ||
| 64 | + const GTimeReference& time_reference(void) const; | ||
| 64 | 65 | ||
| 65 | protected: | 66 | protected: |
| 66 | // Protected methods | 67 | // Protected methods |
| @@ -113,4 +114,16 @@ const GObservations& ctselect::obs(void) const | @@ -113,4 +114,16 @@ const GObservations& ctselect::obs(void) const | ||
| 113 | return m_obs; | 114 | return m_obs; |
| 114 | } | 115 | } |
| 115 | 116 | ||
| 117 | + | ||
| 118 | +/***********************************************************************//** | ||
| 119 | + * @brief Return CTA time reference | ||
| 120 | + * | ||
| 121 | + * @return CTA time reference | ||
| 122 | + ***************************************************************************/ | ||
| 123 | +inline | ||
| 124 | +const GTimeReference& ctselect::time_reference(void) const | ||
| 125 | +{ | ||
| 126 | + return m_cta_ref; | ||
| 127 | +} | ||
| 128 | + | ||
| 116 | #endif /* CTSELECT_HPP */ | 129 | #endif /* CTSELECT_HPP */ |