ATLAS Offline Software
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 
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 
19 {
20  ATH_MSG_DEBUG("begin AFP_TDLocReco::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 
48 {
49  return StatusCode::SUCCESS;
50 }
AFP_TDLocReco::initialize
StatusCode initialize()
Definition: AFP_TDLocReco.cxx:18
AthMsgStreamMacros.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
AFP_TDLocReco::AFP_TDLocReco
AFP_TDLocReco(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AFP_TDLocReco.cxx:11
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
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
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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.h
AFP_TDLocReco::execute
StatusCode execute(const EventContext &ctx) const
Run pixel clustering tool and next run track reconstruction tools.
Definition: AFP_TDLocReco.cxx:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32