ATLAS Offline Software
Loading...
Searching...
No Matches
HIHoughVtxReco.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
9 ATH_MSG_DEBUG("Inside HIHoughVtxReco::initialize()");
10
12 ATH_CHECK(m_outputHoughVtx.initialize());
13
14 ATH_CHECK(m_VertexFinderTool.retrieve());
15
16 return StatusCode::SUCCESS;
17}
18
19StatusCode HIHoughVtxReco::execute(const EventContext &ctx) const {
20 const xAOD::SpacePointContainer* inputPixelSP{};
21 ATH_CHECK(SG::get(inputPixelSP, m_inputPixelSpacePoints, ctx));
22
23 auto HoughVtx = m_VertexFinderTool->findVertex(ctx, *inputPixelSP);
24
26 ATH_CHECK(vtxContainer.record(std::move(HoughVtx.first),
27 std::move(HoughVtx.second)));
28
29 return StatusCode::SUCCESS;
30}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
ToolHandle< ActsTrk::HoughVtxFinderTool > m_VertexFinderTool
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::SpacePointContainer > m_inputPixelSpacePoints
SG::WriteHandleKey< xAOD::VertexContainer > m_outputHoughVtx
virtual StatusCode initialize() override
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
SpacePointContainer_v1 SpacePointContainer
Define the version of the space point container.