58 const std::string& mode =
"NORMAL");
65 virtual void clear(
void);
67 virtual std::string
classname(
void)
const;
75 void load(
const GFilename& filename,
const std::string& usage =
"YES",
76 const std::string& mode =
"NORMAL");
77 void save(
const GFilename& filename,
const bool& clobber =
false)
const;
78 void read(
const GFitsTable& table,
const std::string& usage =
"YES",
79 const std::string& mode =
"NORMAL");
bool contains(const GTime &time) const
Checks whether Good Time Intervals contains time.
GCOMTim & operator=(const GCOMTim &tim)
Assignment operator.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print COMPTEL Good Time Intervals.
void init_members(void)
Initialise class members.
virtual ~GCOMTim(void)
Destructor.
void read(const GFitsTable &table, const std::string &usage="YES", const std::string &mode="NORMAL")
Read COMPTEL Good Time Intervals from FITS table.
Definition of interface for all GammaLib classes.
void free_members(void)
Delete class members.
Good time interval class interface definition.
void write(GFitsBinTable &table) const
Write COMPTEL Good Time Intervals into FITS binary table.
bool contains(const GTime &time) const
Check if time is comprised in the Good Time Intervals.
void copy_members(const GCOMTim &tim)
Copy class members.
Interface class for all GammaLib classes.
GCOMTim(void)
Void constructor.
Abstract interface for FITS table.
virtual GCOMTim * clone(void) const
Clone COMPTEL good time intervals.
virtual void clear(void)
Clear COMPTEL good time intervals.
Good Time Interval class.
void load(const GFilename &filename, const std::string &usage="YES", const std::string &mode="NORMAL")
Load COMPTEL Good Time Intervals from FITS file.
void save(const GFilename &filename, const bool &clobber=false) const
Save Good Time Intervals into FITS file.
virtual std::string classname(void) const
Return class name.
COMPTEL Good Time Intervals class.
void reduce(const GGti >i)
Reduces Good Time Intervals to intersection with intervals.
GGti m_gti
Good Time intervals.
const GGti & gti(void) const
Return Good Time Intervals.
void reduce(const GTime &tstart, const GTime &tstop)
Reduce Good Time Intervals to specified interval.