|
GammaLib 2.2.0.dev
|
COSI instrument direction class. More...
#include <GCOSInstDir.hpp>
Public Member Functions | |
| GCOSInstDir (void) | |
| Void constructor. | |
| GCOSInstDir (const GCOSInstDir &dir) | |
| Copy constructor. | |
| GCOSInstDir (const GSkyDir &dir, const GSkyDir &dir_local, const double &phi) | |
| Instrument direction constructor. | |
| virtual | ~GCOSInstDir (void) |
| Destructor. | |
| GCOSInstDir & | operator= (const GCOSInstDir &dir) |
| Assignment operator. | |
| virtual void | clear (void) |
| Clear COSI instrument direction. | |
| virtual GCOSInstDir * | clone (void) const |
| Clone COSI instrument direction. | |
| virtual std::string | classname (void) const |
| Return class name. | |
| virtual u_int64_t | hash (void) const |
| Return COSI instrument direction hash value. | |
| virtual std::string | print (const GChatter &chatter=NORMAL) const |
| Print COSI instrument direction information. | |
| void | dir (const GSkyDir &dir) |
| Set event scatter direction in celestial coordinates. | |
| const GSkyDir & | dir (void) const |
| Return event scatter direction in celestial coordinates. | |
| void | dir_local (const GSkyDir &dir) |
| Set event scatter direction in spacecraft coordinates. | |
| const GSkyDir & | dir_local (void) const |
| Return event scatter direction in spacecraft coordinates. | |
| void | phi (const double &phi) |
| Set event Compton scatter angle. | |
| const double & | phi (void) const |
| Return event Compton scatter angle. | |
Public Member Functions inherited from GInstDir | |
| GInstDir (void) | |
| Void constructor. | |
| GInstDir (const GInstDir &dir) | |
| Copy constructor. | |
| virtual | ~GInstDir (void) |
| Destructor. | |
| virtual GInstDir & | operator= (const GInstDir &dir) |
| 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 GCOSInstDir &dir) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Member Functions inherited from GInstDir | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GInstDir &dir) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Attributes | |
| GSkyDir | m_dir |
| Observed scatter direction of event in celestial coordinates. | |
| GSkyDir | m_dir_local |
| Observed scatter direction of event in local coordinates. | |
| double | m_phi |
| Observed scatter angle of event (deg) | |
COSI instrument direction class.
The COSI instrument direction defines the spatial information associated to an event.
Definition at line 52 of file GCOSInstDir.hpp.
| GCOSInstDir::GCOSInstDir | ( | void | ) |
Void constructor.
Creates an empty COSI instrument direction.
Definition at line 56 of file GCOSInstDir.cpp.
References init_members().
Referenced by clone().
| GCOSInstDir::GCOSInstDir | ( | const GCOSInstDir & | dir | ) |
Copy constructor.
| [in] | dir | COSI instrument direction. |
Definition at line 71 of file GCOSInstDir.cpp.
References copy_members(), dir(), and init_members().
Instrument direction constructor.
| [in] | dir | Sky direction in celestial system. |
| [in] | dir_local | Sky direction in spacecraft system. |
| [in] | phi | Compton scatter angle (deg). |
Constructs a COSI instrument direction from a sky direction in the celestial and spacecraft systems and a phi value.
Definition at line 94 of file GCOSInstDir.cpp.
References dir(), dir_local(), init_members(), and phi().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GInstDir.
Definition at line 98 of file GCOSInstDir.hpp.
|
virtual |
Clear COSI instrument direction.
Clears COSI instrument direction by resetting all class members to an initial state. Any information that was present before will be lost.
Implements GInstDir.
Definition at line 172 of file GCOSInstDir.cpp.
References free_members(), GInstDir::free_members(), init_members(), and GInstDir::init_members().
Referenced by GCOSEventAtom::init_members(), GCOSEventBin::init_members(), and GCOSEventCube::init_members().
|
virtual |
Clone COSI instrument direction.
Implements GInstDir.
Definition at line 192 of file GCOSInstDir.cpp.
References GCOSInstDir().
|
protected |
Copy class members.
| [in] | dir | COSI instrument direction. |
Definition at line 281 of file GCOSInstDir.cpp.
References dir(), m_dir, m_dir_local, and m_phi.
Referenced by GCOSInstDir(), and operator=().
|
inline |
Set event scatter direction in celestial coordinates.
| [in] | dir | Event scatter direction in celestial coordinates. |
Set the event scatter direction in celestial coordinates.
Definition at line 126 of file GCOSInstDir.hpp.
Referenced by GCOSEventBin::chi(), GCOSEventBin::dir(), GCOSEventBin::psi(), and GCOSEventCube::set_bin().
|
inline |
Return event scatter direction in celestial coordinates.
Returns the event scatter direction in celestial coordinates.
Definition at line 112 of file GCOSInstDir.hpp.
References m_dir.
Referenced by copy_members(), dir(), dir_local(), GCOSInstDir(), GCOSInstDir(), and operator=().
|
inline |
Set event scatter direction in spacecraft coordinates.
| [in] | dir | Event scatter direction in spacecraft coordinates. |
Set the event scatter direction in spacecraft coordinates.
Definition at line 155 of file GCOSInstDir.hpp.
References dir(), and m_dir_local.
|
inline |
Return event scatter direction in spacecraft coordinates.
Returns the event scatter direction in spacecraft coordinates.
Definition at line 141 of file GCOSInstDir.hpp.
References m_dir_local.
Referenced by GCOSInstDir().
|
protected |
Delete class members.
Definition at line 296 of file GCOSInstDir.cpp.
Referenced by clear(), operator=(), and ~GCOSInstDir().
|
virtual |
Return COSI instrument direction hash value.
Returns a hash value that can be used in the response cache.
Implements GInstDir.
Definition at line 205 of file GCOSInstDir.cpp.
References GSkyDir::dec(), hash(), m_dir, and GSkyDir::ra().
Referenced by hash().
|
protected |
Initialise class members.
Definition at line 264 of file GCOSInstDir.cpp.
References GSkyDir::clear(), m_dir, m_dir_local, and m_phi.
Referenced by clear(), GCOSInstDir(), GCOSInstDir(), GCOSInstDir(), and operator=().
| GCOSInstDir & GCOSInstDir::operator= | ( | const GCOSInstDir & | dir | ) |
Assignment operator.
| [in] | dir | COSI instrument direction. |
Definition at line 136 of file GCOSInstDir.cpp.
References copy_members(), dir(), free_members(), init_members(), and GInstDir::operator=().
|
inline |
Set event Compton scatter angle.
| [in] | phi | Event Compton scatter angle (deg). |
Set the event Compton scatter angle.
Definition at line 184 of file GCOSInstDir.hpp.
Referenced by GCOSEventBin::dir(), GCOSEventBin::phi(), and GCOSEventCube::set_bin().
|
inline |
Return event Compton scatter angle.
Returns the event Compton scatter angle.
Definition at line 170 of file GCOSInstDir.hpp.
References m_phi.
Referenced by GCOSInstDir(), and phi().
Print COSI instrument direction information.
| [in] | chatter | Chattiness. |
Implements GInstDir.
Definition at line 229 of file GCOSInstDir.cpp.
References m_dir, m_dir_local, m_phi, gammalib::parformat(), GSkyDir::print(), SILENT, and gammalib::str().
Referenced by GCOSEventAtom::print().
|
protected |
Observed scatter direction of event in celestial coordinates.
Definition at line 86 of file GCOSInstDir.hpp.
Referenced by copy_members(), dir(), dir(), hash(), init_members(), and print().
|
protected |
Observed scatter direction of event in local coordinates.
Definition at line 87 of file GCOSInstDir.hpp.
Referenced by copy_members(), dir_local(), dir_local(), init_members(), and print().
|
protected |
Observed scatter angle of event (deg)
Definition at line 88 of file GCOSInstDir.hpp.
Referenced by copy_members(), init_members(), phi(), phi(), and print().