GammaLib
2.1.0.dev
|
Abstract event bin container class. More...
#include <GEventCube.hpp>
Public Member Functions | |
GEventCube (void) | |
Void constructor. More... | |
GEventCube (const GEventCube &cube) | |
Copy constructor. More... | |
virtual | ~GEventCube (void) |
Destructor. More... | |
virtual GEventCube & | operator= (const GEventCube &cube) |
Assignment operator. More... | |
virtual GEventBin * | operator[] (const int &index)=0 |
virtual const GEventBin * | operator[] (const int &index) const =0 |
virtual void | clear (void)=0 |
Clear object. More... | |
virtual GEventCube * | clone (void) const =0 |
Clones object. More... | |
virtual std::string | classname (void) const =0 |
Return class name. More... | |
virtual int | size (void) const =0 |
virtual int | dim (void) const =0 |
virtual int | naxis (const int &axis) const =0 |
virtual void | load (const GFilename &filename)=0 |
virtual void | save (const GFilename &filename, const bool &clobber=false) const =0 |
virtual void | read (const GFits &file)=0 |
virtual void | write (GFits &file) const =0 |
virtual int | number (void) const =0 |
virtual std::string | print (const GChatter &chatter=NORMAL) const =0 |
Print content of object. More... | |
Public Member Functions inherited from GEvents | |
GEvents (void) | |
Void constructor. More... | |
GEvents (const GEvents &events) | |
Copy constructor. More... | |
virtual | ~GEvents (void) |
Destructor. More... | |
virtual GEvents & | operator= (const GEvents &events) |
Assignment operator. More... | |
void | ebounds (const GEbounds &ebounds) |
Set energy boundaries. More... | |
void | gti (const GGti >i) |
Set Good Time Intervals. More... | |
const GEbounds & | ebounds (void) const |
Return energy boundaries. More... | |
const GGti & | gti (void) const |
Return Good Time Intervals. More... | |
const GTime & | tstart (void) const |
Return start time. More... | |
const GTime & | tstop (void) const |
Return stop time. More... | |
const GEnergy & | emin (void) const |
Return minimum energy. More... | |
const GEnergy & | emax (void) const |
Return maximum energy. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GEventCube &cube) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
virtual void | set_energies (void) |
Set energies (dummy method) More... | |
virtual void | set_times (void) |
Set times (dummy method) More... | |
Protected Member Functions inherited from GEvents | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GEvents &events) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GEvents | |
GEbounds | m_ebounds |
Energy boundaries covered by events. More... | |
GGti | m_gti |
Good time intervals covered by events. More... | |
Abstract event bin container class.
This class is an abstract container class for event bins.
Definition at line 46 of file GEventCube.hpp.
GEventCube::GEventCube | ( | void | ) |
GEventCube::GEventCube | ( | const GEventCube & | cube | ) |
Copy constructor.
[in] | cube | Event cube. |
Definition at line 66 of file GEventCube.cpp.
References copy_members(), and init_members().
|
virtual |
|
pure virtual |
Return class name.
Returns the class name for non-abstract classes in a human readable way.
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Clear object.
Sets the object to a clean initial state. After calling the method the object will be in the same state as it were if an empty instance of the object would have been created.
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Clones object.
Creates a deep copy of the object and returns a pointer to the object.
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
protected |
Copy class members.
[in] | cube | Event cube. |
Definition at line 155 of file GEventCube.cpp.
Referenced by GEventCube(), and operator=().
|
pure virtual |
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
protected |
Delete class members.
Definition at line 165 of file GEventCube.cpp.
Referenced by GMWLSpectrum::clear(), GLATEventCube::clear(), GCOMEventCube::clear(), GSPIEventCube::clear(), GCTAEventCube::clear(), operator=(), and ~GEventCube().
|
protected |
Initialise class members.
Definition at line 143 of file GEventCube.cpp.
Referenced by GMWLSpectrum::clear(), GLATEventCube::clear(), GCOMEventCube::clear(), GSPIEventCube::clear(), GCTAEventCube::clear(), GEventCube(), and operator=().
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
virtual |
Assignment operator.
[in] | cube | Event cube. |
Definition at line 104 of file GEventCube.cpp.
References copy_members(), free_members(), init_members(), and GEvents::operator=().
Referenced by GMWLSpectrum::operator=(), GLATEventCube::operator=(), GCOMEventCube::operator=(), GSPIEventCube::operator=(), and GCTAEventCube::operator=().
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
Print content of object.
[in] | chatter | Chattiness (defaults to NORMAL). |
Formats the content in a standard way and puts this content in a C++ string that is returned.
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
inlineprotectedvirtual |
Set energies (dummy method)
Implements GEvents.
Reimplemented in GCTAEventCube, GLATEventCube, GSPIEventCube, and GCOMEventCube.
Definition at line 88 of file GEventCube.hpp.
|
inlineprotectedvirtual |
Set times (dummy method)
Implements GEvents.
Reimplemented in GCTAEventCube, GLATEventCube, GSPIEventCube, and GCOMEventCube.
Definition at line 98 of file GEventCube.hpp.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventCube, GSPIEventCube, GCOMEventCube, GLATEventCube, and GMWLSpectrum.