GammaLib
2.1.0.dev
|
Fermi/LAT instrument direction class. More...
#include <GLATInstDir.hpp>
Public Member Functions | |
GLATInstDir (void) | |
Void constructor. More... | |
GLATInstDir (const GSkyDir &dir) | |
GSkyDir constructor. More... | |
GLATInstDir (const GLATInstDir &dir) | |
Copy constructor. More... | |
virtual | ~GLATInstDir (void) |
Destructor. More... | |
GLATInstDir & | operator= (const GLATInstDir &dir) |
Assignment operator. More... | |
virtual void | clear (void) |
Clear Fermi/LAT instrument direction. More... | |
virtual GLATInstDir * | clone (void) const |
Clone Fermi/LAT 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 instrument direction information. More... | |
void | dir (const GSkyDir &dir) |
Set sky direction. More... | |
GSkyDir & | dir (void) |
Returns reference to sky direction. More... | |
const GSkyDir & | dir (void) const |
Returns reference to sky direction (const version) 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 GLATInstDir &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 incident direction of event. More... | |
Fermi/LAT instrument direction class.
The LAT instrument direction is an encapsulation of a sky direction as LAT is an imaging device.
Definition at line 48 of file GLATInstDir.hpp.
GLATInstDir::GLATInstDir | ( | void | ) |
Void constructor.
Definition at line 55 of file GLATInstDir.cpp.
References init_members().
Referenced by clone().
|
explicit |
GSkyDir constructor.
[in] | dir | Sky direction. |
Construct LAT instrument direction from sky direction.
Definition at line 72 of file GLATInstDir.cpp.
References dir(), init_members(), and m_dir.
GLATInstDir::GLATInstDir | ( | const GLATInstDir & | dir | ) |
Copy constructor.
[in] | dir | Instrument direction. |
Definition at line 90 of file GLATInstDir.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GInstDir.
Definition at line 89 of file GLATInstDir.hpp.
|
virtual |
Clear Fermi/LAT instrument direction.
Implements GInstDir.
Definition at line 161 of file GLATInstDir.cpp.
References GInstDir::free_members(), free_members(), GInstDir::init_members(), and init_members().
Referenced by GLATEventAtom::init_members(), and GLATRoi::init_members().
|
virtual |
Clone Fermi/LAT instrument direction.
Implements GInstDir.
Definition at line 181 of file GLATInstDir.cpp.
References GLATInstDir().
|
protected |
Copy class members.
[in] | dir | Instrument direction. |
Definition at line 260 of file GLATInstDir.cpp.
References m_dir.
Referenced by GLATInstDir(), and operator=().
|
inline |
Set sky direction.
[in] | dir | Sky direction. |
Set the sky direction.
Definition at line 131 of file GLATInstDir.hpp.
Referenced by GLATRoi::contains(), and GLATResponse::irf().
|
inline |
Returns reference to sky direction.
Returns reference to the sky direction.
Definition at line 103 of file GLATInstDir.hpp.
References m_dir.
Referenced by dir(), GLATInstDir(), and print().
|
inline |
Returns reference to sky direction (const version)
Returns reference to the sky direction.
Definition at line 117 of file GLATInstDir.hpp.
References m_dir.
|
protected |
Delete class members.
Definition at line 273 of file GLATInstDir.cpp.
Referenced by clear(), operator=(), and ~GLATInstDir().
|
virtual |
Return instrument direction hash value.
Returns a hash value that can be used in the response cache.
Implements GInstDir.
Definition at line 194 of file GLATInstDir.cpp.
References GSkyDir::dec(), m_dir, and GSkyDir::ra().
|
protected |
Initialise class members.
Definition at line 245 of file GLATInstDir.cpp.
References GSkyDir::clear(), and m_dir.
Referenced by clear(), GLATInstDir(), and operator=().
GLATInstDir & GLATInstDir::operator= | ( | const GLATInstDir & | dir | ) |
Assignment operator.
[in] | dir | Instrument direction. |
Definition at line 128 of file GLATInstDir.cpp.
References copy_members(), free_members(), init_members(), and GInstDir::operator=().
Print instrument direction information.
[in] | chatter | Chattiness. |
Implements GInstDir.
Definition at line 217 of file GLATInstDir.cpp.
References dir(), SILENT, and gammalib::str().
Referenced by GLATRoi::print(), and GLATEventAtom::print().
|
protected |
Observed incident direction of event.
Definition at line 79 of file GLATInstDir.hpp.
Referenced by copy_members(), dir(), GLATInstDir(), hash(), and init_members().