GammaLib
2.0.0
|
Fermi/LAT event atom class. More...
#include <GLATEventAtom.hpp>
Public Member Functions | |
GLATEventAtom (void) | |
Void constructor. More... | |
GLATEventAtom (const GLATEventAtom &atom) | |
Copy constructor. More... | |
virtual | ~GLATEventAtom (void) |
Destructor. More... | |
GLATEventAtom & | operator= (const GLATEventAtom &atom) |
Assignment operator. More... | |
void | clear (void) |
Clear event atom. More... | |
GLATEventAtom * | clone (void) const |
Clone event atom. More... | |
std::string | classname (void) const |
Return class name. More... | |
const GLATInstDir & | dir (void) const |
Return event instrument direction. More... | |
const GEnergy & | energy (void) const |
Return event energy. More... | |
const GTime & | time (void) const |
Return event time. More... | |
std::string | print (const GChatter &chatter=NORMAL) const |
Print event information. More... | |
Public Member Functions inherited from GEventAtom | |
GEventAtom (void) | |
Void constructor. More... | |
GEventAtom (const GEventAtom &atom) | |
Copy constructor. More... | |
virtual | ~GEventAtom (void) |
Destructor. More... | |
virtual GEventAtom & | operator= (const GEventAtom &atom) |
Assignment operator. More... | |
virtual double | size (void) const |
Return size of an event atom. More... | |
virtual double | counts (void) const |
Return number of counts in event atom. More... | |
virtual double | error (void) const |
Return error in number of counts in event atom. More... | |
bool | is_atom (void) const |
Signal if event is an atom. More... | |
bool | is_bin (void) const |
Signal if event is a bin. More... | |
Public Member Functions inherited from GEvent | |
GEvent (void) | |
Void constructor. More... | |
GEvent (const GEvent &event) | |
Copy constructor. More... | |
virtual | ~GEvent (void) |
Destructor. More... | |
virtual GEvent & | operator= (const GEvent &event) |
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 GLATEventAtom &atom) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Member Functions inherited from GEventAtom | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GEventAtom &atom) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Member Functions inherited from GEvent | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GEvent &event) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Protected Attributes | |
GLATInstDir | m_dir |
Event direction. More... | |
GEnergy | m_energy |
Event energy. More... | |
GTime | m_time |
Event time. More... | |
float | m_theta |
Zenith angle in instrument system. More... | |
float | m_phi |
Azimuth angle in instrument system. More... | |
float | m_zenith_angle |
Zenith angle in Earth system. More... | |
float | m_earth_azimuth_angle |
Azimuth angle in Earth system. More... | |
long | m_event_id |
ID number of original event. More... | |
long | m_run_id |
Run number of original event. More... | |
short | m_recon_version |
Version of event reconstruction software. More... | |
short | m_calib_version [3] |
Version of calibration tables for ACD, CAL. More... | |
short | m_event_class |
Event class: 0, 1, 2, ... More... | |
short | m_conversion_type |
Type of conversion: 0=Front, 1=Back. More... | |
double | m_livetime |
Accumulated livetime since mission start. More... | |
double * | m_difrsp |
Diffuse response components. More... | |
int | m_num_difrsp |
Number of diffuse model components. More... | |
Friends | |
class | GLATEventList |
Fermi/LAT event atom class.
Definition at line 43 of file GLATEventAtom.hpp.
GLATEventAtom::GLATEventAtom | ( | void | ) |
Void constructor.
Definition at line 53 of file GLATEventAtom.cpp.
References init_members().
Referenced by clone().
GLATEventAtom::GLATEventAtom | ( | const GLATEventAtom & | atom | ) |
Copy constructor.
[in] | atom | Event atom. |
Definition at line 68 of file GLATEventAtom.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GEventAtom.
Definition at line 98 of file GLATEventAtom.hpp.
|
virtual |
Clear event atom.
Implements GEventAtom.
Definition at line 139 of file GLATEventAtom.cpp.
References free_members(), GEventAtom::free_members(), GEvent::free_members(), init_members(), GEventAtom::init_members(), and GEvent::init_members().
|
virtual |
Clone event atom.
Implements GEventAtom.
Definition at line 161 of file GLATEventAtom.cpp.
References GLATEventAtom().
|
protected |
Copy class members.
[in] | atom | Event atom. |
Definition at line 234 of file GLATEventAtom.cpp.
References m_calib_version, m_conversion_type, m_difrsp, m_dir, m_earth_azimuth_angle, m_energy, m_event_class, m_event_id, m_livetime, m_num_difrsp, m_phi, m_recon_version, m_run_id, m_theta, m_time, and m_zenith_angle.
Referenced by GLATEventAtom(), and operator=().
|
inlinevirtual |
Return event instrument direction.
Returns the reconstructed arrival direction of the photon on the sky.
Implements GEventAtom.
Definition at line 112 of file GLATEventAtom.hpp.
References m_dir.
|
inlinevirtual |
Return event energy.
Returns the reconstructed energy of the photon on the sky.
Implements GEventAtom.
Definition at line 126 of file GLATEventAtom.hpp.
References m_energy.
|
protected |
Delete class members.
Definition at line 278 of file GLATEventAtom.cpp.
References m_difrsp.
Referenced by clear(), operator=(), and ~GLATEventAtom().
|
protected |
Initialise class members.
Definition at line 202 of file GLATEventAtom.cpp.
References GLATInstDir::clear(), GEnergy::clear(), GTime::clear(), m_calib_version, m_conversion_type, m_difrsp, m_dir, m_earth_azimuth_angle, m_energy, m_event_class, m_event_id, m_livetime, m_num_difrsp, m_phi, m_recon_version, m_run_id, m_theta, m_time, and m_zenith_angle.
Referenced by clear(), GLATEventAtom(), and operator=().
GLATEventAtom & GLATEventAtom::operator= | ( | const GLATEventAtom & | atom | ) |
Assignment operator.
[in] | atom | Event atom. |
Definition at line 106 of file GLATEventAtom.cpp.
References copy_members(), free_members(), init_members(), and GEventAtom::operator=().
Print event information.
[in] | chatter | Chattiness (defaults to NORMAL). |
Implements GEventAtom.
Definition at line 173 of file GLATEventAtom.cpp.
References m_dir, m_energy, m_time, GLATInstDir::print(), GEnergy::print(), GTime::print(), and SILENT.
|
inlinevirtual |
Return event time.
Returns the event triggering time.
Implements GEventAtom.
Definition at line 140 of file GLATEventAtom.hpp.
References m_time.
|
friend |
Definition at line 46 of file GLATEventAtom.hpp.
|
protected |
Version of calibration tables for ACD, CAL.
Definition at line 83 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Type of conversion: 0=Front, 1=Back.
Definition at line 85 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Diffuse response components.
Definition at line 87 of file GLATEventAtom.hpp.
Referenced by copy_members(), free_members(), and init_members().
|
protected |
Event direction.
Definition at line 73 of file GLATEventAtom.hpp.
Referenced by copy_members(), dir(), init_members(), and print().
|
protected |
Azimuth angle in Earth system.
Definition at line 79 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Event energy.
Definition at line 74 of file GLATEventAtom.hpp.
Referenced by copy_members(), energy(), init_members(), and print().
|
protected |
Event class: 0, 1, 2, ...
Definition at line 84 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
ID number of original event.
Definition at line 80 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Accumulated livetime since mission start.
Definition at line 86 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Number of diffuse model components.
Definition at line 88 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Azimuth angle in instrument system.
Definition at line 77 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Version of event reconstruction software.
Definition at line 82 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Run number of original event.
Definition at line 81 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Zenith angle in instrument system.
Definition at line 76 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().
|
protected |
Event time.
Definition at line 75 of file GLATEventAtom.hpp.
Referenced by copy_members(), init_members(), print(), GLATEventList::read_events(), and time().
|
protected |
Zenith angle in Earth system.
Definition at line 78 of file GLATEventAtom.hpp.
Referenced by copy_members(), and init_members().