GammaLib
2.1.0.dev
|
Fermi/LAT region of interest class. More...
#include <GLATRoi.hpp>
Public Member Functions | |
GLATRoi (void) | |
Void constructor. More... | |
GLATRoi (const GLATInstDir ¢re, const double &radius) | |
Region of interest constructor. More... | |
GLATRoi (const GLATRoi &roi) | |
Copy constructor. More... | |
virtual | ~GLATRoi (void) |
Destructor. More... | |
GLATRoi & | operator= (const GLATRoi &roi) |
Assignment operator. More... | |
virtual void | clear (void) |
Clear region of interest. More... | |
virtual GLATRoi * | clone (void) const |
Clone region of interest. More... | |
virtual std::string | classname (void) const |
Return class name. More... | |
virtual bool | contains (const GEvent &event) const |
Check if region of interest contains an event. More... | |
virtual std::string | print (const GChatter &chatter=NORMAL) const |
Print region of interest information. More... | |
const GLATInstDir & | centre (void) const |
Returns region of interest centre. More... | |
const double & | radius (void) const |
Returns radius of region of interest in degrees. More... | |
void | centre (const GLATInstDir ¢re) |
Set region of interest centre. More... | |
void | radius (const double &radius) |
Set radius of region of interest. More... | |
Public Member Functions inherited from GRoi | |
GRoi (void) | |
Void constructor. More... | |
GRoi (const GRoi &roi) | |
Copy constructor. More... | |
virtual | ~GRoi (void) |
Destructor. More... | |
virtual GRoi & | operator= (const GRoi &roi) |
Assignment operator. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GLATRoi &roi) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Member Functions inherited from GRoi | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GRoi &roi) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Attributes | |
GLATInstDir | m_centre |
Centre of ROI in instrument coordinates. More... | |
double | m_radius |
Radius of ROI in degrees. More... | |
Fermi/LAT region of interest class.
The Fermi/LAT region of interest class defines the region of photon arrival directions that is used for unbinned data analysis. A circular region on the sky has been implemented.
Definition at line 45 of file GLATRoi.hpp.
GLATRoi::GLATRoi | ( | void | ) |
Void constructor.
Definition at line 54 of file GLATRoi.cpp.
References init_members().
Referenced by clone().
GLATRoi::GLATRoi | ( | const GLATInstDir & | centre, |
const double & | radius | ||
) |
Region of interest constructor.
[in] | centre | Region of interest centre. |
[in] | radius | Radius of region of interest (degrees). |
Definition at line 70 of file GLATRoi.cpp.
References centre(), init_members(), and radius().
GLATRoi::GLATRoi | ( | const GLATRoi & | roi | ) |
Copy constructor.
[in] | roi | Region of interest. |
Definition at line 89 of file GLATRoi.cpp.
References copy_members(), and init_members().
|
virtual |
|
inline |
Returns region of interest centre.
Returns the instrument direction of the region of interest centre.
Definition at line 102 of file GLATRoi.hpp.
References m_centre.
|
inline |
Set region of interest centre.
[in] | centre | Region of interest centre instrument direction. |
Set the instrument direction of the region of interest centre.
Definition at line 130 of file GLATRoi.hpp.
|
inlinevirtual |
Return class name.
Implements GRoi.
Definition at line 88 of file GLATRoi.hpp.
|
virtual |
Clear region of interest.
Implements GRoi.
Definition at line 160 of file GLATRoi.cpp.
References GRoi::free_members(), free_members(), GRoi::init_members(), and init_members().
Referenced by GLATEventList::init_members().
|
virtual |
Clone region of interest.
Implements GRoi.
Definition at line 180 of file GLATRoi.cpp.
References GLATRoi().
|
virtual |
Check if region of interest contains an event.
Implements GRoi.
Definition at line 191 of file GLATRoi.cpp.
References GLATInstDir::dir(), m_centre, and m_radius.
|
protected |
Copy class members.
[in] | roi | Region of interest from which members should be copied. |
Definition at line 267 of file GLATRoi.cpp.
References m_centre, and m_radius.
Referenced by GLATRoi(), and operator=().
|
protected |
Delete class members.
Definition at line 281 of file GLATRoi.cpp.
Referenced by clear(), operator=(), and ~GLATRoi().
|
protected |
Initialise class members.
Definition at line 251 of file GLATRoi.cpp.
References GLATInstDir::clear(), m_centre, and m_radius.
Referenced by clear(), GLATRoi(), and operator=().
Assignment operator.
[in] | roi | Region of interest. |
Definition at line 127 of file GLATRoi.cpp.
References copy_members(), free_members(), init_members(), and GRoi::operator=().
Print region of interest information.
[in] | chatter | Chattiness. |
Implements GRoi.
Definition at line 218 of file GLATRoi.cpp.
References m_centre, m_radius, gammalib::parformat(), GLATInstDir::print(), SILENT, and gammalib::str().
|
inline |
Returns radius of region of interest in degrees.
Returns the radius of the region of interest in degrees.
Definition at line 116 of file GLATRoi.hpp.
References m_radius.
|
inline |
Set radius of region of interest.
[in] | radius | Region of interest radius (degrees). |
Set the radius of the region of interest.
Definition at line 145 of file GLATRoi.hpp.
|
protected |
Centre of ROI in instrument coordinates.
Definition at line 77 of file GLATRoi.hpp.
Referenced by centre(), contains(), copy_members(), init_members(), and print().
|
protected |
Radius of ROI in degrees.
Definition at line 78 of file GLATRoi.hpp.
Referenced by contains(), copy_members(), init_members(), print(), and radius().