27 #ifndef GCTACUBEEXPOSURE_HPP
28 #define GCTACUBEEXPOSURE_HPP
65 const std::string& coords,
89 const double&
ontime(
void)
const;
90 double deadc(
void)
const;
95 const bool& clobber =
false)
const;
105 void update(
const double& logE)
const;
137 return (
"GCTACubeExposure");
double operator()(const GSkyDir &dir, const GEnergy &energy) const
Return exposure (in units of cm**2 s)
double m_livetime
Livetime (sec)
void fill(const GObservations &obs, GLog *log=NULL)
Fill exposure cube from observation container.
void write(GFits &file) const
Write CTA exposure cube into FITS file.
std::string classname(void) const
Return class name.
Abstract FITS extension base class.
void clear(void)
Clear instance.
void read(const GFits &fits)
Read exposure cube from FITS object.
Definition of interface for all GammaLib classes.
void write_attributes(GFitsHDU &hdu) const
Write attributes to exposure extension.
GCTACubeExposure & operator=(const GCTACubeExposure &exp)
Assignment operator.
void init_members(void)
Initialise class members.
Sky map class definition.
GCTACubeExposure * clone(void) const
Clone exposure cube.
Good time interval class interface definition.
void update(const double &logE) const
Update 1D cache.
std::string print(const GChatter &chatter=NORMAL) const
Print exposure cube information.
void fill_cube(const GCTAObservation &obs, GLog *log=NULL)
Fill exposure cube for one observation.
void load(const GFilename &filename)
Load exposure cube from FITS file.
Information logger interface definition.
Node array class interface definition.
const GGti & gti(void) const
Return Good Time Intervals.
CTA event bin container class.
GCTACubeExposure(void)
Void constructor.
Energy container class definition.
Interface class for all GammaLib classes.
const GEnergies & energies(void) const
Return energies.
GVector log(const GVector &vector)
Computes natural logarithm of vector elements.
const GFilename & filename(void) const
Return exposure cube filename.
GSkyMap m_cube
Average Exposure cube.
double m_wgt_right
Weight of right node.
GFilename m_filename
Filename.
void read_attributes(const GFitsHDU &hdu)
Read exposure attributes.
double deadc(void) const
Return deadtime correction.
Good Time Interval class.
Observation container class.
void copy_members(const GCTACubeExposure &exp)
Copy class members.
void free_members(void)
Delete class members.
void save(const GFilename &filename, const bool &clobber=false) const
Save exposure cube into FITS file.
void set(const GCTAObservation &obs)
Set exposure cube for one CTA observation.
const double & ontime(void) const
Return ontime.
int m_inx_right
Index of right node.
const GSkyMap & cube(void) const
Return exposure cube.
const double & livetime(void) const
Return livetime.
void set_eng_axis(void)
Set nodes for a logarithmic (base 10) energy axis.
int m_inx_left
Index of left node.
GVector exp(const GVector &vector)
Computes exponential of vector elements.
virtual ~GCTACubeExposure(void)
Destructor.
GNodeArray m_elogmeans
Mean energy for the Exposure cube.
const double & ontime(void) const
Returns ontime.
GEnergies m_energies
Energy values for the Exposure cube.
Filename class interface definition.
GGti m_gti
Good time interval for the Exposure cube.
double m_wgt_left
Weight of left node.
Class that handles energies in a unit independent way.