27 #ifndef CTOBSERVATION_HPP
28 #define CTOBSERVATION_HPP
49 const std::string& version);
51 const std::string& version,
52 const GApplicationPars& pars);
54 const std::string& version,
58 const std::string& version,
59 const GObservations&
obs);
67 virtual void clear(
void) = 0;
69 virtual void save(
void) = 0;
72 void obs(
const GObservations& obs);
73 const GObservations&
obs(
void)
const;
154 return (const_cast<GCTAObservation*>
155 (static_cast<const ctobservation&>
156 (*this).first_unbinned_observation()));
175 return (const_cast<GCTAObservation*>
176 (static_cast<const ctobservation&>
177 (*this).next_unbinned_observation()));
const GObservations & obs(void) const
Return observation container.
GCTAObservation * next_unbinned_observation(void)
Return next unbinned CTA observation.
GTime m_ogip_tstop
Stop time for OGIP keywords.
virtual void process(void)=0
virtual void clear(void)=0
void copy_members(const ctobservation &app)
Copy class members.
double m_ogip_ontime
Ontime for OGIP keywords.
ctobservation(const std::string &name, const std::string &version)
Name constructor.
void set_obs_statistic(const std::string &statistic)
Set fit statistic for CTA observations.
double m_ogip_telapse
Elapsed time.
double m_ogip_exposure
Exposure time.
double m_ogip_livetime
Livetime for OGIP keywords.
int m_index_unbinned
Current index of unbinned observation.
Base class for observation tools.
void read_ogip_keywords(GFitsHDU *hdu) const
Read OGIP keywords from FITS HDU.
void save_events_fits(void)
Save event list in FITS format.
virtual void save(void)=0
virtual ~ctobservation(void)
Destructor.
GTime m_ogip_tstart
Start time for OGIP keywords.
void free_members(void)
Delete class members.
std::string m_ogip_telescope
Name of telescope.
void write_ogip_keywords(GFitsHDU *hdu) const
Write OGIP keywords in FITS HDU.
void set_obs_bounds()
Set observation boundaries for CTA observations.
void init_members(void)
Initialise class members.
GCTAObservation * first_unbinned_observation(void)
Return first unbinned CTA observation.
ctobservation & operator=(const ctobservation &app)
Assignment operator.
GObservations m_obs
Observation container.
void save_events_xml(void)
Save event list(s) in XML format.