ATLAS Offline Software
Loading...
Searching...
No Matches
AsgEnergyDecoratorAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
9namespace CP {
10
12
15 ANA_CHECK(m_systematicsList.initialize());
16
17 return StatusCode::SUCCESS;
18 }
19
21
22 for (const auto &sys : m_systematicsList.systematicsVector()) {
23
24 const xAOD::IParticleContainer *particles = nullptr;
25 ANA_CHECK(m_particlesHandle.retrieve (particles, sys));
26
27 for (const xAOD::IParticle *particle : *particles) {
28 m_energyDecor.set(*particle, particle->e(), sys);
29 }
30
31 }
32
33 return StatusCode::SUCCESS;
34 }
35
36} // namespace
#define ANA_CHECK(EXP)
check whether the given expression was successful
virtual StatusCode initialize() override
virtual StatusCode execute() override
CP::SysWriteDecorHandle< float > m_energyDecor
CP::SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.