ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCostFinalizeAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8
9TrigCostFinalizeAlg::TrigCostFinalizeAlg(const std::string& name, ISvcLocator* pSvcLocator)
10 : AthReentrantAlgorithm(name, pSvcLocator)
11{}
12
13
15 ATH_MSG_DEBUG("TrigCostFinalizeAlg start");
17
18 ATH_CHECK( m_costWriteHandleKey.initialize() );
19
20 return StatusCode::SUCCESS;
21}
22
23
24StatusCode TrigCostFinalizeAlg::execute (const EventContext& context) const {
25 ATH_MSG_DEBUG("TrigCostFinalizeAlg execute");
26
28 ATH_CHECK(m_trigCostSvcHandle->endEvent(context, costMonOutput));
29
30 return StatusCode::SUCCESS;
31}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
TrigCostFinalizeAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_costWriteHandleKey
virtual StatusCode execute(const EventContext &context) const override
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.