ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
TrigCompositeUtils.h
TrigCostFinalizeAlg.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::WriteHandle
Definition
StoreGate/StoreGate/WriteHandle.h:73
TrigCostFinalizeAlg::m_rosWriteHandleKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_rosWriteHandleKey
Definition
TrigCostFinalizeAlg.h:32
TrigCostFinalizeAlg::initialize
virtual StatusCode initialize() override
Definition
TrigCostFinalizeAlg.cxx:14
TrigCostFinalizeAlg::m_trigCostSvcHandle
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
Definition
TrigCostFinalizeAlg.h:26
TrigCostFinalizeAlg::TrigCostFinalizeAlg
TrigCostFinalizeAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TrigCostFinalizeAlg.cxx:9
TrigCostFinalizeAlg::m_costWriteHandleKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_costWriteHandleKey
Definition
TrigCostFinalizeAlg.h:29
TrigCostFinalizeAlg::execute
virtual StatusCode execute(const EventContext &context) const override
Definition
TrigCostFinalizeAlg.cxx:25
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:28
Generated on
for ATLAS Offline Software by
1.17.0