|
StoreGateSvc * | activeStore () const |
| returns pointer to the active store as StoreGateSvc More...
|
|
StoreGateSvc * | operator-> () const |
| dereference operator to access the active store More...
|
|
void | setStore (StoreGateSvc *s) |
| set the active store pointer: used by the event loop mgrs More...
|
|
virtual SG::DataProxy * | proxy (const void *const pTransient) const override |
| get proxy for a given data object address in memory More...
|
|
virtual SG::DataProxy * | proxy (const CLID &id, const std::string &key) const override |
| get proxy with given id and key. Returns 0 to flag failure More...
|
|
virtual SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const override |
| Get proxy given a hashed key+clid. More...
|
|
virtual std::vector< const SG::DataProxy * > | proxies () const override |
| return the list of all current proxies in store More...
|
|
StatusCode | addToStore (CLID id, SG::DataProxy *proxy) override |
| Raw addition of a proxy to the store. More...
|
|
virtual SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override |
| Record an object in the store. More...
|
|
virtual sgkey_t | stringToKey (const std::string &str, CLID clid) override |
| Find the key for a string/CLID pair. More...
|
|
virtual const std::string * | keyToString (sgkey_t key) const override |
| Find the string corresponding to a given key. More...
|
|
virtual const std::string * | keyToString (sgkey_t key, CLID &clid) const override |
| Find the string and CLID corresponding to a given key. More...
|
|
virtual void | registerKey (sgkey_t key, const std::string &str, CLID clid) override |
| Remember an additional mapping from key to string/CLID. More...
|
|
virtual StatusCode | initialize () override |
| Service initialization. More...
|
|
virtual SG::DataProxy * | proxy (const CLID &id, const std::string &key) const=0 |
| TEMPORARY: avoid warnings. More...
|
|
virtual SG::DataProxy * | proxy (const void *const pTransient) const=0 |
| TEMPORARY: avoid warnings. More...
|
|
A service that caches a pointer to the currently active store. It also implements the IProxyDict store interface.
In most jobs the active store is simply the default event store (named "StoreGateSvc"). When doing pile-up (and perhaps later on in multi-threaded jobs, the active store changes during the event loop execution. It is important, for example, that converters always refer to the active store rather than to the default one.
- Author
- ATLAS Collaboration
Definition at line 29 of file ActiveStoreSvc.h.
Record an object in the store.
- Parameters
-
obj | The data object to store. |
key | The key as which it should be stored. |
allowMods | If false, the object will be recorded as const. |
returnExisting | If true, return proxy if this key already exists. |
Full-blown record. obj
should usually be something deriving from SG::DataBucket
.
Returns the proxy for the recorded object; nullptr on failure. If the requested CLID/key combination already exists in the store, the behavior is controlled by returnExisting
. If true, then the existing proxy is returned; otherwise, nullptr is returned. In either case, obj
is destroyed.
Definition at line 83 of file ActiveStoreSvc.cxx.