ATLAS Offline Software
Control
AthenaKernel
src
proxyDictFromEventContext.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
3
*/
16
#include "
AthenaKernel/proxyDictFromEventContext.h
"
17
#include "
AthenaKernel/ExtendedEventContext.h
"
18
#include "
AthenaKernel/IProxyDict.h
"
19
#include "GaudiKernel/ThreadLocalContext.h"
20
21
22
namespace
Atlas
{
23
24
28
IProxyDict
*
proxyDictFromEventContext
()
29
{
30
const
EventContext& ctx = Gaudi::Hive::currentContext();
31
return
Atlas::getExtendedEventContext
(ctx).proxy();
32
}
33
34
39
IProxyDict
*
proxyDictFromEventContext
(
const
EventContext& ctx)
40
{
41
return
Atlas::getExtendedEventContext
(ctx).proxy();
42
}
43
44
48
SG::SourceID
sourceIDFromEventContext
()
49
{
50
const
EventContext& ctx = Gaudi::Hive::currentContext();
51
return
Atlas::getExtendedEventContext
(ctx).proxy()->sourceID();
52
}
53
54
59
SG::SourceID
sourceIDFromEventContext
(
const
EventContext& ctx)
60
{
61
return
Atlas::getExtendedEventContext
(ctx).proxy()->sourceID();
62
}
63
64
65
}
// namespace Atlas
Atlas::sourceIDFromEventContext
SG::SourceID sourceIDFromEventContext()
Return the SourceID for this thread's current context.
Definition:
proxyDictFromEventContext.cxx:48
ExtendedEventContext.h
IProxyDict
A proxy dictionary.
Definition:
AthenaKernel/AthenaKernel/IProxyDict.h:47
Atlas::getExtendedEventContext
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
Definition:
ExtendedEventContext.cxx:32
proxyDictFromEventContext.h
Some out-of-line helpers for ExtendedEventContext.
Atlas::proxyDictFromEventContext
IProxyDict * proxyDictFromEventContext()
Return the IProxyDict for this thread's current context.
Definition:
proxyDictFromEventContext.cxx:28
IProxyDict.h
SG::SourceID
std::string SourceID
Definition:
AthenaKernel/AthenaKernel/SourceID.h:25
Atlas
Definition:
ExtendedEventContext.h:21
Generated on Sun Dec 22 2024 21:16:43 for ATLAS Offline Software by
1.8.18