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 ATH_CHECK( m_rosWriteHandleKey.initialize() );
20
21 return StatusCode::SUCCESS;
22}
23
24
25StatusCode TrigCostFinalizeAlg::execute (const EventContext& context) const {
26 ATH_MSG_DEBUG("TrigCostFinalizeAlg execute");
27
30 ATH_CHECK(m_trigCostSvcHandle->endEvent(context, costMonOutput, rosMonOutput));
31
32 return StatusCode::SUCCESS;
33}
#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.
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_rosWriteHandleKey
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.