![]() |
The Gaudi Framework
v31r0 (aeb156f0)
|
Helper "sentry" class to automatize the safe register/unregister the algorithm's context. More...
#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 Internally invokes IAlgContextSvc::setCurrentAlg 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 74 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 11 of file AlgContext.cpp.
Gaudi::Utils::AlgContext::AlgContext | ( | IAlgorithm * | alg, |
IAlgContextSvc * | svc | ||
) |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg
alg | pointer to the current algorithm |
svc | pointer to algorithm context service |
Definition at line 16 of file AlgContext.cpp.
Gaudi::Utils::AlgContext::~AlgContext | ( | ) |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg
Definition at line 19 of file AlgContext.cpp.
|
privatedelete |
|
privatedelete |
|
private |
Definition at line 111 of file IAlgContextSvc.h.
|
private |
Definition at line 112 of file IAlgContextSvc.h.
|
private |
Definition at line 110 of file IAlgContextSvc.h.