27 return StatusCode::SUCCESS;
36 if (!inJetContainer.
isValid()) {
38 return StatusCode::FAILURE;
43 if (outVertexContainer.
record(std::make_unique<xAOD::VertexContainer>(), std::make_unique<xAOD::VertexAuxContainer>())
46 return StatusCode::FAILURE;
54 return StatusCode::FAILURE;
57 for (
auto v : *pv_cont) {
64 if (!pv) pv = pv_cont->front();
69 return StatusCode::SUCCESS;
74 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
StatusCode initialize() override
SG::ReadHandleKey< xAOD::JetContainer > m_inJetsKey
GNNVertexFitterAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize() override
SG::WriteHandleKey< xAOD::VertexContainer > m_outVertexKey
StatusCode execute(const EventContext &ctx) const override
ToolHandle< Rec::GNNVertexFitterTool > m_VtxTool
SG::ReadHandleKey< xAOD::VertexContainer > m_pvContainerKey
const_pointer_type ptr()
Dereference the pointer.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
Vertex_v1 Vertex
Define the latest version of the vertex class.