ATLAS Offline Software
Loading...
Searching...
No Matches
proxyDictFromEventContext.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
3 */
14
15
19#include "GaudiKernel/ThreadLocalContext.h"
20
21
22namespace Atlas {
23
24
29{
30 const EventContext& ctx = Gaudi::Hive::currentContext();
32 if (ectx) {
33 return ectx->proxy();
34 }
35 return nullptr;
36}
37
38
43IProxyDict* proxyDictFromEventContext (const EventContext& ctx)
44{
46 if (ectx) {
47 return ectx->proxy();
48 }
49 return nullptr;
50}
51
52
57{
58 const EventContext& ctx = Gaudi::Hive::currentContext();
59 return Atlas::getExtendedEventContext(ctx).proxy()->sourceID();
60}
61
62
67SG::SourceID sourceIDFromEventContext (const EventContext& ctx)
68{
69 return Atlas::getExtendedEventContext(ctx).proxy()->sourceID();
70}
71
72
73} // namespace Atlas
const ExtendedEventContext * tryGetExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
SG::SourceID sourceIDFromEventContext()
Return the SourceID for this thread's current context.
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
IProxyDict * proxyDictFromEventContext()
Return the IProxyDict for this thread's current context.
Some out-of-line helpers for ExtendedEventContext.