63 virtual void clear(
void);
65 virtual std::string
classname(
void)
const;
73 const double&
radius(
void)
const;
CTA instrument direction class interface definition.
Abstract Region of interest base class definition.
CTA instrument direction class.
Interface for the CTA region of interest class.
virtual ~GCTARoi(void)
Destructor.
GCTARoi(void)
Void constructor.
const double & radius(void) const
Returns radius of region of interest in degrees.
void free_members(void)
Delete class members.
virtual std::string classname(void) const
Return class name.
virtual bool contains(const GEvent &event) const
Check if region of interest contains an event.
GCTARoi & operator=(const GCTARoi &roi)
Assignment operator.
void copy_members(const GCTARoi &roi)
Copy class members.
bool is_valid(void) const
Checks if RoI is valid.
GCTAInstDir m_centre
Centre of ROI in instrument coordinates.
double m_radius
Radius of ROI in degrees.
void read(const GXmlElement &xml)
Read region of interest from XML element.
virtual void clear(void)
Clear instance.
const GCTAInstDir & centre(void) const
Returns region of interest centre.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print ROI information.
void init_members(void)
Initialise class members.
void write(GXmlElement &xml) const
Write region of interest into XML element.
virtual GCTARoi * clone(void) const
Clone instance.
Abstract interface for the event classes.
Interface for the region of interest classes.