146 virtual void clear(
void);
148 virtual std::string
classname(
void)
const;
149 virtual std::string
type(
void)
const;
157 const GTime& obsTime,
173 const GSkyDir& dir,
const double& radius,
218 double eval(
const double& x);
229 double eval(
const double& x);
251 return (
"GModelSky");
void set_type(void)
Set model type based on spatial model component.
const GModelSky * m_parent
Sky model.
Abstract model base class interface definition.
GModelTemporal * m_temporal
Temporal model.
Energy value class definition.
Random number generator class definition.
Abstract spectral model base class.
Sparse matrix class interface definition.
XML element node class interface definition.
void copy_members(const GModelSky &model)
Copy class members.
GModelSpectral * spectral(void) const
Return spectral model component.
GModelTemporal * xml_temporal(const GXmlElement &temporal) const
Return pointer to temporal model from XML element.
double eflux_error(const GEnergy &emin, const GEnergy &emax) const
Return sky model energy flux error.
Abstract temporal model base class.
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
Return simulated list of photons.
Sky direction class interface definition.
virtual void clear(void)
Clear sky model.
GModelSpatial * xml_spatial(const GXmlElement &spatial) const
Return pointer to spatial model from XML element.
GModelTemporal * temporal(void) const
Return temporal model component.
void signal_analytical_gradients(const GObservation &obs) const
Signal all parameters that have analytical gradients for a given observation.
Abstract interface for the event classes.
void set_pointers(void)
Set parameter pointers.
virtual ~GModelSky(void)
Destructor.
const GSkyRegion * m_region
Sky region.
Abstract spatial model base class interface definition.
Random number generator class.
bool valid_model(void) const
Verifies if model has all components.
const GModelSky * m_parent
Sky model.
std::string m_type
Model type.
GModelSpectral * m_spectral
Spectral model.
Photon container class definition.
double flux_error(const GEnergy &emin, const GEnergy &emax) const
Return sky model photon flux error.
virtual bool is_constant(void) const
Signals if sky model is temporally constant.
Model parameter class interface definition.
virtual void write(GXmlElement &xml) const
Write model into XML element.
Class that handles photons.
flux_kern(const GModelSky *parent, const GSkyRegion *region)
eflux_kern(const GModelSky *parent, const GSkyRegion *region)
Abstract temporal model base class interface definition.
Abstract interface for the sky region class.
double eval(const double &x)
Integration kernel for flux_kern() class.
Single parameter function abstract base class definition.
GVector gradients(const GPhoton &photon)
Return parameter gradients of sky model for a given photon.
double eflux(const GEnergy &emin, const GEnergy &emax) const
Return sky model energy flux.
double eval(const double &x)
Integration kernel for eflux_kern() class.
virtual double npred(const GEnergy &obsEng, const GTime &obsTime, const GObservation &obs) const
Return spatially integrated sky model.
const GSkyRegion * m_region
Sky region.
Abstract event base class definition.
virtual void read(const GXmlElement &xml)
Read sky model from XML element.
Abstract observation base class.
virtual GModelSky * clone(void) const
Clone sky model.
Abstract observation base class interface definition.
virtual GModelSky & operator=(const GModelSky &model)
Assignment operator.
Abstract spectral model base class interface definition.
double value(const GPhoton &photon)
Return value of sky model for a given photon.
virtual std::string type(void) const =0
Single parameter function abstract base class.
void init_members(void)
Initialise class members.
virtual std::string type(void) const
Return sky model type.
GModelSpatial * m_spatial
Spatial model.
GModelSpatial * spatial(void) const
Return spatial model component.
Abstract spatial model base class.
GModelSky(void)
Void constructor.
double flux(const GEnergy &emin, const GEnergy &emax) const
Return sky model photon flux.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print model information.
virtual std::string classname(void) const
Return class name.
Time class interface definition.
virtual double eval(const GEvent &event, const GObservation &obs, const bool &gradients=false) const
Evaluate sky model for a given event of an observation.
void free_members(void)
Delete class members.
Class that handles energies in a unit independent way.
GModelSpectral * xml_spectral(const GXmlElement &spectral) const
Return pointer to spectral model from XML element.