ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1CaloFEX
TrigT1CaloFexPerf
src
METPerfFexBase.cxx
Go to the documentation of this file.
1
4
5
#include "
METPerfFexBase.h
"
6
#include "
StoreGate/ReadHandle.h
"
7
#include "
StoreGate/WriteHandle.h
"
8
#include <memory>
9
#include "
xAODTrigger/EnergySumRoIAuxInfo.h
"
10
11
namespace
LVL1
12
{
13
METPerfFexBase::METPerfFexBase
(
const
std::string &
name
, ISvcLocator *pSvcLocator)
14
:
AthReentrantAlgorithm
(
name
, pSvcLocator)
15
{
16
declareProperty
(
"OutputMET"
,
m_metKey
,
"Output MET"
);
17
}
18
19
METPerfFexBase::~METPerfFexBase
() {}
20
21
StatusCode
METPerfFexBase::initialize
()
22
{
23
ATH_CHECK
(
m_metKey
.initialize());
24
return
StatusCode::SUCCESS;
25
}
26
27
StatusCode
METPerfFexBase::execute
(
const
EventContext& ctx)
const
28
{
29
30
auto
met
= std::make_unique<xAOD::EnergySumRoI>();
31
auto
metAux = std::make_unique<xAOD::EnergySumRoIAuxInfo>();
32
met
->setStore(metAux.get());
33
ATH_CHECK
(
runFex
(ctx, *
met
));
34
auto
metHandle =
SG::makeHandle
(
m_metKey
, ctx);
35
ATH_CHECK
(metHandle.record(std::move(
met
), std::move(metAux)));
36
37
return
StatusCode::SUCCESS;
38
}
39
40
}
// namespace LVL1
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
EnergySumRoIAuxInfo.h
METPerfFexBase.h
ReadHandle.h
Handle class for reading from StoreGate.
WriteHandle.h
Handle class for recording to StoreGate.
AthCommonAlgorithm< Gaudi::Algorithm >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
LVL1::METPerfFexBase::execute
virtual StatusCode execute(const EventContext &ctx) const final
Definition
METPerfFexBase.cxx:27
LVL1::METPerfFexBase::METPerfFexBase
METPerfFexBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
METPerfFexBase.cxx:13
LVL1::METPerfFexBase::m_metKey
SG::WriteHandleKey< xAOD::EnergySumRoI > m_metKey
Definition
METPerfFexBase.h:28
LVL1::METPerfFexBase::initialize
virtual StatusCode initialize() override
Definition
METPerfFexBase.cxx:21
LVL1::METPerfFexBase::runFex
virtual StatusCode runFex(const EventContext &ctx, xAOD::EnergySumRoI &met) const =0
LVL1::METPerfFexBase::~METPerfFexBase
virtual ~METPerfFexBase() override
Definition
METPerfFexBase.cxx:19
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition
ReadCondHandle.h:269
met
Definition
IMETSignificance.h:24
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0