27#ifndef GCTAOBSERVATION_HPP
28#define GCTAOBSERVATION_HPP
87 virtual void clear(
void);
89 virtual std::string
classname(
void)
const;
93 virtual double ontime(
void)
const;
119 const bool& clobber =
false)
const;
120 void response(
const std::string& rspname,
136 void object(
const std::string&
object);
137 const std::string&
object(
void)
const;
138 void ra_obj(
const double& ra);
139 const double&
ra_obj(
void)
const;
140 void dec_obj(
const double& dec);
141 const double&
dec_obj(
void)
const;
153 void n_tels(
const int& tels);
154 const int&
n_tels(
void)
const;
194 return (
"GCTAObservation");
CTA event list class interface definition.
CTA pointing class interface definition.
CTA response abstract base class definition.
Filename class interface definition.
Abstract observation base class interface definition.
Sky regions container class definition.
CTA cube background class.
CTA energy dispersion for stacked analysis.
CTA point spread function for cube analysis.
CTA cube background model class.
double m_ra_obj
Right Ascension of object (degrees)
GCTAResponse * m_response
Pointer to instrument response functions.
const std::string & object(void) const
Return CTA observation object.
GGti gti(void) const
Get Good Time Intervals.
virtual GCTAObservation * clone(void) const
Clone CTA observation.
const int & n_tels(void) const
Return number of telescopes.
GFilename m_eventfile
Event filename.
void load(const GFilename &filename)
Load unbinned or binned analysis data.
virtual std::string classname(void) const
Return class name.
double m_hi_user_thres
User defined upper energy boundary.
virtual double livetime(void) const
Return livetime.
void write_attributes(GFitsHDU &hdu) const
Write observation attributes.
std::string m_instrument
Instrument name.
std::string eventtype(void) const
Return event type string.
const double & dec_obj(void) const
Return CTA object Declination.
int m_n_tels
Number of telescopes.
void free_members(void)
Delete class members.
virtual const GCTAResponse * response(void) const
Return pointer to CTA response function.
const GSkyRegions & off_regions(void) const
Return sky off regions.
const GFilename & eventfile(void) const
Return event file name.
virtual ~GCTAObservation(void)
Destructor.
double m_deadc
Deadtime correction (livetime/ontime)
double m_lo_user_thres
User defined lower energy threshold.
const GCTAPointing & pointing(void) const
Return CTA pointing.
std::string m_bgdfile
Background filename.
const double & hi_user_thres(void) const
Return user high energy threshold.
void init_members(void)
Initialise class members.
void copy_members(const GCTAObservation &obs)
Copy class members.
GSkyRegions m_off_regions
Off regions.
virtual std::string instrument(void) const
Return instrument name.
void save(const GFilename &filename, const bool &clobber=false) const
Save CTA observation into FITS file.
double m_livetime
Livetime (seconds)
GCTARoi roi(void) const
Get Region of Interest.
virtual void write(GXmlElement &xml) const
Write observation into XML element.
bool has_response(void) const
Signal if CTA observation contains response information.
const double & lo_user_thres(void) const
Return user low energy threshold.
GCTAObservation(void)
Void constructor.
virtual void clear(void)
Clear CTA observation.
virtual void read(const GXmlElement &xml)
Read observation from XML element.
void dispose_events(void)
Dispose events.
void read_attributes(const GFitsHDU &hdu)
Read observation attributes.
GCTAPointing m_pointing
Pointing direction.
virtual double ontime(void) const
Return ontime.
virtual double deadc(const GTime &time=GTime()) const
Return deadtime correction factor.
std::string m_object
Object name.
const double & ra_obj(void) const
Return CTA object Right Ascension.
GEbounds ebounds(void) const
Get energy boundaries.
double m_ontime
Ontime (seconds)
bool has_events(void) const
Signal if CTA observation contains events.
GCTAObservation & operator=(const GCTAObservation &obs)
Assignment operator.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print CTA observation information.
double m_dec_obj
Declination of object (degrees)
CTA instrument response function class.
virtual bool is_valid(void) const =0
Interface for the CTA region of interest class.
Calibration database class.
Energy boundaries container class.
int length(void) const
Return length of filename.
Abstract FITS extension base class.
Good Time Interval class.
Abstract observation base class.
GEvents * m_events
Pointer to event container.
Abstract instrument response base class.
Sky region container class.
const std::string extname_gti
const std::string extname_cta_events