ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_Reconstruction
AFP_VertexReco
src
AFP_VertexReco.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AFP_VertexReco/AFP_VertexReco.h
"
6
7
8
AFP_VertexReco::AFP_VertexReco
(
const
std::string& name, ISvcLocator* pSvcLocator) :
9
AthReentrantAlgorithm
(name, pSvcLocator)
10
{
11
ATH_MSG_DEBUG
(
"in AFP_VertexReco::AFP_VertexReco"
);
12
}
13
14
AFP_VertexReco::~AFP_VertexReco
()
15
{
16
ATH_MSG_DEBUG
(
"in AFP_VertexReco::~AFP_VertexReco"
);
17
}
18
19
StatusCode
AFP_VertexReco::initialize
()
20
{
21
ATH_MSG_DEBUG
(
"in AFP_VertexReco::initialize()"
);
22
ATH_CHECK
( AthReentrantAlgorithm::initialize() );
23
24
// AFP vertex tool
25
if
(
m_recoToolHandle
.retrieve().isFailure()) {
26
ATH_MSG_WARNING
(
"Failed to retrieve tool "
<<
m_recoToolHandle
);
27
return
StatusCode::FAILURE;
28
}
else
{
29
ATH_MSG_DEBUG
(
"Retrieved tool "
<<
m_recoToolHandle
);
30
}
31
32
return
StatusCode::SUCCESS;
33
}
34
35
StatusCode
AFP_VertexReco::execute
(
const
EventContext& ctx)
const
36
{
37
if
(
m_recoToolHandle
->execute(ctx).isFailure()) {
38
ATH_MSG_WARNING
(
"Failed to reconstruct vertices."
);
39
return
StatusCode::SUCCESS;
40
}
41
42
return
StatusCode::SUCCESS;
43
}
AFP_VertexReco.h
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
AFP_VertexReco::~AFP_VertexReco
virtual ~AFP_VertexReco() override
Definition
AFP_VertexReco.cxx:14
AFP_VertexReco::m_recoToolHandle
ToolHandle< IAFP_VertexRecoTool > m_recoToolHandle
Tool that does the vertex reconstruction.
Definition
AFP_VertexReco.h:27
AFP_VertexReco::initialize
virtual StatusCode initialize() override
Definition
AFP_VertexReco.cxx:19
AFP_VertexReco::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
AFP_VertexReco.cxx:35
AFP_VertexReco::AFP_VertexReco
AFP_VertexReco(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AFP_VertexReco.cxx:8
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
Generated on
for ATLAS Offline Software by
1.17.0