ATLAS Offline Software
MUCTPI_AthAlg.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 // First the corresponding header.
6 #include "MUCTPI_AthAlg.h"
7 #include "MUCTPI_AthTool.h"
8 
9 namespace LVL1MUCTPIPHASE1 {
10  MUCTPI_AthAlg::MUCTPI_AthAlg( const std::string& name, ISvcLocator* pSvcLocator )
11  :
12  AthReentrantAlgorithm(name, pSvcLocator)
13  {
14  }
15 
18  {
19  ATH_MSG_INFO( "Initialisation for MUCTPI_AthAlg" );
20 
21  ATH_MSG_DEBUG("retrieving " << m_muctpiTool);
22  CHECK( m_muctpiTool.retrieve() );
23 
24  return StatusCode::SUCCESS;
25  }
26 
28  StatusCode MUCTPI_AthAlg::execute(const EventContext& /*eventContext*/) const
29  {
30  ATH_MSG_DEBUG( "Executing MUCTPI_AthAlg" );
31 
32  CHECK( m_muctpiTool->execute() );
33 
34  return StatusCode::SUCCESS;
35  }
36 
37 }
38 
39 
LVL1MUCTPIPHASE1::MUCTPI_AthAlg::MUCTPI_AthAlg
MUCTPI_AthAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MUCTPI_AthAlg.cxx:10
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
MUCTPI_AthAlg.h
LVL1MUCTPIPHASE1::MUCTPI_AthAlg::execute
virtual StatusCode execute(const EventContext &eventContext) const override
Regular Gaudi algorithm execute function.
Definition: MUCTPI_AthAlg.cxx:28
MUCTPI_AthTool.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LVL1MUCTPIPHASE1
Definition: Configuration.h:11
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
LVL1MUCTPIPHASE1::MUCTPI_AthAlg::m_muctpiTool
ToolHandle< MUCTPI_AthTool > m_muctpiTool
Definition: MUCTPI_AthAlg.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LVL1MUCTPIPHASE1::MUCTPI_AthAlg::initialize
virtual StatusCode initialize() override
Regular Gaudi algorithm initialization function.
Definition: MUCTPI_AthAlg.cxx:17