ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace 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
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &eventContext) const override
Regular Gaudi algorithm execute function.
MUCTPI_AthAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
Regular Gaudi algorithm initialization function.
ToolHandle< MUCTPI_AthTool > m_muctpiTool