19 return StatusCode::SUCCESS;
26 return StatusCode::FAILURE;
31 ATH_MSG_DEBUG(
"Decorating " << vertices->size() <<
" vertices with scores");
32 for (
const auto* vertex : *vertices) {
34 vertexScoreDecor(*vertex) = score;
37 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode execute() override
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_vertexScoreDecor_key
virtual StatusCode initialize() override
ToolHandle< Trk::IVertexWeightCalculator > m_vertexWeightCalculator
DecorateVertexScoreAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual bool isValid() override final
Can the handle be successfully dereferenced?
This module defines the arguments passed from the BATCH driver to the BATCH worker.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())