27 #ifndef GCTAMODELSPATIALLOOKUP_HPP
28 #define GCTAMODELSPATIALLOOKUP_HPP
76 virtual void clear(
void);
78 virtual std::string
classname(
void)
const;
79 virtual std::string
type(
void)
const;
83 const bool& gradients =
false)
const;
98 const bool& clobber =
false)
const;
99 double norm(
void)
const;
100 void norm(
const double& norm);
109 int table_index(
const int& ienergy,
const int& itheta)
const;
130 return (
"GCTAModelSpatialLookup");
142 return (
"LookupTable");
Abstract spatial model class.
double norm(void) const
Get lookup table model normalisation.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print lookup table information.
double norm(const GVector &vector)
Computes vector norm.
virtual std::string type(void) const
Return model type.
void prepare_table(void)
Prepare lookup table indices.
void fill_buffer(const GCTAObservation &obs, std::vector< double > &buffer)
Fill buffer from events in CTA observation.
const GCTAResponseTable & table(void) const
Return lookup table.
virtual void read(const GXmlElement &xml)
Read model from XML element.
CTA response table class definition.
void set_from_buffer(const std::vector< double > &buffer)
Set lookup table from buffer.
void init_members(void)
Initialise class members.
Energy boundaries container class.
GCTAModelSpatialLookup(void)
Void constructor.
void save(const GFilename &filename, const bool &clobber=false) const
Save lookup table into FITS file.
void load(const GFilename &filename)
Load lookup table.
int m_inx_theta
Theta index.
GModelPar m_norm
Normalization factor.
GFilename m_filename
Name of lookup table.
virtual GCTAModelSpatialLookup & operator=(const GCTAModelSpatialLookup &model)
Assignment operator.
int table_index(const int &ienergy, const int &itheta) const
Return index of lookup table element.
virtual void clear(void)
Clear instance.
Abstract interface for FITS table.
const std::string extname_cta_spatial_lookup
void normalise_table(void)
Normalise lookup table.
virtual void write(GXmlElement &xml) const
Write model into XML element.
Observation container class.
virtual GCTAModelSpatialLookup * clone(void) const
Clone instance.
Spatial lookup table model class.
Abstract spatial model class interface definition.
virtual double mc_max_value(const GCTAObservation &obs) const
Return maximum function value for Monte Carlo simulations.
double value(void) const
Return parameter value.
void fill(const GCTAObservation &obs)
Fill lookup table with events from one CTA observation.
GCTAResponseTable m_lookup
Lookup table.
CTA response table class.
CTA instrument direction class.
virtual double eval(const GCTAInstDir &dir, const GEnergy &energy, const GTime &time, const bool &gradients=false) const
Evaluate function.
void free_members(void)
Delete class members.
virtual ~GCTAModelSpatialLookup(void)
Destructor.
int m_inx_energy
Energy index.
void copy_members(const GCTAModelSpatialLookup &model)
Copy class members.
Class that handles energies in a unit independent way.
virtual std::string classname(void) const
Return class name.