ATLAS Offline Software
Loading...
Searching...
No Matches
EgammaSamplingPatternDecoratorAlg.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
7
8
9//
10// includes
11//
12
14
16
17//
18// method implementations
19//
20
21namespace CP
22{
23
24 StatusCode EgammaSamplingPatternDecoratorAlg ::
25 initialize ()
26 {
27 ANA_CHECK (m_clusterContainer.initialize());
28 ANA_CHECK (m_samplingPattern.initialize());
29 return StatusCode::SUCCESS;
30 }
31
32
33
34 StatusCode EgammaSamplingPatternDecoratorAlg ::
35 execute (const EventContext& ctx) const
36 {
37 auto clusters = makeHandle (m_clusterContainer, ctx);
39 for (auto cluster : *clusters)
40 {
41 samplingPattern (*cluster) = cluster->samplingPattern();
42 }
43 return StatusCode::SUCCESS;
44 }
45}
Handle class for adding a decoration to an object.
#define ANA_CHECK(EXP)
check whether the given expression was successful
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainer
the e-gamma cluster container
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_samplingPattern
the sampling pattern decoration
Handle class for adding a decoration to an object.
Select isolated Photons, Electrons and Muons.