ATLAS Offline Software
Loading...
Searching...
No Matches
CurrentEventStore.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
10
11
14#include "GaudiKernel/ThreadLocalContext.h"
15
16
17namespace SG {
18
19
20thread_local IProxyDict* CurrentEventStore::m_curStore = nullptr;
21
22
27IProxyDict* CurrentEventStore::setStore (IProxyDict* store)
28{
29 IProxyDict* oldstore = m_curStore;
31 return oldstore;
32}
33
34
39void CurrentEventStore::storeToCtx (IProxyDict* store)
40{
41 EventContext ctx = Gaudi::Hive::currentContext();
43 if (ectx) {
44 ectx->setProxy (store);
45 Gaudi::Hive::setCurrentContext (ctx);
46 }
47}
48
49
50} // namespace SG
Hold a pointer to the current event store.
void setProxy(IProxyDict *proxy)
const ExtendedEventContext * tryGetExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
TestStore store
Definition TestStore.cxx:23
Forward declaration.
static IProxyDict * m_curStore
The current event store.