ATLAS Offline Software
TrigCostSupervisorAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 TrigCostSupervisorAlg::TrigCostSupervisorAlg(const std::string& name, ISvcLocator* pSvcLocator)
9  : AthReentrantAlgorithm(name, pSvcLocator)
10 {}
11 
12 
14  ATH_MSG_DEBUG("TrigCostSupervisorAlg start");
15  ATH_CHECK(m_trigCostSvcHandle.retrieve());
16  return StatusCode::SUCCESS;
17 }
18 
19 
20 StatusCode TrigCostSupervisorAlg::execute (const EventContext& ctx) const {
21  ATH_MSG_DEBUG("TrigCostSupervisorAlg execute");
22  ATH_CHECK(m_trigCostSvcHandle->startEvent(ctx, true));
23  return StatusCode::SUCCESS;
24 }
TrigCostSupervisorAlg::m_trigCostSvcHandle
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
Definition: TrigCostSupervisorAlg.h:25
TrigCostSupervisorAlg.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
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
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TrigCostSupervisorAlg::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: TrigCostSupervisorAlg.cxx:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TrigCostSupervisorAlg::initialize
virtual StatusCode initialize() override
Definition: TrigCostSupervisorAlg.cxx:13
TrigCostSupervisorAlg::TrigCostSupervisorAlg
TrigCostSupervisorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigCostSupervisorAlg.cxx:8