33 #include "GammaLib.hpp"
34 #include "GCTALib.hpp"
38 #define CTSELECT_NAME "ctselect"
63 void publish(
const std::string& name =
"");
72 const std::string& filename,
73 const std::string& evtname,
74 const std::string& gtiname);
76 const GEbounds& ebounds)
const;
78 const std::string& evtname)
const;
virtual ~ctselect(void)
Destructor.
void free_members(void)
Delete class members.
void publish(const std::string &name="")
Publish event lists.
double m_emin
Lower energy.
void clear(void)
Clear ctselect tool.
void save_fits(void)
Save event list in FITS format.
std::vector< std::string > m_gtiname
GTI extension names.
const GObservations & obs(void) const
Return observation container.
void save_xml(void)
Save event list(s) in XML format.
double m_emax
Upper energy.
std::vector< std::string > m_evtname
Event extension names.
GPhases m_phases
Phase intervals.
ctselect(void)
Void constructor.
bool m_forcesel
Enforce RoI selection.
Observation tool base class interface definition.
Base class for observation tools.
void init_members(void)
Initialise class members.
bool m_select_energy
Perform energy selection.
void process(void)
Select event data.
std::string m_expr
Selection expression.
void copy_members(const ctselect &app)
Copy class members.
std::string m_usethres
Energy threshold type.
GEbounds set_ebounds(GCTAObservation *obs, const GEbounds &ebounds) const
Return energy boundaries for a given observation.
bool m_select_phase
Perform phase selection.
void save(void)
Save the selected event list(s)
GChatter m_chatter
Chattiness.
ctselect & operator=(const ctselect &app)
Assignment operator.
void get_parameters(void)
Get application parameters.
std::string m_outobs
Output event list or XML file.
std::string check_infile(const std::string &filename, const std::string &evtname) const
Check input filename.
void select_events(GCTAObservation *obs, const std::string &filename, const std::string &evtname, const std::string >iname)
Select events.
std::vector< std::string > m_infiles
Input event filenames.