ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
8
9using namespace std;
10
11AFP_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
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
34StatusCode 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
48{
49 return StatusCode::SUCCESS;
50}
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode execute(const EventContext &ctx) const
Run pixel clustering tool and next run track reconstruction tools.
StatusCode initialize()
AFP_TDLocReco(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode finalize()
Does nothing.
ToolHandle< IAFPTDLocRecoTool > m_recoToolHandle
Tool that does the track reconstruction.
An algorithm that can be simultaneously executed in multiple threads.
STL namespace.