27#ifndef GCTAEVENTCUBE_HPP
28#define GCTAEVENTCUBE_HPP
80 virtual void clear(
void);
82 virtual std::string
classname(
void)
const;
83 virtual int size(
void)
const;
84 virtual int dim(
void)
const;
85 virtual int naxis(
const int& axis)
const;
88 const bool& clobber =
false)
const;
91 virtual int number(
void)
const;
103 int npix(
void)
const;
104 int ebins(
void)
const;
119 void set_bin(
const int& index);
144 return (
"GCTAEventCube");
CTA event bin class interface definition.
CTA instrument direction class interface definition.
CTA pointing class interface definition.
Energy boundaries class interface definition.
Energy value class definition.
Abstract event bin container class interface definition.
Abstract FITS image base class definition.
FITS table abstract base class interface definition.
Good time interval class interface definition.
Sky map class definition.
Time class interface definition.
GCTAEventBin class interface definition.
CTA event bin container class.
void init_bin(void)
Initialise event bin.
virtual void load(const GFilename &filename)
Load CTA event cube from FITS file.
const GEnergy & energy(const int &index) const
Return energy of cube layer.
const GSkyMap & counts(void) const
Return event cube counts as sky map.
GSkyMap m_weights
Cube weights stored as sky map.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event cube information.
virtual void clear(void)
Clear CTA event cube.
void read_cntmap(const GFitsImage &hdu)
Read CTA counts map from HDU.
void copy_members(const GCTAEventCube &cube)
Copy class members.
GCTAEventBin m_bin
Actual event bin.
virtual int dim(void) const
Return dimension of event cube.
const GTime & time(void) const
Return event cube mean time.
virtual int size(void) const
Return number of bins in event cube.
void read_ebds(const GFitsTable &hdu)
Read energy boundaries from HDU.
int npix(void) const
Return number of pixels in one energy bins of the event cube.
int nx(void) const
Return number of bins in X direction.
void set_detxy(const GCTAPointing &pnt)
Set DETX and DETY coordinates.
virtual std::string classname(void) const
Return class name.
double m_ontime
Event cube ontime (sec)
void init_members(void)
Initialise class members.
GCTAEventCube(void)
Void constructor.
virtual int naxis(const int &axis) const
Return number of bins in axis.
virtual GCTAEventCube * clone(void) const
Clone CTA event cube.
std::vector< double > m_solidangle
Array of solid angles (sr)
std::vector< GCTAInstDir > m_dirs
Array of event directions.
GTime m_time
Event cube mean time.
std::vector< GEnergy > m_ewidth
Array of energy bin widths.
virtual void set_energies(void)
Set log mean energies and energy widths of event cube.
virtual GCTAEventCube & operator=(const GCTAEventCube &cube)
Assignment operator.
virtual GCTAEventBin * operator[](const int &index)
Event bin access operator.
virtual void read(const GFits &file)
Read CTA event cube from FITS file.
virtual void save(const GFilename &filename, const bool &clobber=false) const
Save CTA event cube into FITS file.
void free_members(void)
Delete class members.
bool m_has_pnt
Event cube has pointing.
const GSkyMap & weights(void) const
Return event cube weights as sky map.
virtual void write(GFits &file) const
Write CTA event cube into FITS file.
virtual ~GCTAEventCube(void)
Destructor.
virtual void set_times(void)
Set mean event time and ontime of event cube.
GSkyMap m_map
Counts cube stored as sky map.
void set_bin(const int &index)
Set event bin.
GCTAPointing m_pnt
Event cube pointing.
void read_gti(const GFitsTable &hdu)
Read GTIs from HDU.
std::vector< GEnergy > m_energies
Array of log mean energies.
void set_directions(void)
Set sky directions and solid angles of events cube.
int ebins(void) const
Return number of energy bins in the event cube.
virtual int number(void) const
Return number of events in cube.
int ny(void) const
Return number of bins in Y direction.
Energy boundaries container class.
Class that handles energies in a unit independent way.
Abstract event bin container class.
const GGti & gti(void) const
Return Good Time Intervals.
Abstract FITS image base class.
Abstract interface for FITS table.
Good Time Interval class.
const int & nmaps(void) const
Returns number of maps.
const int & nx(void) const
Returns number of pixels in x coordinate.
const int & npix(void) const
Returns number of pixels.
const int & ny(void) const
Returns number of pixels in y coordinate.
const std::string extname_cta_counts
const std::string extname_cta_weights