27 #ifndef GCTAEVENTLIST_HPP
28 #define GCTAEVENTLIST_HPP
75 virtual void clear(
void);
77 virtual std::string
classname(
void)
const;
78 virtual int size(
void)
const;
81 const bool& clobber =
false)
const;
84 virtual int number(
void)
const;
92 void reserve(
const int& number);
93 void remove(
const int& index,
const int& number = 1);
94 void write(
GFits& fits,
const std::string& evtname,
95 const std::string&
gtiname)
const;
96 void fetch(
void)
const;
100 const std::string&
gtiname(
void)
const;
108 const std::vector<std::string>& names);
151 return (
"GCTAEventList");
bool m_has_mc_id
Signal presence of MC identifier.
std::string number(const std::string &noun, const int &number)
Convert singular noun into number noun.
virtual void save(const GFilename &filename, const bool &clobber=false) const
Save events into FITS file.
void append_column(const GFitsTableCol &column)
Append FITS table column to event list.
GFilename m_filename
Event list file name.
CTA event atom class definition.
void write_events(GFitsBinTable &table) const
Write CTA events into FITS table.
virtual void write(GFits &fits) const
Write CTA events and Good Time Intervals into FITS file.
void set_mc_id_names(const std::vector< int > &ids, const std::vector< std::string > &names)
Set Monte Carlo identifiers and model names.
bool m_has_phase
Signal presence of phase.
Abstract FITS extension base class.
Abstract event atom container class.
void write_ds_keys(GFitsHDU &hdu, const std::string >iname=gammalib::extname_gti) const
Write data sub-space keywords into FITS HDU.
virtual ~GCTAEventList(void)
Destructor.
void append(const GCTAEventAtom &event)
Append event to event list.
const std::string & gtiname(void) const
Return Good Time Interval extension name.
std::string m_gti_extname
GTI extension name.
CTA pointing class interface definition.
virtual void clear(void)
Clear event list.
std::vector< std::string > m_mc_id_names
List of model names.
const bool & has_phase() const
void fetch(void) const
Fetch events.
Interface for the CTA region of interest class.
void write_mc_ids(GFitsHDU &hdu) const
Write Monte Carlo identifier keywords into FITS HDU.
void copy_members(const GCTAEventList &list)
Copy class members.
const std::string extname_gti
GCTARoi m_roi
Region of interest.
Abstract event atom container class interface definition.
std::vector< GCTAEventAtom > m_events
Events.
virtual GCTAEventList * clone(void) const
Clone event list.
Phase intervals class interface definition.
virtual std::string classname(void) const
Return class name.
std::string print(const GChatter &chatter=NORMAL) const
Print event list information.
void reserve(const int &number)
Reserves space for events.
Abstract interface for FITS table column.
const std::string extname_cta_events
void dispose(void) const
Dispose events.
virtual void load(const GFilename &filename)
Load events from FITS file.
Abstract interface for FITS table.
int m_num_events
Number of events.
virtual void set_times(void)
std::vector< GFitsTableCol * > m_columns
Pointers to optional columns.
virtual GCTAEventAtom * operator[](const int &index)
Event atom access operator.
const bool & has_detxy() const
CTA region of interest class interface definition.
GCTAPointing m_pnt
Pointing direction for DETX/Y conversion.
void read_mc_ids(const GFitsTable &table)
Read Monte Carlo identifier keywords from FITS HDU.
void init_members(void)
Initialise class members.
const GPhases & phases(void) const
Return phase intervals.
virtual void set_energies(void)
std::vector< int > m_mc_ids
List of Monte Carlo IDs.
virtual int size(void) const
Return number of events in list.
GCTAEventList(void)
Void constructor.
void free_members(void)
Delete class members.
Interface for the region of interest classes.
virtual int number(void) const
Return number of events in list.
const bool & has_mc_id() const
virtual const GCTARoi & roi(void) const
Return Region of Interest.
void read_events(const GFitsTable &table) const
Read CTA events from FITS table.
bool m_has_detxy
Signal presence of detector coordinates.
virtual void read(const GFits &fits)
Read events from FITS file.
Filename class interface definition.
GPhases m_phases
Phase intervals.
virtual GCTAEventList & operator=(const GCTAEventList &list)
Assignment operator.