The Gaudi Framework
master (37c0b60a)
|
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/IAlgContextSvc.h>
Public Member Functions | |
AlgContext (IAlgorithm *alg, IAlgContextSvc *svc, const EventContext &context) | |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg More... | |
AlgContext (IAlgorithm *alg, IAlgContextSvc *svc) | |
constructor from the service and the algorithm (single thread case) Internally invokes IAlgContextSvc::setCurrentAlg More... | |
AlgContext (IAlgorithm *alg, IAlgContextSvc *svc, EventContext &&context)=delete | |
Prevent use of temporary EventContext as current context. More... | |
~AlgContext () | |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg More... | |
Private Member Functions | |
AlgContext (const AlgContext &right)=delete | |
AlgContext & | operator= (const AlgContext &right)=delete |
Private Attributes | |
SmartIF< IAlgContextSvc > | m_svc |
SmartIF< IAlgorithm > | m_alg |
const EventContext & | m_context |
Helper "sentry" class to automatize the safe register/unregister the algorithm's context
Typical explicit usage:
Note: for the regular job the context is properly defined with the help of corresponding auditor AlgContextAuditor. This helper class is needed only if one needs to ensure that the algorithm must register its context independently on job/auditor configuration
Definition at line 84 of file IAlgContextSvc.h.
Gaudi::Utils::AlgContext::AlgContext | ( | IAlgorithm * | alg, |
IAlgContextSvc * | svc, | ||
const EventContext & | context | ||
) |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg
alg | pointer to the current algorithm |
svc | pointer to algorithm context service |
context | current event context |
Definition at line 26 of file AlgContext.cpp.
Gaudi::Utils::AlgContext::AlgContext | ( | IAlgorithm * | alg, |
IAlgContextSvc * | svc | ||
) |
constructor from the service and the algorithm (single thread case) Internally invokes IAlgContextSvc::setCurrentAlg
alg | pointer to the current algorithm |
svc | pointer to algorithm context service |
Definition at line 31 of file AlgContext.cpp.
|
delete |
Prevent use of temporary EventContext as current context.
Gaudi::Utils::AlgContext::~AlgContext | ( | ) |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg
Definition at line 34 of file AlgContext.cpp.
|
privatedelete |
|
privatedelete |
|
private |
Definition at line 124 of file IAlgContextSvc.h.
|
private |
Definition at line 125 of file IAlgContextSvc.h.
|
private |
Definition at line 123 of file IAlgContextSvc.h.