27#ifndef GCTAMODELBACKGROUND_HPP
28#define GCTAMODELBACKGROUND_HPP
72 virtual void clear(
void);
74 virtual std::string
classname(
void)
const;
75 virtual std::string
type(
void)
const;
79 const bool& gradients =
false)
const;
122 return (
"GCTAModelBackground");
136 return (
"CTABackground");
CTA event list class interface definition.
Abstract spatial model class interface definition.
Single parameter function abstract base class definition.
Abstract data model base class interface definition.
Abstract spectral model base class interface definition.
Abstract temporal model base class interface definition.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual std::string type(void) const
Return model type.
virtual bool is_constant(void) const
Signals if model is temporally constant.
GCTAModelSpatial * xml_spatial(const GXmlElement &spatial) const
Return pointer to spatial model from XML element.
virtual void clear(void)
Clear instance.
GModelTemporal * m_temporal
Temporal model.
virtual GCTAEventList * mc(const GObservation &obs, GRan &ran) const
Return simulated list of events.
GModelSpectral * m_spectral
Spectral model.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print model information.
void set_pointers(void)
Set pointers.
GModelTemporal * xml_temporal(const GXmlElement &temporal) const
Return pointer to temporal model from XML element.
GCTAModelSpatial * m_spatial
Spatial model.
void copy_members(const GCTAModelBackground &model)
Copy class members.
virtual std::string classname(void) const
Return class name.
virtual GCTAModelBackground * clone(void) const
Clone instance.
GModelSpectral * xml_spectral(const GXmlElement &spectral) const
Return pointer to spectral model from XML element.
virtual double eval(const GEvent &event, const GObservation &obs, const bool &gradients=false) const
Return background rate in units of events MeV s sr .
GCTAModelSpatial * spatial(void) const
Return spatial model component.
GModelSpectral * spectral(void) const
Return spectral model component.
virtual GCTAModelBackground & operator=(const GCTAModelBackground &model)
Assignment operator.
virtual double npred(const GEnergy &energy, const GTime &time, const GObservation &obs) const
Return spatially integrated background rate in units of events MeV s .
GModelTemporal * temporal(void) const
Return temporal model component.
virtual ~GCTAModelBackground(void)
Destructor.
virtual void write(GXmlElement &xml) const
Write model into XML element.
void init_members(void)
Initialise class members.
bool valid_model(void) const
Verifies if model has all components.
GCTAModelBackground(void)
Void constructor.
void free_members(void)
Delete class members.
Abstract spatial model class.
Class that handles energies in a unit independent way.
Abstract interface for the event classes.
Abstract data model class.
Abstract spectral model base class.
Abstract temporal model base class.
virtual std::string type(void) const =0
Abstract observation base class.
Random number generator class.