ATLAS Offline Software
Trigger
TrigMonitoring
TrigCostMonitor
src
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
5
#include "
TrigCostFinalizeAlg.h
"
6
#include "
TrigCompositeUtils/TrigCompositeUtils.h
"
7
8
9
TrigCostFinalizeAlg::TrigCostFinalizeAlg
(
const
std::string&
name
, ISvcLocator* pSvcLocator)
10
:
AthReentrantAlgorithm
(
name
, pSvcLocator)
11
{}
12
13
14
StatusCode
TrigCostFinalizeAlg::initialize
() {
15
ATH_MSG_DEBUG
(
"TrigCostFinalizeAlg start"
);
16
ATH_CHECK
(
m_trigCostSvcHandle
.retrieve());
17
18
ATH_CHECK
(
m_costWriteHandleKey
.initialize() );
19
ATH_CHECK
(
m_rosWriteHandleKey
.initialize() );
20
21
return
StatusCode::SUCCESS;
22
}
23
24
25
StatusCode
TrigCostFinalizeAlg::execute
(
const
EventContext& context)
const
{
26
ATH_MSG_DEBUG
(
"TrigCostFinalizeAlg execute"
);
27
28
SG::WriteHandle<xAOD::TrigCompositeContainer>
costMonOutput =
TrigCompositeUtils::createAndStore
(
m_costWriteHandleKey
, context);
29
SG::WriteHandle<xAOD::TrigCompositeContainer>
rosMonOutput =
TrigCompositeUtils::createAndStore
(
m_rosWriteHandleKey
, context);
30
ATH_CHECK
(
m_trigCostSvcHandle
->endEvent(context, costMonOutput, rosMonOutput));
31
32
return
StatusCode::SUCCESS;
33
}
TrigCostFinalizeAlg::m_trigCostSvcHandle
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
Definition:
TrigCostFinalizeAlg.h:26
TrigCostFinalizeAlg::TrigCostFinalizeAlg
TrigCostFinalizeAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
TrigCostFinalizeAlg.cxx:9
TrigCompositeUtils::createAndStore
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
Definition:
TrigCompositeUtilsRoot.cxx:30
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:83
TrigCompositeUtils.h
TrigCostFinalizeAlg::m_rosWriteHandleKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_rosWriteHandleKey
Definition:
TrigCostFinalizeAlg.h:32
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
TrigCostFinalizeAlg::execute
virtual StatusCode execute(const EventContext &context) const override
Definition:
TrigCostFinalizeAlg.cxx:25
TrigCostFinalizeAlg::initialize
virtual StatusCode initialize() override
Definition:
TrigCostFinalizeAlg.cxx:14
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
TrigCostFinalizeAlg.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
TrigCostFinalizeAlg::m_costWriteHandleKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_costWriteHandleKey
Definition:
TrigCostFinalizeAlg.h:29
Generated on Sun Dec 22 2024 21:20:47 for ATLAS Offline Software by
1.8.18