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