27 #ifndef GCOMEVENTLIST_HPP
28 #define GCOMEVENTLIST_HPP
66 virtual void clear(
void);
68 virtual std::string
classname(
void)
const;
69 virtual int size(
void)
const;
72 const bool& clobber =
false)
const;
75 virtual int number(
void)
const;
82 void reserve(
const int& number);
83 void remove(
const int& index,
const int& number = 1);
93 double tofcor(
const double& d1e,
const double& d2e,
double tof)
const;
109 return (
"GCOMEventList");
void free_members(void)
Delete class members.
std::string number(const std::string &noun, const int &number)
Convert singular noun into number noun.
virtual void set_times(void)
Set times.
virtual const GCOMRoi & roi(void) const
Return Region of Interest.
Abstract event atom container class.
COMPTEL event atom class definition.
virtual void set_energies(void)
Set energies.
void read_events(const GFitsTable &table)
Read COMPTEL events from FITS table.
COMPTEL region of interest class definition.
virtual GCOMEventList & operator=(const GCOMEventList &list)
Assignment operator.
Abstract event atom container class interface definition.
GCOMRoi m_roi
Region of interest.
virtual GCOMEventList * clone(void) const
Clone event list.
virtual void load(const GFilename &filename)
Load COMPTEL events from FITS file.
virtual int size(void) const
Return number of events in list.
virtual std::string classname(void) const
Return class name.
void reserve(const int &number)
Reserves space for events.
virtual void save(const GFilename &filename, const bool &clobber=false) const
Save COMPTEL events.
Abstract interface for FITS table.
void append(const GCOMEventAtom &event)
Append event to event list.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print COMPTEL event list information.
void copy_members(const GCOMEventList &list)
Copy class members.
COMPTEL region of interest class.
virtual void write(GFits &file) const
Write COMPTEL event list into FITS file.
virtual GCOMEventAtom * operator[](const int &index)
COMPTEL event atom access operator.
virtual void clear(void)
Clear COMPTEL event list.
std::vector< GCOMEventAtom > m_events
Events.
GCOMEventList(void)
Void constructor.
virtual int number(void) const
Return number of events in list.
COMPTEL event list class.
virtual void read(const GFits &file)
Read COMPTEL events from FITS file.
Interface for the region of interest classes.
double tofcor(const double &d1e, const double &d2e, double tof) const
Compute TOF correction.
void init_members(void)
Initialise class members.
virtual ~GCOMEventList(void)
Destructor.
COMPTEL event atom class.