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