8#include "GaudiKernel/ICondSvc.h"
9#include "GaudiKernel/ServiceHandle.h"
12#include "Gaudi/Algorithm.h"
13#include "Gaudi/AsynchronousAlgorithm.h"
16template <
class BaseAlg>
18 ISvcLocator* pSvcLocator ) :
26 std::make_unique<AthenaBaseComps::AthAlgorithmDHUpdate>
28 std::move (m_updateDataHandles));
39template <
class BaseAlg>
42 return BaseAlg::sysExecute (ctx);
52template <
class BaseAlg>
60 return BaseAlg::extraOutputDeps();
70template <
class BaseAlg>
80 if (
h->isCondition() &&
h->mode() == Gaudi::DataHandle::Writer) {
82 if ( cs.retrieve().isFailure() ) {
84 return StatusCode::SUCCESS;
86 if (cs->regHandle(
this,*
h).isFailure()) {
87 sc = StatusCode::FAILURE;
88 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
Update output dependencies to include symlinks.
#define ATH_MSG_WARNING(x)
Common base class for algorithms.
AthCommonAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Header file for AthHistogramAlgorithm.