![]() |
ATLAS Offline Software
|
Hold a pointer to the current event store. More...
#include <CurrentEventStore.h>
Public Member Functions | |
| Push (IProxyDict *store) | |
| ~Push () | |
Private Attributes | |
| IProxyDict * | m_oldStore |
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. */ class CurrentEventStore { public: / Fetch the current store. static IProxyDict* store();
/ Fetch the current store (out-of-line version). static IProxyDict* storeOol();
/ Set the current store. / Returns the previous store. static IProxyDict* setStore (IProxyDict* store);
/**
Temporarily change the current store.
The previous store will be restored when this object is destroyed.
Definition at line 57 of file SGTools/SGTools/CurrentEventStore.h.
| SG::Push::Push | ( | IProxyDict * | store | ) |
| SG::Push::~Push | ( | ) |
|
private |
Definition at line 64 of file SGTools/SGTools/CurrentEventStore.h.