27#ifndef GCOSEVENTLIST_HPP
28#define GCOSEVENTLIST_HPP
65 virtual void clear(
void);
67 virtual std::string
classname(
void)
const;
68 virtual int size(
void)
const;
71 const bool& clobber =
false)
const;
74 virtual double number(
void)
const;
108 return (
"GCOSEventList");
COSI event atom class definition.
COSI region of interest class definition.
Abstract event atom container class interface definition.
virtual void set_energies(void)
Set energies.
virtual GCOSEventList & operator=(const GCOSEventList &list)
Assignment operator.
void remove(const int &index, const int &number=1)
Remove events from event list.
virtual void read(const GFits &fits)
Read COSI events from FITS file.
virtual void load(const GFilename &filename)
Load COSI events from FITS file.
void reserve(const int &number)
Reserves space for events.
void extend(const GCOSEventList &list)
Extend event list with another event list.
virtual std::string classname(void) const
Return class name.
virtual void save(const GFilename &filename, const bool &clobber=false) const
Save COSI events.
virtual const GCOSRoi & roi(void) const
Return Region of Interest.
virtual ~GCOSEventList(void)
Destructor.
GCOSRoi m_roi
Region of interest.
virtual void set_times(void)
Set times.
void copy_members(const GCOSEventList &list)
Copy class members.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print COSI event list information.
void sort(void)
Sort events by increasing time.
void free_members(void)
Delete class members.
virtual int size(void) const
Return number of events in list.
virtual GCOSEventList * clone(void) const
Clone event list.
void append(const GCOSEventAtom &event)
Append event to event list.
virtual GCOSEventAtom * operator[](const int &index)
COSI event atom access operator.
void init_members(void)
Initialise class members.
std::vector< GCOSEventAtom > m_events
Events.
GCOSEventList(void)
Void constructor.
virtual void clear(void)
Clear COSI event list.
virtual void write(GFits &fits) const
Write COSI event list into FITS file.
virtual double number(void) const
Return number of events in list.
COSI region of interest class.
Abstract event atom container class.
Interface for the region of interest classes.