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