ATLAS Offline Software
|
Hold a pointer to the current event store. More...
#include <CurrentEventStore.h>
Classes | |
class | Push |
Temporarily change the current store. More... | |
Static Public Member Functions | |
static IProxyDict * | store () |
Fetch the current store. More... | |
static IProxyDict * | storeOol () |
Fetch the current store (out-of-line version). More... | |
static IProxyDict * | setStore (IProxyDict *store) |
Set the current store. More... | |
Static Private Attributes | |
static thread_local IProxyDict * | m_curStore = nullptr |
The current event store. More... | |
Hold a pointer to the current event store.
Athena has a notion of a ‘current’ event store. This is used, for example, when ElementLinks
are initialized without explicitly specifying the store.
Be aware that the current event store is thread-specific and thus fetching it is relatively expensive. It would be better to move calls to store() outside of loops.
Definition at line 36 of file SGTools/SGTools/CurrentEventStore.h.
|
static |
Set the current store.
Returns the previous store.
Definition at line 36 of file CurrentEventStore.cxx.
|
static |
Fetch the current store.
|
static |
Fetch the current store (out-of-line version).
Definition at line 26 of file CurrentEventStore.cxx.
|
staticprivate |
The current event store.
Definition at line 70 of file SGTools/SGTools/CurrentEventStore.h.