GammaLib
2.1.0.dev
|
INTEGRAL/SPI instrument direction class. More...
#include <GSPIInstDir.hpp>
Public Member Functions | |
GSPIInstDir (void) | |
Void constructor. More... | |
GSPIInstDir (const GSkyDir &dir, const int &detid) | |
SPI instrument direction constructor. More... | |
GSPIInstDir (const GSPIInstDir &dir) | |
Copy constructor. More... | |
virtual | ~GSPIInstDir (void) |
Destructor. More... | |
GSPIInstDir & | operator= (const GSPIInstDir &dir) |
Assignment operator. More... | |
virtual void | clear (void) |
Clear INTEGRAL/SPI instrument direction. More... | |
virtual GSPIInstDir * | clone (void) const |
Clone INTEGRAL/SPI instrument direction. 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 INTEGRAL/SPI instrument direction information. More... | |
void | dir (const GSkyDir &dir) |
Set pointing direction. More... | |
const GSkyDir & | dir (void) const |
Return pointing direction. More... | |
void | detid (const int &detid) |
Set detector identifier. More... | |
const int & | detid (void) const |
Return detector identifier. 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 GSPIInstDir &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 |
int | m_detid |
INTEGRAL/SPI instrument direction class.
The INTEGRAL/SPI instrument direction defines the spatial information associated to an event.
Definition at line 52 of file GSPIInstDir.hpp.
GSPIInstDir::GSPIInstDir | ( | void | ) |
Void constructor.
Creates an empty INTEGRAL/SPI instrument direction.
Definition at line 56 of file GSPIInstDir.cpp.
References init_members().
Referenced by clone().
GSPIInstDir::GSPIInstDir | ( | const GSkyDir & | dir, |
const int & | detid | ||
) |
SPI instrument direction constructor.
[in] | dir | Pointing direction. |
[in] | detid | Detector identifier. |
Definition at line 72 of file GSPIInstDir.cpp.
References detid(), dir(), init_members(), m_detid, and m_dir.
GSPIInstDir::GSPIInstDir | ( | const GSPIInstDir & | dir | ) |
Copy constructor.
[in] | dir | INTEGRAL/SPI instrument direction. |
Definition at line 91 of file GSPIInstDir.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GInstDir.
Definition at line 95 of file GSPIInstDir.hpp.
|
virtual |
Clear INTEGRAL/SPI instrument direction.
Clears INTEGRAL/SPI 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 165 of file GSPIInstDir.cpp.
References GInstDir::free_members(), free_members(), GInstDir::init_members(), and init_members().
Referenced by GSPIEventCube::alloc_data(), and GSPIEventBin::init_members().
|
virtual |
Clone INTEGRAL/SPI instrument direction.
Implements GInstDir.
Definition at line 185 of file GSPIInstDir.cpp.
References GSPIInstDir().
|
protected |
Copy class members.
[in] | dir | INTEGRAL/SPI instrument direction. |
Definition at line 271 of file GSPIInstDir.cpp.
References m_detid, and m_dir.
Referenced by GSPIInstDir(), and operator=().
|
inline |
Set detector identifier.
[in] | detid | Detector identifier. |
Set the detector identifier.
Definition at line 138 of file GSPIInstDir.hpp.
References detid(), and m_detid.
Referenced by GSPIResponse::irf_value(), GSPIEventCube::read_pnt(), GSPIResponse::set_detids(), and GSPIModelDataSpace::setup_evtclass().
|
inline |
Return detector identifier.
Returns the detector identifier.
Definition at line 153 of file GSPIInstDir.hpp.
References m_detid.
Referenced by detid(), and GSPIInstDir().
|
inline |
Set pointing direction.
[in] | dir | Pointing direction. |
Set the pointing direction.
Definition at line 109 of file GSPIInstDir.hpp.
Referenced by GSPIEventCube::read_pnt().
|
inline |
Return pointing direction.
Returns the pointing direction.
Definition at line 124 of file GSPIInstDir.hpp.
References m_dir.
Referenced by dir(), and GSPIInstDir().
|
protected |
Delete class members.
Definition at line 285 of file GSPIInstDir.cpp.
Referenced by clear(), operator=(), and ~GSPIInstDir().
|
virtual |
Return instrument direction hash value.
Returns a hash value that can be used in the response cache.
Implements GInstDir.
Definition at line 198 of file GSPIInstDir.cpp.
References GSkyDir::dec(), m_detid, m_dir, and GSkyDir::ra().
|
protected |
Initialise class members.
Definition at line 255 of file GSPIInstDir.cpp.
References GSkyDir::clear(), m_detid, and m_dir.
Referenced by clear(), GSPIInstDir(), and operator=().
GSPIInstDir & GSPIInstDir::operator= | ( | const GSPIInstDir & | dir | ) |
Assignment operator.
[in] | dir | INTEGRAL/SPI instrument direction. |
Definition at line 129 of file GSPIInstDir.cpp.
References copy_members(), free_members(), init_members(), and GInstDir::operator=().
Print INTEGRAL/SPI instrument direction information.
[in] | chatter | Chattiness. |
Implements GInstDir.
Definition at line 225 of file GSPIInstDir.cpp.
References GSkyDir::dec_deg(), m_detid, m_dir, GSkyDir::ra_deg(), SILENT, and gammalib::str().
|
protected |
Definition at line 85 of file GSPIInstDir.hpp.
Referenced by copy_members(), detid(), GSPIInstDir(), hash(), init_members(), and print().
|
protected |
Definition at line 84 of file GSPIInstDir.hpp.
Referenced by copy_members(), dir(), GSPIInstDir(), hash(), init_members(), and print().