GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GLATEventAtom Class Reference

Fermi/LAT event atom class. More...

#include <GLATEventAtom.hpp>

Inheritance diagram for GLATEventAtom:
GEventAtom GEvent GBase

Public Member Functions

 GLATEventAtom (void)
 Void constructor. More...
 
 GLATEventAtom (const GLATEventAtom &atom)
 Copy constructor. More...
 
virtual ~GLATEventAtom (void)
 Destructor. More...
 
GLATEventAtomoperator= (const GLATEventAtom &atom)
 Assignment operator. More...
 
void clear (void)
 Clear event atom. More...
 
GLATEventAtomclone (void) const
 Clone event atom. More...
 
std::string classname (void) const
 Return class name. More...
 
const GLATInstDirdir (void) const
 Return event instrument direction. More...
 
const GEnergyenergy (void) const
 Return event energy. More...
 
const GTimetime (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 GEventAtomoperator= (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 GEventoperator= (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
 

Detailed Description

Fermi/LAT event atom class.

Definition at line 43 of file GLATEventAtom.hpp.

Constructor & Destructor Documentation

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.

Parameters
[in]atomEvent atom.

Definition at line 68 of file GLATEventAtom.cpp.

References copy_members(), and init_members().

GLATEventAtom::~GLATEventAtom ( void  )
virtual

Destructor.

Definition at line 84 of file GLATEventAtom.cpp.

References free_members().

Member Function Documentation

std::string GLATEventAtom::classname ( void  ) const
inlinevirtual

Return class name.

Returns
String containing the class name ("GLATEventAtom").

Implements GEventAtom.

Definition at line 98 of file GLATEventAtom.hpp.

void GLATEventAtom::clear ( void  )
virtual
GLATEventAtom * GLATEventAtom::clone ( void  ) const
virtual

Clone event atom.

Returns
Pointer to deep copy of event atom

Implements GEventAtom.

Definition at line 161 of file GLATEventAtom.cpp.

References GLATEventAtom().

void GLATEventAtom::copy_members ( const GLATEventAtom atom)
protected

Copy class members.

Parameters
[in]atomEvent 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=().

const GLATInstDir & GLATEventAtom::dir ( void  ) const
inlinevirtual

Return event instrument direction.

Returns
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.

const GEnergy & GLATEventAtom::energy ( void  ) const
inlinevirtual

Return event energy.

Returns
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.

void GLATEventAtom::free_members ( void  )
protected

Delete class members.

Definition at line 278 of file GLATEventAtom.cpp.

References m_difrsp.

Referenced by clear(), operator=(), and ~GLATEventAtom().

void GLATEventAtom::init_members ( void  )
protected
GLATEventAtom & GLATEventAtom::operator= ( const GLATEventAtom atom)

Assignment operator.

Parameters
[in]atomEvent atom.
Returns
Event atom.

Definition at line 106 of file GLATEventAtom.cpp.

References copy_members(), free_members(), init_members(), and GEventAtom::operator=().

std::string GLATEventAtom::print ( const GChatter chatter = NORMAL) const
virtual

Print event information.

Parameters
[in]chatterChattiness (defaults to NORMAL).
Returns
String containing event information.

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.

const GTime & GLATEventAtom::time ( void  ) const
inlinevirtual

Return event time.

Returns
Event time.

Returns the event triggering time.

Implements GEventAtom.

Definition at line 140 of file GLATEventAtom.hpp.

References m_time.

Friends And Related Function Documentation

friend class GLATEventList
friend

Definition at line 46 of file GLATEventAtom.hpp.

Member Data Documentation

short GLATEventAtom::m_calib_version[3]
protected

Version of calibration tables for ACD, CAL.

Definition at line 83 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

short GLATEventAtom::m_conversion_type
protected

Type of conversion: 0=Front, 1=Back.

Definition at line 85 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

double* GLATEventAtom::m_difrsp
protected

Diffuse response components.

Definition at line 87 of file GLATEventAtom.hpp.

Referenced by copy_members(), free_members(), and init_members().

GLATInstDir GLATEventAtom::m_dir
protected

Event direction.

Definition at line 73 of file GLATEventAtom.hpp.

Referenced by copy_members(), dir(), init_members(), and print().

float GLATEventAtom::m_earth_azimuth_angle
protected

Azimuth angle in Earth system.

Definition at line 79 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

GEnergy GLATEventAtom::m_energy
protected

Event energy.

Definition at line 74 of file GLATEventAtom.hpp.

Referenced by copy_members(), energy(), init_members(), and print().

short GLATEventAtom::m_event_class
protected

Event class: 0, 1, 2, ...

Definition at line 84 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

long GLATEventAtom::m_event_id
protected

ID number of original event.

Definition at line 80 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

double GLATEventAtom::m_livetime
protected

Accumulated livetime since mission start.

Definition at line 86 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

int GLATEventAtom::m_num_difrsp
protected

Number of diffuse model components.

Definition at line 88 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

float GLATEventAtom::m_phi
protected

Azimuth angle in instrument system.

Definition at line 77 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

short GLATEventAtom::m_recon_version
protected

Version of event reconstruction software.

Definition at line 82 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

long GLATEventAtom::m_run_id
protected

Run number of original event.

Definition at line 81 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

float GLATEventAtom::m_theta
protected

Zenith angle in instrument system.

Definition at line 76 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().

GTime GLATEventAtom::m_time
protected

Event time.

Definition at line 75 of file GLATEventAtom.hpp.

Referenced by copy_members(), init_members(), print(), GLATEventList::read_events(), and time().

float GLATEventAtom::m_zenith_angle
protected

Zenith angle in Earth system.

Definition at line 78 of file GLATEventAtom.hpp.

Referenced by copy_members(), and init_members().


The documentation for this class was generated from the following files: