#include <IAlgContextSvc.h>
Collaboration diagram for Gaudi::Utils::AlgContext:
Public Member Functions | |
AlgContext (IAlgContextSvc *svc, IAlgorithm *alg) | |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg | |
AlgContext (IAlgorithm *alg, IAlgContextSvc *svc) | |
constructor from the algorithm and the service Internally invokes IAlgContextSvc::setCurrentAlg | |
~AlgContext () | |
destructor Internally invokes IAlgContextSvc::unSetCurrentAlg | |
Private Member Functions | |
AlgContext () | |
no default constructor! | |
AlgContext (const AlgContext &right) | |
no copy! | |
AlgContext & | operator= (const AlgContext &right) |
no assignement! | |
Private Attributes | |
IAlgContextSvc * | m_svc |
IAlgorithm * | m_alg |
Typical explicit usage:
StatusCode MyAlg::execute() { IAlgContextSvc* acs = ... ; // define the context Gaudi::Utils::AlgContext sentry ( this , acs ) ; ... return StatusCode::SUCCESS ; }
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 | ( | IAlgContextSvc * | svc, | |
IAlgorithm * | alg | |||
) |
constructor from the service and the algorithm Internally invokes IAlgContextSvc::setCurrentAlg
svc | pointer to algorithm context service | |
alg | pointer to the current algorithm |
Gaudi::Utils::AlgContext::AlgContext | ( | IAlgorithm * | alg, | |
IAlgContextSvc * | svc | |||
) |
constructor from the algorithm and the service Internally invokes IAlgContextSvc::setCurrentAlg
alg | pointer to the current algorithm | |
svc | pointer to algorithm context service |
Gaudi::Utils::AlgContext::~AlgContext | ( | ) |
Gaudi::Utils::AlgContext::AlgContext | ( | ) | [private] |
no default constructor!
Gaudi::Utils::AlgContext::AlgContext | ( | const AlgContext & | right | ) | [private] |
no copy!
AlgContext& Gaudi::Utils::AlgContext::operator= | ( | const AlgContext & | right | ) | [private] |
no assignement!
IAlgContextSvc* Gaudi::Utils::AlgContext::m_svc [private] |
Definition at line 121 of file IAlgContextSvc.h.
IAlgorithm* Gaudi::Utils::AlgContext::m_alg [private] |
Definition at line 122 of file IAlgContextSvc.h.