|
GammaLib 2.2.0.dev
|
CTA event atom class. More...
#include <GCTAEventAtom.hpp>
Public Member Functions | |
| GCTAEventAtom (void) | |
| Void constructor. | |
| GCTAEventAtom (const GCTAInstDir &dir, const GEnergy &energy, const GTime &time) | |
| Event constructor. | |
| GCTAEventAtom (const GCTAEventAtom &atom) | |
| Copy constructor. | |
| virtual | ~GCTAEventAtom (void) |
| Destructor. | |
| GCTAEventAtom & | operator= (const GCTAEventAtom &atom) |
| Assignment operator. | |
| void | clear (void) |
| Clear event atom. | |
| GCTAEventAtom * | clone (void) const |
| Clone event atom. | |
| std::string | classname (void) const |
| Return class name. | |
| const GCTAInstDir & | dir (void) const |
| Return instrument direction. | |
| const GEnergy & | energy (void) const |
| Return energy. | |
| const GTime & | time (void) const |
| Return time. | |
| void | dir (const GCTAInstDir &dir) |
| Set instrument direction. | |
| void | energy (const GEnergy &energy) |
| Set energy. | |
| void | time (const GTime &time) |
| Set time. | |
| std::string | print (const GChatter &chatter=NORMAL) const |
| Print event information. | |
| const int & | index (void) const |
| Return event index in list. | |
| const unsigned long & | event_id (void) const |
| Return event identifier. | |
| const int & | mc_id (void) const |
| Return Monte Carlo identifier. | |
| const float & | phase (void) const |
| Return event phase. | |
| void | index (const int &index) |
| Set event index. | |
| void | event_id (const unsigned long &id) |
| Set event identifier. | |
| void | mc_id (const int &id) |
| Set Monte Carlo identifier. | |
| void | phase (const float &phase) |
| Set event phase. | |
Public Member Functions inherited from GEventAtom | |
| GEventAtom (void) | |
| Void constructor. | |
| GEventAtom (const GEventAtom &atom) | |
| Copy constructor. | |
| virtual | ~GEventAtom (void) |
| Destructor. | |
| virtual GEventAtom & | operator= (const GEventAtom &atom) |
| Assignment operator. | |
| virtual double | size (void) const |
| Return size of an event atom. | |
| virtual double | counts (void) const |
| Return number of counts in event atom. | |
| virtual double | error (void) const |
| Return error in number of counts in event atom. | |
| bool | is_atom (void) const |
| Signal if event is an atom. | |
| bool | is_bin (void) const |
| Signal if event is a bin. | |
Public Member Functions inherited from GEvent | |
| GEvent (void) | |
| Void constructor. | |
| GEvent (const GEvent &event) | |
| Copy constructor. | |
| virtual | ~GEvent (void) |
| Destructor. | |
| virtual GEvent & | operator= (const GEvent &event) |
| 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 GCTAEventAtom &atom) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Member Functions inherited from GEventAtom | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GEventAtom &atom) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Member Functions inherited from GEvent | |
| void | init_members (void) |
| Initialise class members. | |
| void | copy_members (const GEvent &event) |
| Copy class members. | |
| void | free_members (void) |
| Delete class members. | |
Protected Attributes | |
| int | m_index |
| Index in list. | |
| GCTAInstDir | m_dir |
| Event direction. | |
| GEnergy | m_energy |
| Event energy. | |
| GTime | m_time |
| Event time. | |
| unsigned long | m_event_id |
| Event identifier. | |
| int | m_mc_id |
| Monte Carlo identifier. | |
| float | m_phase |
| Optional phase. | |
Friends | |
| class | GCTAEventList |
CTA event atom class.
This class implements a CTA event atom. It collects all the relevant event information needed for CTA unbinned analysis.
Definition at line 46 of file GCTAEventAtom.hpp.
| GCTAEventAtom::GCTAEventAtom | ( | void | ) |
Void constructor.
Definition at line 54 of file GCTAEventAtom.cpp.
References init_members().
Referenced by clone().
| GCTAEventAtom::GCTAEventAtom | ( | const GCTAInstDir & | dir, |
| const GEnergy & | energy, | ||
| const GTime & | time ) |
Event constructor.
| [in] | dir | Event instrument direction. |
| [in] | energy | Event energy. |
| [in] | time | Event time. |
Definition at line 71 of file GCTAEventAtom.cpp.
References dir(), energy(), init_members(), m_dir, m_energy, m_time, and time().
| GCTAEventAtom::GCTAEventAtom | ( | const GCTAEventAtom & | atom | ) |
Copy constructor.
| [in] | atom | Event atom. |
Definition at line 93 of file GCTAEventAtom.cpp.
References copy_members(), and init_members().
|
virtual |
|
inlinevirtual |
Return class name.
Implements GEventAtom.
Definition at line 106 of file GCTAEventAtom.hpp.
|
virtual |
Clear event atom.
Implements GEventAtom.
Definition at line 164 of file GCTAEventAtom.cpp.
References free_members(), GEvent::free_members(), GEventAtom::free_members(), init_members(), GEvent::init_members(), and GEventAtom::init_members().
|
virtual |
Clone event atom.
Implements GEventAtom.
Definition at line 186 of file GCTAEventAtom.cpp.
References GCTAEventAtom().
|
protected |
Copy class members.
| [in] | atom | Event atom. |
Definition at line 248 of file GCTAEventAtom.cpp.
References m_dir, m_energy, m_event_id, m_index, m_mc_id, m_phase, and m_time.
Referenced by GCTAEventAtom(), and operator=().
|
inline |
Set instrument direction.
| [in] | dir | Instrument direction. |
Definition at line 154 of file GCTAEventAtom.hpp.
|
inlinevirtual |
Return instrument direction.
Implements GEventAtom.
Definition at line 118 of file GCTAEventAtom.hpp.
References m_dir.
Referenced by dir(), GCTAEventAtom(), GCTAModelAeffBackground::mc(), GCTAModelBackground::mc(), GCTAModelIrfBackground::mc(), GCTAModelRadialAcceptance::mc(), GCTAResponseIrf::mc(), and GCTAOnOffObservation::set().
|
inline |
|
inlinevirtual |
Return energy.
Implements GEventAtom.
Definition at line 130 of file GCTAEventAtom.hpp.
References m_energy.
Referenced by energy(), GCTAEventAtom(), and GCTAOnOffObservation::set().
|
inline |
Set event identifier.
| [in] | id | Event identifier. |
Definition at line 256 of file GCTAEventAtom.hpp.
References m_event_id.
|
inline |
Return event identifier.
Definition at line 207 of file GCTAEventAtom.hpp.
References m_event_id.
|
protected |
Delete class members.
Definition at line 267 of file GCTAEventAtom.cpp.
Referenced by clear(), operator=(), and ~GCTAEventAtom().
|
inline |
|
inline |
Return event index in list.
Returns the index of the event in case it is part of a list.
Definition at line 195 of file GCTAEventAtom.hpp.
References m_index.
Referenced by index().
|
protected |
Initialise class members.
Definition at line 227 of file GCTAEventAtom.cpp.
References GCTAInstDir::clear(), GEnergy::clear(), GTime::clear(), m_dir, m_energy, m_event_id, m_index, m_mc_id, m_phase, and m_time.
Referenced by clear(), GCTAEventAtom(), GCTAEventAtom(), GCTAEventAtom(), and operator=().
|
inline |
Set Monte Carlo identifier.
| [in] | id | Monte Carlo identifier. |
Definition at line 269 of file GCTAEventAtom.hpp.
References m_mc_id.
|
inline |
Return Monte Carlo identifier.
Definition at line 219 of file GCTAEventAtom.hpp.
References m_mc_id.
| GCTAEventAtom & GCTAEventAtom::operator= | ( | const GCTAEventAtom & | atom | ) |
Assignment operator.
| [in] | atom | Event atom. |
Definition at line 131 of file GCTAEventAtom.cpp.
References copy_members(), free_members(), init_members(), and GEventAtom::operator=().
|
inline |
|
inline |
Return event phase.
Definition at line 231 of file GCTAEventAtom.hpp.
References m_phase.
Referenced by phase().
Print event information.
| [in] | chatter | Chattiness (defaults to NORMAL). |
Implements GEventAtom.
Definition at line 198 of file GCTAEventAtom.cpp.
References m_dir, m_energy, m_time, GCTAInstDir::print(), GEnergy::print(), GTime::print(), and SILENT.
|
inline |
|
inlinevirtual |
Return time.
Implements GEventAtom.
Definition at line 142 of file GCTAEventAtom.hpp.
References m_time.
Referenced by GCTAEventAtom(), and time().
|
friend |
Definition at line 49 of file GCTAEventAtom.hpp.
|
protected |
Event direction.
Definition at line 91 of file GCTAEventAtom.hpp.
Referenced by copy_members(), dir(), dir(), GCTAEventAtom(), init_members(), print(), and GCTAEventList::read_events().
|
protected |
Event energy.
Definition at line 92 of file GCTAEventAtom.hpp.
Referenced by copy_members(), energy(), energy(), GCTAEventAtom(), init_members(), and print().
|
protected |
Event identifier.
Definition at line 94 of file GCTAEventAtom.hpp.
Referenced by copy_members(), event_id(), event_id(), and init_members().
|
protected |
Index in list.
Definition at line 90 of file GCTAEventAtom.hpp.
Referenced by copy_members(), index(), index(), and init_members().
|
protected |
Monte Carlo identifier.
Definition at line 95 of file GCTAEventAtom.hpp.
Referenced by copy_members(), init_members(), mc_id(), and mc_id().
|
protected |
Optional phase.
Definition at line 96 of file GCTAEventAtom.hpp.
Referenced by copy_members(), init_members(), phase(), and phase().
|
protected |
Event time.
Definition at line 93 of file GCTAEventAtom.hpp.
Referenced by copy_members(), GCTAEventAtom(), init_members(), print(), time(), and time().