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