ATLAS Offline Software
Loading...
Searching...
No Matches
SG::Push Class Reference

Hold a pointer to the current event store. More...

#include <CurrentEventStore.h>

Collaboration diagram for SG::Push:

Public Member Functions

 Push (IProxyDict *store)
 ~Push ()

Private Attributes

IProxyDictm_oldStore

Detailed Description

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.

Constructor & Destructor Documentation

◆ Push()

SG::Push::Push ( IProxyDict * store)

◆ ~Push()

SG::Push::~Push ( )

Member Data Documentation

◆ m_oldStore

IProxyDict* SG::Push::m_oldStore
private

Definition at line 64 of file SGTools/SGTools/CurrentEventStore.h.


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