Commit c9908a82655630fa55895ee7583e0c49ec9433e3

Authored by Jürgen Knödlseder
1 parent b8a73133

Add cube access methods.

pyext/ctexpcube.i
... ... @@ -46,16 +46,17 @@ public:
46 46 virtual ~ctexpcube(void);
47 47  
48 48 // Methods
49   - void clear(void);
50   - void execute(void);
51   - void run(void);
52   - void save(void);
53   - GObservations& obs(void);
54   - void get_parameters(void);
55   - void get_obs(void);
56   - void set_response(void);
57   - void get_ebounds(void);
58   - void set_from_cntmap(const std::string& filename);
  49 + void clear(void);
  50 + void execute(void);
  51 + void run(void);
  52 + void save(void);
  53 + const GObservations& obs(void) const;
  54 + const GCTAExposure& expcube(void) const;
  55 + void get_parameters(void);
  56 + void get_obs(void);
  57 + void set_response(void);
  58 + void get_ebounds(void);
  59 + void set_from_cntmap(const std::string& filename);
59 60 };
60 61  
61 62  
... ...
pyext/ctpsfcube.i
... ... @@ -46,16 +46,17 @@ public:
46 46 virtual ~ctpsfcube(void);
47 47  
48 48 // Methods
49   - void clear(void);
50   - void execute(void);
51   - void run(void);
52   - void save(void);
53   - GObservations& obs(void) { return m_obs; }
54   - void get_parameters(void);
55   - void get_obs(void);
56   - void set_response(void);
57   - void get_ebounds(void);
58   - void set_from_cntmap(const std::string& filename);
  49 + void clear(void);
  50 + void execute(void);
  51 + void run(void);
  52 + void save(void);
  53 + const GObservations& obs(void) const;
  54 + const GCTAMeanPsf& psfcube(void) const;
  55 + void get_parameters(void);
  56 + void get_obs(void);
  57 + void set_response(void);
  58 + void get_ebounds(void);
  59 + void set_from_cntmap(const std::string& filename);
59 60 };
60 61  
61 62 /***********************************************************************//**
... ...
src/ctexpcube/ctexpcube.hpp
... ... @@ -55,16 +55,17 @@ public:
55 55 ctexpcube& operator=(const ctexpcube& app);
56 56  
57 57 // Methods
58   - void clear(void);
59   - void execute(void);
60   - void run(void);
61   - void save(void);
62   - GObservations& obs(void) { return m_obs; }
63   - void get_parameters(void);
64   - void get_obs(void);
65   - void set_response(void);
66   - void get_ebounds(void);
67   - void set_from_cntmap(const std::string& filename);
  58 + void clear(void);
  59 + void execute(void);
  60 + void run(void);
  61 + void save(void);
  62 + const GObservations& obs(void) const;
  63 + const GCTAExposure& expcube(void) const;
  64 + void get_parameters(void);
  65 + void get_obs(void);
  66 + void set_response(void);
  67 + void get_ebounds(void);
  68 + void set_from_cntmap(const std::string& filename);
68 69  
69 70 protected:
70 71 // Protected methods
... ... @@ -83,4 +84,28 @@ protected:
83 84 GEbounds m_ebounds; //!< Energy boundaries
84 85 };
85 86  
  87 +
  88 +/***********************************************************************//**
  89 + * @brief Return observation container
  90 + *
  91 + * @return Observation container
  92 + ***************************************************************************/
  93 +inline
  94 +const GObservations& ctexpcube::obs(void) const
  95 +{
  96 + return (m_obs);
  97 +}
  98 +
  99 +
  100 +/***********************************************************************//**
  101 + * @brief Return exposure cube
  102 + *
  103 + * @return Exposure cube
  104 + ***************************************************************************/
  105 +inline
  106 +const GCTAExposure& ctexpcube::expcube(void) const
  107 +{
  108 + return (m_expcube);
  109 +}
  110 +
86 111 #endif /* CTEXPCUBE_HPP */
... ...
src/ctpsfcube/ctpsfcube.hpp
... ... @@ -55,16 +55,17 @@ public:
55 55 ctpsfcube& operator=(const ctpsfcube& app);
56 56  
57 57 // Methods
58   - void clear(void);
59   - void execute(void);
60   - void run(void);
61   - void save(void);
62   - GObservations& obs(void) { return m_obs; }
63   - void get_parameters(void);
64   - void get_obs(void);
65   - void set_response(void);
66   - void get_ebounds(void);
67   - void set_from_cntmap(const std::string& filename);
  58 + void clear(void);
  59 + void execute(void);
  60 + void run(void);
  61 + void save(void);
  62 + const GObservations& obs(void) const;
  63 + const GCTAMeanPsf& psfcube(void) const;
  64 + void get_parameters(void);
  65 + void get_obs(void);
  66 + void set_response(void);
  67 + void get_ebounds(void);
  68 + void set_from_cntmap(const std::string& filename);
68 69  
69 70 protected:
70 71 // Protected methods
... ... @@ -83,4 +84,28 @@ protected:
83 84 GEbounds m_ebounds; //!< Energy boundaries
84 85 };
85 86  
  87 +
  88 +/***********************************************************************//**
  89 + * @brief Return observation container
  90 + *
  91 + * @return Observation container
  92 + ***************************************************************************/
  93 +inline
  94 +const GObservations& ctpsfcube::obs(void) const
  95 +{
  96 + return (m_obs);
  97 +}
  98 +
  99 +
  100 +/***********************************************************************//**
  101 + * @brief Return PSF cube
  102 + *
  103 + * @return PSF cube
  104 + ***************************************************************************/
  105 +inline
  106 +const GCTAMeanPsf& ctpsfcube::psfcube(void) const
  107 +{
  108 + return (m_psfcube);
  109 +}
  110 +
86 111 #endif /* CTPSFCUBE_HPP */
... ...