27#ifndef GCTAMODELCUBEBACKGROUND_HPP
28#define GCTAMODELCUBEBACKGROUND_HPP
68 virtual void clear(
void);
70 virtual std::string
classname(
void)
const;
71 virtual std::string
type(
void)
const;
75 const bool& gradients =
false)
const;
120 return (
"GCTAModelCubeBackground");
134 return (
"CTACubeBackground");
CTA event list class interface definition.
CTA observation class interface definition.
Abstract event base class definition.
Abstract data model base class interface definition.
Model parameter class interface definition.
Abstract spatial model base class interface definition.
Abstract spectral model base class interface definition.
Abstract temporal model base class interface definition.
Abstract observation base class interface definition.
XML element node class interface definition.
CTA cube background model class.
GModelTemporal * xml_temporal(const GXmlElement &temporal) const
Return pointer to temporal model from XML element.
std::vector< double > m_npred_values
Model values.
GModelSpectral * spectral(void) const
Return spectral model component.
virtual ~GCTAModelCubeBackground(void)
Destructor.
void free_members(void)
Delete class members.
virtual GCTAModelCubeBackground * clone(void) const
Clone CTA cube background model.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print CTA cube background model information.
GCTAModelCubeBackground(void)
Void constructor.
void init_members(void)
Initialise class members.
virtual std::string type(void) const
Return data model type.
virtual GCTAEventList * mc(const GObservation &obs, GRan &ran) const
Return simulated list of events.
GModelTemporal * temporal(void) const
Return temporal model component.
void copy_members(const GCTAModelCubeBackground &bgd)
Copy class members.
bool valid_model(void) const
Verifies if model has all components.
virtual void clear(void)
Clear CTA cube background model.
virtual void read(const GXmlElement &xml)
Read CTA cube background model from XML element.
std::vector< std::string > m_npred_names
Model names.
virtual std::string classname(void) const
Return class name.
virtual bool is_constant(void) const
Signals if sky model is temporally constant.
virtual double npred(const GEnergy &obsEng, const GTime &obsTime, const GObservation &obs) const
Return spatially integrated background rate in units of events MeV s .
GModelSpectral * xml_spectral(const GXmlElement &spectral) const
Return pointer to spectral model from XML element.
std::vector< GEnergy > m_npred_energies
Model energy.
virtual GCTAModelCubeBackground & operator=(const GCTAModelCubeBackground &model)
Assignment operator.
virtual void write(GXmlElement &xml) const
Write CTA cube background model into XML element.
GModelTemporal * m_temporal
Temporal model.
void set_pointers(void)
Set pointers.
GModelSpectral * m_spectral
Spectral model.
virtual double eval(const GEvent &event, const GObservation &obs, const bool &gradients=false) const
Return background rate in units of events MeV s sr .
std::vector< GTime > m_npred_times
Model time.
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.