ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetTruthVertexValidation
src
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
5
#include "
InDetVertexTruthMatchAlgorithm.h
"
6
7
#include "
xAODTracking/VertexContainer.h
"
8
9
StatusCode
InDetVertexTruthMatchAlgorithm::initialize
() {
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
22
StatusCode
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
}
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:43
ATH_MSG_INFO
#define ATH_MSG_INFO(x,...)
Definition
AthMsgStreamMacros.h:45
InDetVertexTruthMatchAlgorithm.h
VertexContainer.h
AthCommonAlgorithm< Gaudi::Algorithm >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
Definition
AthCommonDataStore.h:85
InDetVertexTruthMatchAlgorithm::m_matchTool
ToolHandle< IInDetVertexTruthMatchTool > m_matchTool
Definition
InDetVertexTruthMatchAlgorithm.h:30
InDetVertexTruthMatchAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx) override final
Function executing the algorithm.
Definition
InDetVertexTruthMatchAlgorithm.cxx:22
InDetVertexTruthMatchAlgorithm::m_sgKey
Gaudi::Property< std::string > m_sgKey
StoreGate key for the muon container to investigate.
Definition
InDetVertexTruthMatchAlgorithm.h:28
InDetVertexTruthMatchAlgorithm::initialize
virtual StatusCode initialize() override final
Function initialising the algorithm.
Definition
InDetVertexTruthMatchAlgorithm.cxx:9
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0