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