27 #ifndef GCTACUBEBACKGROUND_HPP
28 #define GCTACUBEBACKGROUND_HPP
59 const std::string& coords,
79 double integral(
const double& logE)
const;
84 const bool& clobber =
false)
const;
96 void update(
const double& logE)
const;
121 return (
"GCTACubeBackground");
void init_members(void)
Initialise class members.
GEbounds m_ebounds
Energy boundaries of background cube.
void free_members(void)
Delete class members.
const GFilename & filename(void) const
Return background cube filename.
CTA cube background class.
GCTACubeBackground(void)
Void constructor.
Random number generator class.
std::string print(const GChatter &chatter=NORMAL) const
Print background information.
Sky map class definition.
void update(const double &logE) const
Update 1D cache.
void write(GFits &file) const
Write CTA background cube into FITS object.
int m_inx_right
Index of right node.
virtual ~GCTACubeBackground(void)
Destructor.
GCTACubeBackground * clone(void) const
Clone background.
GFilename m_filename
Name of background response file.
double m_wgt_left
Weight of left node.
void read(const GFits &fits)
Read background cube from FITS object.
Information logger interface definition.
void set_eng_axis(void)
Set nodes for a logarithmic (base 10) energy axis.
Node array class interface definition.
CTA event bin container class.
GNodeArray m_elogmeans
Mean energy for the background cube.
void clear(void)
Clear background.
const GEbounds & ebounds(void) const
Return energy boundaries.
Energy boundaries container class.
Interface class for all GammaLib classes.
GVector log(const GVector &vector)
Computes natural logarithm of vector elements.
const GSkyMap & cube(void) const
Return background cube.
int m_inx_left
Index of left node.
double integral(const double &logE) const
Return spatially integrated background rate in units of events MeV s .
void copy_members(const GCTACubeBackground &bgd)
Copy class members.
GCTACubeBackground & operator=(const GCTACubeBackground &bgd)
Assignment operator.
Observation container class.
void load(const GFilename &filename)
Load background cube from FITS file.
void fill(const GObservations &obs, GLog *log=NULL)
Fill background cube from observation container.
std::string classname(void) const
Return class name.
void save(const GFilename &filename, const bool &clobber=false) const
Save background cube into FITS file.
Energy boundaries class interface definition.
double m_wgt_right
Weight of right node.
double operator()(const GCTAInstDir &dir, const GEnergy &energy) const
Return background rate in units of events MeV s sr .
CTA instrument direction class.
Filename class interface definition.
Class that handles energies in a unit independent way.
GSkyMap m_cube
Background cube.