ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecAlgs
InDetPriVxFinder
src
HoughVtxFinder.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
InDetPriVxFinder/HoughVtxFinder.h
"
6
7
8
StatusCode
HoughVtxFinder::initialize
() {
9
ATH_MSG_DEBUG
(
"Inside HoughVtxFinder::initialize()"
);
10
11
ATH_CHECK
(
m_inputPixelSpacePoints
.initialize());
12
ATH_CHECK
(
m_outputHoughVtx
.initialize());
13
14
ATH_CHECK
(
m_VertexFinderTool
.retrieve());
15
16
return
StatusCode::SUCCESS;
17
}
18
19
StatusCode
HoughVtxFinder::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
25
SG::WriteHandle<xAOD::VertexContainer>
vtxContainer(
m_outputHoughVtx
, ctx);
26
ATH_CHECK
(vtxContainer.
record
(std::move(HoughVtx.first),
27
std::move(HoughVtx.second)));
28
29
return
StatusCode::SUCCESS;
30
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
HoughVtxFinder.h
HoughVtxFinder::m_inputPixelSpacePoints
SG::ReadHandleKey< xAOD::SpacePointContainer > m_inputPixelSpacePoints
Definition
HoughVtxFinder.h:27
HoughVtxFinder::m_outputHoughVtx
SG::WriteHandleKey< xAOD::VertexContainer > m_outputHoughVtx
Definition
HoughVtxFinder.h:28
HoughVtxFinder::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
HoughVtxFinder.cxx:19
HoughVtxFinder::initialize
virtual StatusCode initialize() override
Definition
HoughVtxFinder.cxx:8
HoughVtxFinder::m_VertexFinderTool
ToolHandle< ActsTrk::HoughVtxFinderTool > m_VertexFinderTool
Definition
HoughVtxFinder.h:30
SG::WriteHandle
Definition
StoreGate/StoreGate/WriteHandle.h:73
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition
ReadCondHandle.h:282
xAOD::SpacePointContainer
SpacePointContainer_v1 SpacePointContainer
Define the version of the space point container.
Definition
Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/SpacePointContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0