Simple factory class to construct an AlgorithmIdentifier from an algorithm name and context.
More...
#include <AlgorithmIdentifier.h>
Simple factory class to construct an AlgorithmIdentifier from an algorithm name and context.
Definition at line 45 of file AlgorithmIdentifier.h.
◆ make()
| AlgorithmIdentifier AlgorithmIdentifierMaker::make |
( |
const EventContext & | context, |
|
|
const std::string & | caller, |
|
|
MsgStream & | msg, |
|
|
const int16_t | slotOverride = -1 ) |
|
static |
Construct an AlgorithmIdentifier.
- Parameters
-
| [in] | context | The event context |
| [in] | caller | The name of the algorithm |
| [in] | msg | a reference to the msgstream for printing |
- Returns
- Constructed AlgorithmIdentifier on the stack
Definition at line 84 of file AlgorithmIdentifier.cxx.
84 {
85 const SG::View*
view =
nullptr;
86 const IProxyDict*
proxy =
nullptr;
89 if (proxy)
view =
dynamic_cast<const SG::View*
>(
proxy);
90 }
91 if (!proxy) {
92 msg << MSG::ERROR <<
"Unable to obtain IProxyDict from Atlas::ExtendedEventContext" <<
endmsg;
93 return AlgorithmIdentifier();
94 }
96 const size_t saveSlot = (slotOverride >= 0 ? slotOverride : context.slot());
97 return AlgorithmIdentifier(context.slot(), saveSlot, caller,
proxy->name(), viewID);
98}
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
setScaleOne setStatusOne setSaturated int16_t
static constexpr int16_t s_noView
Constant value used to express an Algorithm which is not running in a View.
The documentation for this class was generated from the following files: