Action #499

Updated by Knödlseder Jürgen over 11 years ago

Here a list of methods in derived classes of @GModel@:

@GModelData@:
None

@GCTAModelRadialAcceptance@:
* @virtual GCTAEventList* mc(const GObservation& obs, GRan& ran) const;@
* @GCTAModelRadial* radial(void) const;@
* @GModelSpectral* spectral(void) const;@
* @GModelTemporal* temporal(void) const;@

Note: @radial()@ should be renamed to @spatial()@ for conformance with @GModelSky@.

@GModelSky@:
* @GModelSpatial* spatial(void) const;@
* @GModelSpectral* spectral(void) const;@
* @GModelTemporal* temporal(void) const;@
* @double value(const GSkyDir& srcDir, const GEnergy& srcEng, const GTime& srcTime);@
* @GVector gradients(const GSkyDir& srcDir, const GEnergy& srcEng, const GTime& srcTime);@
* @GPhotons mc(const double& area, const GSkyDir& dir, const double& radius, const GEnergy& emin, const GEnergy& emax, const GTime& tmin, const GTime& tmax, GRan& ran) const;@

Note: the @spatial()@, @spectral()@ and temporal()@ methods could be exposed to the @GModel@ base class. The @mc()@, @value()@ and @gradients()@ methods are more specific as their arguments would be different for sky and data models.

@GModelDiffuseSource@:
None

@GModelExtendedSource@:
* @GModelRadial* radial(void) const;@
* @GSkyDir dir(void) const;@

Notes:
* the @dir()@ method should be removed as it is implement in the radial model. Installed of calling @dir()@ one should call @spatial().dir()@.
* the @radial()@ method should also be removed as it is a simple cast to the @spatial()@ method.

@GModelPointSource@:
* @GSkyDir dir(void) const;@

Back