ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleLevelMissingETAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
11
12namespace CP {
13
15
16 ANA_CHECK(m_metKey.initialize());
17 ANA_CHECK(m_decMetKey.initialize());
18 ANA_CHECK(m_decPhiKey.initialize());
19
20 return StatusCode::SUCCESS;
21}
22
23StatusCode ParticleLevelMissingETAlg::execute(const EventContext &ctx) const {
24
26
27 // decorators
30
31 for (const auto* etmiss : *met) {
32 dec_met(*etmiss) = etmiss->met();
33 dec_phi(*etmiss) = etmiss->phi();
34 }
35
36 return StatusCode::SUCCESS;
37}
38
39} // namespace CP
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
#define ANA_CHECK(EXP)
check whether the given expression was successful
virtual StatusCode execute(const EventContext &ctx) const final
SG::WriteDecorHandleKey< xAOD::MissingETContainer > m_decPhiKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_metKey
SG::WriteDecorHandleKey< xAOD::MissingETContainer > m_decMetKey
Handle class for adding a decoration to an object.
Select isolated Photons, Electrons and Muons.