ATLAS Offline Software
AFP_SIDLocReco.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 
7 
8 AFP_SIDLocReco::AFP_SIDLocReco(const std::string& name, ISvcLocator* pSvcLocator) :
9  AthReentrantAlgorithm(name, pSvcLocator)
10 {
11  ATH_MSG_DEBUG("in AFP_SIDLocReco::AFP_SIDLocReco");
12 }
13 
15 {
16  ATH_MSG_DEBUG("in AFP_SIDLocReco::~AFP_SIDLocReco");
17 }
18 
20 {
21  ATH_MSG_DEBUG("in AFP_SIDLocReco::initialize()");
23 
24  // reco track 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_SIDLocReco::execute(const EventContext& ctx) const
36 {
37  if (m_recoToolHandle->execute(ctx).isFailure()) {
38  ATH_MSG_WARNING ("Failed to reconstruct tracks.");
39  return StatusCode::SUCCESS;
40  }
41 
42  return StatusCode::SUCCESS;
43 }
44 
46 {
47  ATH_MSG_DEBUG("in AFP_SIDLocReco::finalize()");
48  return StatusCode::SUCCESS;
49 }
AFP_SIDLocReco::finalize
StatusCode finalize()
Definition: AFP_SIDLocReco.cxx:45
initialize
void initialize()
Definition: run_EoverP.cxx:894
AFP_SIDLocReco::initialize
StatusCode initialize()
Definition: AFP_SIDLocReco.cxx:19
AFP_SIDLocReco::m_recoToolHandle
ToolHandle< IAFP_SIDLocRecoTool > m_recoToolHandle
Tool that does the track reconstruction.
Definition: AFP_SIDLocReco.h:36
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AFP_SIDLocReco.h
AFP_SIDLocReco::AFP_SIDLocReco
AFP_SIDLocReco(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AFP_SIDLocReco.cxx:8
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_SIDLocReco::execute
StatusCode execute(const EventContext &ctx) const
Definition: AFP_SIDLocReco.cxx:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AFP_SIDLocReco::~AFP_SIDLocReco
~AFP_SIDLocReco()
Definition: AFP_SIDLocReco.cxx:14