27 #ifndef GCOMEVENTCUBE_HPP
28 #define GCOMEVENTCUBE_HPP
70 virtual void clear(
void);
72 virtual std::string
classname(
void)
const;
73 virtual int size(
void)
const;
74 virtual int dim(
void)
const;
75 virtual int naxis(
const int& axis)
const;
78 const bool& clobber =
false)
const;
81 virtual int number(
void)
const;
123 return (
"GCOMEventCube");
void set_scatter_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 void save(const GFilename &filename, const bool &clobber=false) const
Save COMPTEL event cube into FITS file.
virtual GCOMEventCube * clone(void) const
Clone instance.
Energy value class definition.
virtual void set_times(void)
Set mean event time and ontime of event cube.
std::vector< GSkyDir > m_dirs
Array of event scatter directions.
Sky direction class interface definition.
int size(void) const
Return number of bins.
COMPTEL Data Space class definition.
virtual int size(void) const
Return number of bins in event cube.
Abstract event bin container class interface definition.
void init_bin(void)
Initialise event bin.
virtual void read(const GFits &file)
Read COMPTEL event cube from FITS file.
virtual void load(const GFilename &filename)
Load COMPTEL event cube from FITS file.
GCOMInstDir m_dir
Actual event direction.
void init_members(void)
Initialise class members.
COMPTEL event bin class interface definition.
virtual int dim(void) const
Return dimension of event cube.
Energy boundaries container class.
void set_scatter_angles(void)
Set Compton scatter angles of event cube.
GCOMEventCube(void)
Void constructor.
void free_members(void)
Delete class members.
std::vector< double > m_phibar
Array of event scatter angles.
void init_cube(void)
Initialise event cube.
virtual void clear(void)
Clear instance.
Good Time Interval class.
GCOMEventBin m_bin
Actual event bin.
double m_ontime
Event cube ontime (sec)
COMPTEL event bin container class.
virtual void set_energies(void)
Set log mean energy and energy width of event cube.
const GCOMDri & dre(void) const
Return reference to DRE data.
int m_npix
Number of DRI pixels.
void copy_members(const GCOMEventCube &cube)
Copy class members.
virtual std::string classname(void) const
Return class name.
COMPTEL Data Space class.
virtual int number(void) const
Return number of events in cube.
GEnergy m_ewidth
Event cube energy bin width.
GEnergy m_energy
Event cube mean energy.
virtual ~GCOMEventCube(void)
Destructor.
COMPTEL instrument direction class definition.
Abstract event bin container class.
virtual int naxis(const int &axis) const
Return number of bins in axis.
Time class interface definition.
virtual GCOMEventBin * operator[](const int &index)
Event bin access operator.
virtual GCOMEventCube & operator=(const GCOMEventCube &cube)
Assignment operator.
std::vector< double > m_solidangle
Array of solid angles (sr)
Interface for the COMPTEL instrument direction class.
void set_bin(const int &index)
Set event bin.
Class that handles energies in a unit independent way.
GTime m_time
Event cube mean time.
virtual void write(GFits &file) const
Write COMPTEL event cube into FITS file.