89 void remove(
const int& index);
94 const bool& clobber =
false)
const;
104 const double&
telapse(
void)
const;
105 const double&
ontime(
void)
const;
Definition of interface for container classes.
Filename class interface definition.
Time reference class interface definition.
Time class interface definition.
Interface class for container classes.
Abstract interface for FITS table.
Good Time Interval class.
int m_last_index
Last index for containment test.
GGti * clone(void) const
Clone Good Time Intervals.
void set_attributes(void)
Set class attributes.
bool contains(const GTime &time) const
Checks whether Good Time Intervals contains time.
const GTimeReference & reference(void) const
Return time reference for Good Time Intervals.
void insert(const GTime &tstart, const GTime &tstop)
Insert Good Time Interval.
std::string print(const GChatter &chatter=NORMAL) const
Print Good Time Intervals.
const double & telapse(void) const
Returns elapsed time.
void remove(const int &index)
Remove Good Time Interval.
void load(const GFilename &filename)
Load Good Time Intervals from FITS file.
GGti & operator=(const GGti >i)
Assignment operator.
void copy_members(const GGti >i)
Copy class members.
GTime m_tstart
Start time of Good Time Intervals.
GTime * m_stop
Array of stop times.
void write(GFits &fits, const std::string &extname=gammalib::extname_gti) const
Write Good Time Intervals and time reference into FITS object.
GTime m_tstop
Stop time of Good Time Intervals.
GTime * m_start
Array of start times.
void init_members(void)
Initialise class members.
std::string classname(void) const
Return class name.
void insert_gti(const int &index, const GTime &tstart, const GTime &tstop)
Insert Good Time Interval.
const GTime & tstop(void) const
Returns latest stop time in Good Time Intervals.
GTimeReference m_reference
Time reference.
void save(const GFilename &filename, const bool &clobber=false) const
Save Good Time Intervals into FITS file.
void extend(const GGti >i)
Append Good Time Intervals.
double m_telapse
Time between start of first GTI and stop of last GTI (in seconds)
void read(const GFitsTable &table)
Read Good Time Intervals and time reference from FITS table.
bool is_empty(void) const
Signal if there are no Good Time Intervals.
int size(void) const
Return number of Good Time Intervals.
GFilename m_xml_filename
XML filename.
int m_num
Number of Good Time Intervals.
virtual ~GGti(void)
Destructor.
void free_members(void)
Delete class members.
void reserve(const int &num)
Reserve space for Good Time Intervals.
void reduce(const GTime &tstart, const GTime &tstop)
Reduce Good Time Intervals to specified interval.
const double & ontime(void) const
Returns ontime.
GGti(void)
Void constructor.
void merge(void)
Merge all overlapping Good Time Intervals.
void append(const GTime &tstart, const GTime &tstop)
Append Good Time Interval.
const GTime & tstart(void) const
Returns earliest start time in Good Time Intervals.
void clear(void)
Clear Good Time Intervals.
double m_ontime
Sum of GTIs durations (in seconds)
double overlap(const GTime &tstart, const GTime &tstop) const
Computes overlap of time interval with GTIs.
Implements a time reference.
const std::string extname_gti