ATLAS Offline Software
Loading...
Searching...
No Matches
InDetVertexTruthMatchAlgorithm.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
8
10
11 // Greet the user:
12 ATH_MSG_INFO( "Initialising" );
13 ATH_MSG_DEBUG( "SGKey = " << m_sgKey.value() );
14
15 // Retrieve the tools:
16 ATH_CHECK( m_matchTool.retrieve() );
17
18 // Return gracefully:
19 return StatusCode::SUCCESS;
20}
21
22StatusCode InDetVertexTruthMatchAlgorithm::execute(const EventContext& /*ctx*/) {
23
24 //Retrieve the vertices:
25 const xAOD::VertexContainer * vxContainer = nullptr;
26 ATH_CHECK( evtStore()->retrieve( vxContainer, m_sgKey ) );
27
28 //pass to the tool for decoration:
29 ATH_CHECK( m_matchTool->matchVertices( *vxContainer ) );
30
31 return StatusCode::SUCCESS;
32
33}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_INFO(x,...)
ServiceHandle< StoreGateSvc > & evtStore()
ToolHandle< IInDetVertexTruthMatchTool > m_matchTool
virtual StatusCode execute(const EventContext &ctx) override final
Function executing the algorithm.
Gaudi::Property< std::string > m_sgKey
StoreGate key for the muon container to investigate.
virtual StatusCode initialize() override final
Function initialising the algorithm.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".