![]() |
The Gaudi Framework
master (e68eea06)
|
This class represents an entry point to all the event specific data. More...
#include <GaudiKernel/EventContext.h>

Public Types | |
| using | ContextID_t = size_t |
| using | ContextEvt_t = size_t |
Public Member Functions | |
| EventContext ()=default | |
| EventContext (const ContextEvt_t e, const ContextID_t s=INVALID_CONTEXT_ID, const ContextID_t subSlot=INVALID_CONTEXT_ID) | |
| ContextEvt_t | evt () const |
| ContextID_t | slot () const |
| ContextID_t | subSlot () const |
| bool | usesSubSlot () const |
| bool | valid () const |
| const EventIDBase & | eventID () const |
| void | set (const ContextEvt_t e=0, const ContextID_t s=INVALID_CONTEXT_ID, const ContextID_t subSlot=INVALID_CONTEXT_ID) |
| void | setEvt (const ContextEvt_t e) |
| void | setSlot (const ContextID_t s) |
| void | setSubSlot (const ContextID_t subslot) |
| void | setValid (const bool b=true) |
| void | setEventID (const EventIDBase &e) |
| template<typename ValueType, typename... Args> | |
| auto & | emplaceExtension (Args &&... args) |
| template<typename T> | |
| auto & | setExtension (T &&t) |
| void | resetExtension () |
| std::any | detachExtension () |
| template<typename T> | |
| auto & | getExtension () |
| template<typename T> | |
| const auto & | getExtension () const |
| template<typename T> | |
| T * | tryGetExtension () noexcept |
| template<typename T> | |
| const T * | tryGetExtension () const noexcept |
| bool | hasExtension () const |
| template<typename T> | |
| bool | hasExtension () const |
| const std::type_info & | getExtensionType () const |
Static Public Attributes | |
| static constexpr ContextID_t | INVALID_CONTEXT_ID = std::numeric_limits<ContextID_t>::max() |
| static constexpr ContextEvt_t | INVALID_CONTEXT_EVT = std::numeric_limits<ContextEvt_t>::max() |
Private Attributes | |
| EventIDBase | m_eid {} |
| ContextEvt_t | m_evt_num { INVALID_CONTEXT_EVT } |
| ContextID_t | m_evt_slot { INVALID_CONTEXT_ID } |
| ContextID_t | m_sub_slot { INVALID_CONTEXT_ID } |
| bool | m_valid { false } |
| std::any | m_extension |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const EventContext &ctx) |
| std::ostream & | operator<< (std::ostream &os, const EventContext *ctx) |
This class represents an entry point to all the event specific data.
It is needed to make the algorithm "aware" of the event it is operating on. This was not needed in the serial version of Gaudi where the assumption of 1-event-at-the-time processing was implicit.
This class has nothing to do with the AlgContextSvc or the Context of the EvtSelector!
Definition at line 35 of file EventContext.h.
| using EventContext::ContextEvt_t = size_t |
Definition at line 38 of file EventContext.h.
| using EventContext::ContextID_t = size_t |
Definition at line 37 of file EventContext.h.
|
default |
|
inlineexplicit |
Definition at line 45 of file EventContext.h.
|
inline |
Definition at line 101 of file EventContext.h.
|
inline |
Definition at line 89 of file EventContext.h.
|
inline |
Definition at line 56 of file EventContext.h.
|
inline |
Definition at line 51 of file EventContext.h.
|
inline |
Definition at line 104 of file EventContext.h.
|
inline |
Definition at line 109 of file EventContext.h.
|
inline |
Definition at line 130 of file EventContext.h.
|
inline |
Definition at line 123 of file EventContext.h.
|
inline |
Definition at line 126 of file EventContext.h.
|
inline |
Definition at line 99 of file EventContext.h.
|
inline |
Definition at line 58 of file EventContext.h.
|
inline |
Definition at line 86 of file EventContext.h.
|
inline |
Definition at line 66 of file EventContext.h.
|
inline |
Definition at line 94 of file EventContext.h.
|
inline |
Definition at line 71 of file EventContext.h.
|
inline |
Definition at line 76 of file EventContext.h.
|
inline |
Definition at line 78 of file EventContext.h.
|
inline |
Definition at line 52 of file EventContext.h.
|
inline |
Definition at line 53 of file EventContext.h.
|
inlinenoexcept |
Definition at line 119 of file EventContext.h.
|
inlinenoexcept |
Definition at line 114 of file EventContext.h.
|
inline |
Definition at line 54 of file EventContext.h.
|
inline |
Definition at line 55 of file EventContext.h.
|
friend |
Definition at line 13 of file EventContext.cpp.
|
friend |
Definition at line 15 of file EventContext.cpp.
|
staticconstexpr |
Definition at line 41 of file EventContext.h.
|
staticconstexpr |
Definition at line 40 of file EventContext.h.
|
private |
Definition at line 136 of file EventContext.h.
|
private |
Definition at line 137 of file EventContext.h.
|
private |
Definition at line 138 of file EventContext.h.
|
private |
Definition at line 142 of file EventContext.h.
|
private |
Definition at line 139 of file EventContext.h.
|
private |
Definition at line 140 of file EventContext.h.