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