ATLAS Offline Software
AFP_Raw2Digi.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 // AFP_Raw2Digi includes
9 #include "xAODForward/AFPSiHit.h"
12 
13 AFP_Raw2Digi::AFP_Raw2Digi(const std::string &name, ISvcLocator *pSvcLocator)
14  : AthReentrantAlgorithm(name, pSvcLocator)
15 {
16 }
17 
19 
21  ATH_MSG_INFO("Initializing " << name() << "...");
22 
23  CHECK( m_DigiTool.retrieve() );
24 
25  return StatusCode::SUCCESS;
26 }
27 
29  ATH_MSG_INFO("Finalizing " << name() << "...");
30 
31  return StatusCode::SUCCESS;
32 }
33 
34 StatusCode AFP_Raw2Digi::execute(const EventContext &ctx) const{
35 
36  ATH_MSG_DEBUG("Executing " << name() << "...");
37 
38  CHECK (m_DigiTool->recoAll(ctx) );
39 
40  return StatusCode::SUCCESS;
41 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AFP_Raw2Digi::initialize
virtual StatusCode initialize()
Definition: AFP_Raw2Digi.cxx:20
AFP_Raw2Digi::m_DigiTool
ToolHandle< IAFP_Raw2DigiTool > m_DigiTool
Definition: AFP_Raw2Digi.h:33
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AFP_Raw2Digi::~AFP_Raw2Digi
virtual ~AFP_Raw2Digi()
Does nothing.
Definition: AFP_Raw2Digi.cxx:18
AFP_Raw2Digi::AFP_Raw2Digi
AFP_Raw2Digi(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AFP_Raw2Digi.cxx:13
AFPSiHitAuxContainer.h
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
AFPSiHit.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
errorcheck.h
Helpers for checking error return status codes and reporting errors.
AFP_Raw2Digi::finalize
virtual StatusCode finalize()
Definition: AFP_Raw2Digi.cxx:28
AFPSiHitContainer.h
AFP_Raw2Digi.h
AFP_Raw2Digi::execute
virtual StatusCode execute(const EventContext &ctx) const
Executes commands in #m_digitool.
Definition: AFP_Raw2Digi.cxx:34