27#ifndef GCTAMODELSKYCUBE_HPP
28#define GCTAMODELSKYCUBE_HPP
74 virtual void clear(
void);
76 virtual std::string
classname(
void)
const;
77 virtual std::string
type(
void)
const;
81 const bool& gradients =
false)
const;
135 return (
"GCTAModelSkyCube");
149 return (
"CTASkyCube");
CTA event list class interface definition.
Energy boundaries class interface definition.
Filename class interface definition.
Abstract data model base class interface definition.
Model parameter class interface definition.
Abstract spectral model base class interface definition.
Abstract temporal model base class interface definition.
Node array class interface definition.
Sky map class definition.
CTA sky cube model class.
virtual std::string classname(void) const
Return class name.
void init_members(void)
Initialise class members.
GModelSpectral * spectral(void) const
Return spectral model component.
std::vector< GTime > m_npred_times
Model time.
bool valid_model(void) const
Verifies if model has all components.
GNodeArray m_elogmeans
Mean log10(TeV) energies for the sky cube.
std::vector< GEnergy > m_npred_energies
Model energy.
void copy_members(const GCTAModelSkyCube &bgd)
Copy class members.
GModelTemporal * m_temporal
Temporal model.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print CTA cube background model information.
virtual void read(const GXmlElement &xml)
Read CTA sky cube model from XML element.
GModelTemporal * temporal(void) const
Return temporal model component.
void write_xml_spatial(GXmlElement &xml) const
Write spatial model into XML element.
virtual ~GCTAModelSkyCube(void)
Destructor.
virtual bool is_constant(void) const
Signals if sky model is temporally constant.
virtual void write(GXmlElement &xml) const
Write CTA cube background model into XML element.
GFilename m_filename
Filename.
const GFilename & filename(void) const
Return filename.
GModelTemporal * xml_temporal(const GXmlElement &temporal) const
Return pointer to temporal model from XML element.
GModelSpectral * xml_spectral(const GXmlElement &spectral) const
Return pointer to spectral model from XML element.
GEbounds m_ebounds
Energy boundaries of sky cube.
virtual GCTAEventList * mc(const GObservation &obs, GRan &ran) const
Return simulated list of events.
void free_members(void)
Delete class members.
virtual GCTAModelSkyCube & operator=(const GCTAModelSkyCube &model)
Assignment operator.
virtual std::string type(void) const
Return data model type.
void read_xml_spatial(const GXmlElement &xml)
Read spatial model from XML element.
std::vector< std::string > m_npred_names
Model names.
virtual void clear(void)
Clear CTA sky cube model.
virtual GCTAModelSkyCube * clone(void) const
Clone CTA sky cube model.
GModelSpectral * m_spectral
Spectral model.
GModelPar m_norm
Normalisation parameter.
void load(const GFilename &filename)
Load sky cube.
GCTAModelSkyCube(void)
Void constructor.
std::vector< double > m_npred_values
Model values.
virtual double eval(const GEvent &event, const GObservation &obs, const bool &gradients=false) const
Return event rate in units of events MeV s sr .
void set_pointers(void)
Set pointers.
virtual double npred(const GEnergy &obsEng, const GTime &obsTime, const GObservation &obs) const
Return spatially integrated event rate in units of events MeV s .
Energy boundaries container 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.