Commit 5e9e1a1f4b35218db4e39f63b81424b2ce102caa

Authored by knodlseder
1 parent bfe660a0

add depdir(), depend() and deptime() methods

include/GModelSpatial.hpp
... ... @@ -34,7 +34,10 @@
34 34 *
35 35 * @brief Abstract interface definition for the spatial model class.
36 36 *
37   - * This class implements the spatial component of gamma-ray data model.
  37 + * This class implements the spatial component of the factorized source
  38 + * model.
  39 + * The depdir(), depeng(), and deptime() methods specify whether the spatial
  40 + * models depends on the srcDir, srcEng, and srcTime parameters.
38 41 ***************************************************************************/
39 42 class GModelSpatial {
40 43  
... ... @@ -62,6 +65,9 @@ public:
62 65 const GTime& srcTime,
63 66 const GResponse& rsp,
64 67 const GPointing& pnt) = 0;
  68 + virtual bool depdir(void) const = 0;
  69 + virtual bool depeng(void) const = 0;
  70 + virtual bool deptime(void) const = 0;
65 71  
66 72 protected:
67 73 // Protected methods
... ...
include/GModelSpatialPtsrc.hpp
... ... @@ -60,6 +60,9 @@ public:
60 60 double eval_gradients(const GInstDir& dir, const GSkyDir& srcDir,
61 61 const GEnergy& srcEng, const GTime& srcTime,
62 62 const GResponse& rsp, const GPointing& pnt);
  63 + bool depdir(void) const { return false; }
  64 + bool depeng(void) const { return true; }
  65 + bool deptime(void) const { return true; }
63 66 double ra(void) const { return m_ra.real_value(); }
64 67 double dec(void) const { return m_dec.real_value(); }
65 68  
... ...