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