GammaLib
2.1.0.dev
|
Interface for the COMPTEL instrument direction class. More...
#include <GCOMInstDir.hpp>
Public Member Functions | |
GCOMInstDir (void) | |
Void constructor. More... | |
GCOMInstDir (const GCOMInstDir &dir) | |
Copy constructor. More... | |
GCOMInstDir (const GSkyDir &dir, const double &phibar) | |
Instrument direction constructor. More... | |
virtual | ~GCOMInstDir (void) |
Destructor. More... | |
GCOMInstDir & | operator= (const GCOMInstDir &dir) |
Assignment operator. More... | |
virtual void | clear (void) |
Clear instance. More... | |
virtual GCOMInstDir * | clone (void) const |
Clone instance. More... | |
virtual std::string | classname (void) const |
Return class name. More... | |
virtual u_int64_t | hash (void) const |
Return instrument direction hash value. More... | |
virtual std::string | print (const GChatter &chatter=NORMAL) const |
Print instrument direction information. More... | |
void | dir (const GSkyDir &dir) |
Set event scatter direction. More... | |
const GSkyDir & | dir (void) const |
Return event scatter direction. More... | |
void | phibar (const double &phibar) |
Set event Compton scatter angle. More... | |
const double & | phibar (void) const |
Return event Compton scatter angle. More... | |
Public Member Functions inherited from GInstDir | |
GInstDir (void) | |
Void constructor. More... | |
GInstDir (const GInstDir &dir) | |
Copy constructor. More... | |
virtual | ~GInstDir (void) |
Destructor. More... | |
virtual GInstDir & | operator= (const GInstDir &dir) |
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 GCOMInstDir &dir) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Member Functions inherited from GInstDir | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GInstDir &dir) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Attributes | |
GSkyDir | m_dir |
Observed scatter direction of event. More... | |
double | m_phibar |
Observed scatter angle of event. More... | |
Interface for the COMPTEL instrument direction class.
Definition at line 45 of file GCOMInstDir.hpp.
GCOMInstDir::GCOMInstDir | ( | void | ) |
Void constructor.
Definition at line 54 of file GCOMInstDir.cpp.
References init_members().
Referenced by clone().
GCOMInstDir::GCOMInstDir | ( | const GCOMInstDir & | dir | ) |
Copy constructor.
[in] | dir | Instrument direction. |
Definition at line 69 of file GCOMInstDir.cpp.
References copy_members(), and init_members().
GCOMInstDir::GCOMInstDir | ( | const GSkyDir & | dir, |
const double & | phibar | ||
) |
Instrument direction constructor.
[in] | dir | Sky direction. |
[in] | phibar | Phibar (deg). |
Constructs a COMPTEL instrument direction from a sky direction and a phibar value.
Definition at line 91 of file GCOMInstDir.cpp.
References dir(), init_members(), and phibar().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GInstDir.
Definition at line 88 of file GCOMInstDir.hpp.
|
virtual |
Clear instance.
Implements GInstDir.
Definition at line 163 of file GCOMInstDir.cpp.
References GInstDir::free_members(), free_members(), GInstDir::init_members(), and init_members().
Referenced by GCOMRoi::init_members(), GCOMEventCube::init_members(), GCOMEventBin::init_members(), and GCOMEventAtom::init_members().
|
virtual |
Clone instance.
Implements GInstDir.
Definition at line 183 of file GCOMInstDir.cpp.
References GCOMInstDir().
|
protected |
Copy class members.
[in] | dir | Instrument direction. |
Definition at line 272 of file GCOMInstDir.cpp.
References m_dir, and m_phibar.
Referenced by GCOMInstDir(), and operator=().
|
inline |
Set event scatter direction.
[in] | dir | Event scatter direction. |
Set the event scatter direction.
Definition at line 116 of file GCOMInstDir.hpp.
Referenced by GCOMRoi::contains(), com_radial_kerns_omega::eval(), com_elliptical_kerns_omega::eval(), GCOMResponse::irf(), GCOMResponse::irf_diffuse(), GCOMResponse::irf_elliptical(), GCOMResponse::irf_ptsrc(), GCOMResponse::irf_radial(), GCOMEventAtom::print(), GCOMEventList::read_events(), and GCOMEventCube::set_bin().
|
inline |
Return event scatter direction.
Returns the event scatter direction.
Definition at line 102 of file GCOMInstDir.hpp.
References m_dir.
Referenced by dir(), and GCOMInstDir().
|
protected |
Delete class members.
Definition at line 286 of file GCOMInstDir.cpp.
Referenced by clear(), operator=(), and ~GCOMInstDir().
|
virtual |
Return instrument direction hash value.
Returns a hash value that can be used in the response cache.
Implements GInstDir.
Definition at line 196 of file GCOMInstDir.cpp.
References GSkyDir::dec(), m_dir, m_phibar, and GSkyDir::ra().
|
protected |
Initialise class members.
Definition at line 256 of file GCOMInstDir.cpp.
References GSkyDir::clear(), m_dir, and m_phibar.
Referenced by clear(), GCOMInstDir(), and operator=().
GCOMInstDir & GCOMInstDir::operator= | ( | const GCOMInstDir & | dir | ) |
Assignment operator.
[in] | dir | Instrument direction. |
Definition at line 130 of file GCOMInstDir.cpp.
References copy_members(), free_members(), init_members(), and GInstDir::operator=().
|
inline |
Set event Compton scatter angle.
[in] | phibar | Event Compton scatter angle (deg). |
Set the event Compton scatter angle.
Definition at line 145 of file GCOMInstDir.hpp.
References m_phibar, and phibar().
Referenced by GCOMRoi::contains(), GCOMModelDRBPhibarNodes::eval(), GCOMResponse::irf(), GCOMEventAtom::print(), GCOMEventList::read_events(), and GCOMEventCube::set_bin().
|
inline |
Return event Compton scatter angle.
Returns the event Compton scatter angle.
Definition at line 131 of file GCOMInstDir.hpp.
References m_phibar.
Referenced by GCOMInstDir(), and phibar().
Print instrument direction information.
[in] | chatter | Chattiness. |
Implements GInstDir.
Definition at line 223 of file GCOMInstDir.cpp.
References m_dir, m_phibar, gammalib::parformat(), GSkyDir::print(), SILENT, and gammalib::str().
Referenced by GCOMRoi::print().
|
protected |
Observed scatter direction of event.
Definition at line 77 of file GCOMInstDir.hpp.
Referenced by copy_members(), dir(), hash(), init_members(), and print().
|
protected |
Observed scatter angle of event.
Definition at line 78 of file GCOMInstDir.hpp.
Referenced by copy_members(), hash(), init_members(), phibar(), and print().