Commit 97fff6cd9ba1f01dd378e9fcd8fef8e5979e16d6
1 parent
e45c687b
add opt() method
Showing
2 changed files
with
5 additions
and
2 deletions
pyext/ctlike.i
| @@ -28,6 +28,7 @@ | @@ -28,6 +28,7 @@ | ||
| 28 | * @brief CTA maximum likelihood tool Python interface | 28 | * @brief CTA maximum likelihood tool Python interface |
| 29 | ***************************************************************************/ | 29 | ***************************************************************************/ |
| 30 | class ctlike : public GApplication { | 30 | class ctlike : public GApplication { |
| 31 | + | ||
| 31 | public: | 32 | public: |
| 32 | // Constructors and destructors | 33 | // Constructors and destructors |
| 33 | ctlike(void); | 34 | ctlike(void); |
| @@ -41,7 +42,8 @@ public: | @@ -41,7 +42,8 @@ public: | ||
| 41 | void execute(void); | 42 | void execute(void); |
| 42 | void run(void); | 43 | void run(void); |
| 43 | void save(void); | 44 | void save(void); |
| 44 | - GObservations& obs(void) { return m_obs; } | 45 | + GObservations& obs(void); |
| 46 | + GOptimizer* opt(void); | ||
| 45 | void get_parameters(void); | 47 | void get_parameters(void); |
| 46 | void optimize_lm(void); | 48 | void optimize_lm(void); |
| 47 | void load_unbinned(const std::string& evfile); | 49 | void load_unbinned(const std::string& evfile); |
src/ctlike/ctlike.hpp
| @@ -26,7 +26,7 @@ | @@ -26,7 +26,7 @@ | ||
| 26 | 26 | ||
| 27 | /* __Definitions _________________________________________________________ */ | 27 | /* __Definitions _________________________________________________________ */ |
| 28 | #define CTLIKE_NAME "ctlike" | 28 | #define CTLIKE_NAME "ctlike" |
| 29 | -#define CTLIKE_VERSION "00-02-00" | 29 | +#define CTLIKE_VERSION "00-02-01" |
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | /***********************************************************************//** | 32 | /***********************************************************************//** |
| @@ -52,6 +52,7 @@ public: | @@ -52,6 +52,7 @@ public: | ||
| 52 | void run(void); | 52 | void run(void); |
| 53 | void save(void); | 53 | void save(void); |
| 54 | GObservations& obs(void) { return m_obs; } | 54 | GObservations& obs(void) { return m_obs; } |
| 55 | + GOptimizer* opt(void) { return m_opt; } | ||
| 55 | void get_parameters(void); | 56 | void get_parameters(void); |
| 56 | void optimize_lm(void); | 57 | void optimize_lm(void); |
| 57 | void load_unbinned(const std::string& evfile); | 58 | void load_unbinned(const std::string& evfile); |