|
GammaLib 2.2.0.dev
|
COMPTEL region of interest class. More...
#include <GCOMRoi.hpp>
Public Member Functions | |
| GCOMRoi (void) | |
| Void constructor. | |
| GCOMRoi (const GCOMRoi &roi) | |
| Copy constructor. | |
| GCOMRoi (const GCOMInstDir ¢re, const double &radius, const double &phibar_min, const double &phibar_max) | |
| Region of interest constructor. | |
| virtual | ~GCOMRoi (void) |
| Destructor. | |
| GCOMRoi & | operator= (const GCOMRoi &roi) |
| Assignment operator. | |
| virtual void | clear (void) |
| Clear region of interest. | |
| virtual GCOMRoi * | clone (void) const |
| Clone region of interest. | |
| virtual std::string | classname (void) const |
| Return class name. | |
| virtual bool | contains (const GEvent &event) const |
| Check if region of interest contains an event. | |
| virtual std::string | print (const GChatter &chatter=NORMAL) const |
| Print region of interest information. | |
| const GCOMInstDir & | centre (void) const |
| Return centre of region of interest. | |
| void | centre (const GCOMInstDir ¢re) |
| Set centre of region of interest. | |
| const double & | radius (void) const |
| Return radius of region of interest. | |
| void | radius (const double &radius) |
| Set radius of region of interest. | |
| const double & | phibar_min (void) const |
| Return minimum Phibar of region of interest. | |
| void | phibar_min (const double &phibar_min) |
| Set minimum Phibar of region of interest. | |
| const double & | phibar_max (void) const |
| Return maximum Phibar of region of interest. | |
| void | phibar_max (const double &phibar_max) |
| Set maximum Phibar of region of interest. | |
Public Member Functions inherited from GRoi | |
| GRoi (void) | |
| Void constructor. | |
| GRoi (const GRoi &roi) | |
| Copy constructor. | |
| virtual | ~GRoi (void) |
| Destructor. | |
| virtual GRoi & | operator= (const GRoi &roi) |
| Assignment operator. | |
Public Member Functions inherited from GBase | |
| virtual | ~GBase (void) |
| Destructor. | |
Protected Member Functions | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GCOMRoi &roi) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Member Functions inherited from GRoi | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GRoi &roi) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Attributes | |
| GCOMInstDir | m_centre |
| Centre of RoI in instrument coordinates. | |
| double | m_radius |
| Radius of region of interest. | |
| double | m_phibar_min |
| Minimum Phibar of region of interest. | |
| double | m_phibar_max |
| Minimum Phibar of region of interest. | |
COMPTEL region of interest class.
The COMPTEL region of interest class defines the event direction region that is used for unbinned data analysis.
Definition at line 44 of file GCOMRoi.hpp.
| GCOMRoi::GCOMRoi | ( | void | ) |
Void constructor.
Definition at line 54 of file GCOMRoi.cpp.
References init_members().
Referenced by clone().
| GCOMRoi::GCOMRoi | ( | const GCOMRoi & | roi | ) |
Copy constructor.
| [in] | roi | COMPTEL region of interest. |
Definition at line 69 of file GCOMRoi.cpp.
References copy_members(), and init_members().
| GCOMRoi::GCOMRoi | ( | const GCOMInstDir & | centre, |
| const double & | radius, | ||
| const double & | phibar_min, | ||
| const double & | phibar_max ) |
Region of interest constructor.
| [in] | centre | Instrument direction centre. |
| [in] | radius | Instrument direction radius. |
| [in] | phibar_min | Phibar minimum (deg). |
| [in] | phibar_max | Phibar maximum (deg). |
Definition at line 90 of file GCOMRoi.cpp.
References centre(), init_members(), phibar_max(), phibar_min(), and radius().
|
virtual |
|
inline |
Set centre of region of interest.
| [in] | centre | Instrument direction. |
Set the instrument direction of the centre of the region of interest.
Definition at line 122 of file GCOMRoi.hpp.
|
inline |
Return centre of region of interest.
Returns the instrument direction of the centre of the region of interest.
Definition at line 108 of file GCOMRoi.hpp.
References m_centre.
|
inlinevirtual |
Return class name.
Implements GRoi.
Definition at line 94 of file GCOMRoi.hpp.
|
virtual |
Clear region of interest.
Implements GRoi.
Definition at line 166 of file GCOMRoi.cpp.
References free_members(), GRoi::free_members(), init_members(), and GRoi::init_members().
Referenced by GCOMEventList::init_members().
|
virtual |
Clone region of interest.
Implements GRoi.
Definition at line 186 of file GCOMRoi.cpp.
References GCOMRoi().
|
virtual |
Check if region of interest contains an event.
Implements GRoi.
Definition at line 197 of file GCOMRoi.cpp.
References contains(), GCOMInstDir::dir(), m_centre, m_phibar_max, m_phibar_min, m_radius, and GCOMInstDir::phibar().
Referenced by contains().
|
protected |
Copy class members.
| [in] | roi | COMPTEL region of interest. |
Definition at line 282 of file GCOMRoi.cpp.
References m_centre, m_phibar_max, m_phibar_min, and m_radius.
Referenced by GCOMRoi(), and operator=().
|
protected |
Delete class members.
Definition at line 298 of file GCOMRoi.cpp.
Referenced by clear(), operator=(), and ~GCOMRoi().
|
protected |
Initialise class members.
Definition at line 264 of file GCOMRoi.cpp.
References GCOMInstDir::clear(), m_centre, m_phibar_max, m_phibar_min, and m_radius.
Referenced by clear(), GCOMRoi(), GCOMRoi(), GCOMRoi(), and operator=().
Assignment operator.
| [in] | roi | COMPTEL region of interest. |
Definition at line 133 of file GCOMRoi.cpp.
References copy_members(), free_members(), init_members(), and GRoi::operator=().
|
inline |
Set maximum Phibar of region of interest.
| [in] | phibar_max | Maximum Phibar of region of interest (deg). |
Set the maximum Phibar of region of interest.
Definition at line 209 of file GCOMRoi.hpp.
References m_phibar_max, and phibar_max().
|
inline |
Return maximum Phibar of region of interest.
Returns the maximum Phibar of region of interest.
Definition at line 195 of file GCOMRoi.hpp.
References m_phibar_max.
Referenced by GCOMRoi(), and phibar_max().
|
inline |
Set minimum Phibar of region of interest.
| [in] | phibar_min | Minimum Phibar of region of interest (deg). |
Set the minimum Phibar of region of interest.
Definition at line 180 of file GCOMRoi.hpp.
References m_phibar_min, and phibar_min().
|
inline |
Return minimum Phibar of region of interest.
Returns the minimum Phibar of region of interest.
Definition at line 166 of file GCOMRoi.hpp.
References m_phibar_min.
Referenced by GCOMRoi(), and phibar_min().
Print region of interest information.
| [in] | chatter | Chattiness. |
Implements GRoi.
Definition at line 228 of file GCOMRoi.cpp.
References m_centre, m_phibar_max, m_phibar_min, m_radius, gammalib::parformat(), GCOMInstDir::print(), SILENT, and gammalib::str().
|
inline |
Set radius of region of interest.
| [in] | radius | Radius of region of interest (deg). |
Set the radius of the region of interest.
Definition at line 151 of file GCOMRoi.hpp.
|
inline |
Return radius of region of interest.
Returns the radius of the region of interest.
Definition at line 137 of file GCOMRoi.hpp.
References m_radius.
|
protected |
Centre of RoI in instrument coordinates.
Definition at line 81 of file GCOMRoi.hpp.
Referenced by centre(), centre(), contains(), copy_members(), init_members(), and print().
|
protected |
Minimum Phibar of region of interest.
Definition at line 84 of file GCOMRoi.hpp.
Referenced by contains(), copy_members(), init_members(), phibar_max(), phibar_max(), and print().
|
protected |
Minimum Phibar of region of interest.
Definition at line 83 of file GCOMRoi.hpp.
Referenced by contains(), copy_members(), init_members(), phibar_min(), phibar_min(), and print().
|
protected |
Radius of region of interest.
Definition at line 82 of file GCOMRoi.hpp.
Referenced by contains(), copy_members(), init_members(), print(), radius(), and radius().