ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleLevelMissingETAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9namespace CP {
10
12
13 ANA_CHECK(m_metKey.initialize());
14
15 return StatusCode::SUCCESS;
16}
17
18StatusCode ParticleLevelMissingETAlg::execute(const EventContext &ctx) const {
19
21
22 // decorators
23 static const SG::Decorator<float> dec_phi("phi");
24 static const SG::Decorator<float> dec_met("met");
25
26 for (const auto* etmiss : *met) {
27 dec_met(*etmiss) = etmiss->met();
28 dec_phi(*etmiss) = etmiss->phi();
29 }
30
31 return StatusCode::SUCCESS;
32}
33
34} // namespace CP
#define ANA_CHECK(EXP)
check whether the given expression was successful
virtual StatusCode execute(const EventContext &ctx) const final
SG::ReadHandleKey< xAOD::MissingETContainer > m_metKey
Helper class to provide type-safe access to aux data.
Definition Decorator.h:59
Select isolated Photons, Electrons and Muons.