ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_Reconstruction
AFP_LocReco
src
AFP_TDLocReco.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_LocReco/AFP_TDLocReco.h
"
6
7
#include "
AthenaBaseComps/AthMsgStreamMacros.h
"
8
9
using namespace
std
;
10
11
AFP_TDLocReco::AFP_TDLocReco
(
const
string
& name, ISvcLocator* pSvcLocator) :
12
AthReentrantAlgorithm
(name, pSvcLocator)
13
{
14
ATH_MSG_DEBUG
(
"in AFP_TDLocReco::AFP_TDLocReco"
);
15
}
16
17
18
StatusCode
AFP_TDLocReco::initialize
()
19
{
20
ATH_MSG_DEBUG
(
"begin AFP_TDLocReco::initialize()"
);
21
CHECK
( AthReentrantAlgorithm::initialize() );
22
23
if
(
m_recoToolHandle
.retrieve().isFailure()) {
24
ATH_MSG_WARNING
(
"Failed to retrieve tool "
<<
m_recoToolHandle
);
25
return
StatusCode::FAILURE;
26
}
else
{
27
ATH_MSG_DEBUG
(
"Retrieved tool "
<<
m_recoToolHandle
);
28
}
29
30
ATH_MSG_DEBUG
(
"end AFP_TDLocReco::initialize()"
);
31
return
StatusCode::SUCCESS;
32
}
33
34
StatusCode
AFP_TDLocReco::execute
(
const
EventContext& ctx)
const
35
{
36
ATH_MSG_DEBUG
(
"begin AFP_TDLocReco::execute()"
);
37
38
if
(
m_recoToolHandle
->execute(ctx).isFailure()) {
39
ATH_MSG_WARNING
(
"Failed to reconstruct ToF tracks."
);
40
return
StatusCode::SUCCESS;
41
}
42
43
ATH_MSG_DEBUG
(
"end AFP_TDLocReco::execute()"
);
44
return
StatusCode::SUCCESS;
45
}
46
47
StatusCode
AFP_TDLocReco::finalize
()
48
{
49
return
StatusCode::SUCCESS;
50
}
AFP_TDLocReco.h
AthMsgStreamMacros.h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
AFP_TDLocReco::execute
StatusCode execute(const EventContext &ctx) const
Run pixel clustering tool and next run track reconstruction tools.
Definition
AFP_TDLocReco.cxx:34
AFP_TDLocReco::initialize
StatusCode initialize()
Definition
AFP_TDLocReco.cxx:18
AFP_TDLocReco::AFP_TDLocReco
AFP_TDLocReco(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AFP_TDLocReco.cxx:11
AFP_TDLocReco::finalize
StatusCode finalize()
Does nothing.
Definition
AFP_TDLocReco.cxx:47
AFP_TDLocReco::m_recoToolHandle
ToolHandle< IAFPTDLocRecoTool > m_recoToolHandle
Tool that does the track reconstruction.
Definition
AFP_TDLocReco.h:36
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0