27#ifndef GLATEVENTCUBE_HPP
28#define GLATEVENTCUBE_HPP
68 virtual void clear(
void);
70 virtual std::string
classname(
void)
const;
71 virtual int size(
void)
const;
72 virtual int dim(
void)
const;
73 virtual int naxis(
const int& axis)
const;
76 const bool& clobber =
false)
const;
79 virtual int number(
void)
const;
90 const double&
ontime(
void)
const;
94 int ebins(
void)
const;
96 std::string
diffname(
const int& index)
const;
112 void set_bin(
const int& index);
137 return (
"GLATEventCube");
Energy value class definition.
Abstract event bin container class interface definition.
Abstract FITS image base class definition.
FITS table abstract base class interface definition.
FITS file class interface definition.
Fermi/LAT event bin class interface definition.
Fermi/LAT instrument direction class definition.
Node array class interface definition.
Sky map class definition.
Time class interface definition.
Abstract event bin container class.
Abstract FITS image base class.
Abstract interface for FITS table.
Fermi/LAT event bin class.
Fermi/LAT event cube class.
GLATEventBin m_bin
Actual energy bin.
virtual GLATEventCube * clone(void) const
Clone instance.
double maxrad(const GSkyDir &dir) const
Computes the maximum radius (in degrees) around a given source direction that fits spatially into the...
GLATEventCube(void)
Void constructor.
virtual std::string classname(void) const
Return class name.
virtual void clear(void)
Clear instance.
std::vector< GSkyMap * > m_srcmap
Pointers to source maps.
virtual ~GLATEventCube(void)
Destructor.
virtual void set_energies(void)
Set log mean energies and energy widths of event cube.
void copy_members(const GLATEventCube &cube)
Copy class members.
void set_directions(void)
Set sky directions and solid angles of events cube.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print event cube information.
virtual int number(void) const
Return number of events in cube.
const GSkyMap & map(void) const
Return event cube sky map.
virtual int dim(void) const
Return dimension of event cube.
virtual void save(const GFilename &filename, const bool &clobber=false) const
Save LAT event cube into FITS file.
void read_gti(const GFitsTable &hdu)
Read GTIs from HDU.
virtual void load(const GFilename &filename)
Load LAT event cube from FITS file.
int npix(void) const
Return number of pixels in event cube sky map.
GTime m_time
Event cube mean time.
int ndiffrsp(void) const
Return number of diffuse model components.
virtual void set_times(void)
Set mean event time and ontime of event cube.
const double & ontime(void) const
Return event cube ontime.
virtual int size(void) const
Return number of bins in event cube.
virtual int naxis(const int &axis) const
Return number of bins in axis.
void free_members(void)
Delete class members.
std::vector< double > m_solidangle
Array of solid angles (sr)
std::vector< GEnergy > m_energies
Array of log mean energies.
int ny(void) const
Return number of bins in Y direction.
void read_cntmap(const GFitsImage &hdu)
Read Fermi/LAT counts map from HDU.
int nx(void) const
Return number of bins in X direction.
virtual void read(const GFits &file)
Read LAT event cube from FITS file.
void read_srcmap(const GFitsImage &hdu)
Read LAT source map from HDU.
virtual void write(GFits &file) const
Write LAT event cube into FITS file.
std::vector< GLATInstDir > m_dirs
Array of event directions.
GNodeArray m_enodes
Energy nodes.
void read_ebds(const GFitsTable &hdu)
Read energy boundaries from HDU.
GSkyMap * diffrsp(const int &index) const
Return diffuse response map.
int ebins(void) const
Return number of energy bins in event cube.
GSkyMap m_map
Counts map stored as sky map.
std::string diffname(const int &index) const
Return name of diffuse model.
double m_ontime
Event cube ontime (sec)
std::vector< std::string > m_srcmap_names
Source map names.
std::vector< GEnergy > m_ewidth
Array of energy bin widths.
const GNodeArray & enodes(void) const
Return event cube energy nodes.
virtual GLATEventBin * operator[](const int &index)
Event bin access operator.
void set_bin(const int &index)
Set event bin.
virtual GLATEventCube & operator=(const GLATEventCube &cube)
Assignment operator.
void init_members(void)
Initialise class members.
const GTime & time(void) const
Return event cube mean time.
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.