ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EgammaAnalysisAlgorithms
Root
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
13
#include <
EgammaAnalysisAlgorithms/EgammaSamplingPatternDecoratorAlg.h
>
14
15
#include <
AsgDataHandles/WriteDecorHandle.h
>
16
17
//
18
// method implementations
19
//
20
21
namespace
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);
38
SG::WriteDecorHandle<xAOD::CaloClusterContainer,std::uint32_t>
samplingPattern (
m_samplingPattern
, ctx);
39
for
(
auto
cluster : *clusters)
40
{
41
samplingPattern (*cluster) = cluster->samplingPattern();
42
}
43
return
StatusCode::SUCCESS;
44
}
45
}
WriteDecorHandle.h
Handle class for adding a decoration to an object.
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
EgammaSamplingPatternDecoratorAlg.h
CP::EgammaSamplingPatternDecoratorAlg::m_clusterContainer
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainer
the e-gamma cluster container
Definition
EgammaSamplingPatternDecoratorAlg.h:40
CP::EgammaSamplingPatternDecoratorAlg::m_samplingPattern
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_samplingPattern
the sampling pattern decoration
Definition
EgammaSamplingPatternDecoratorAlg.h:43
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition
StoreGate/StoreGate/WriteDecorHandle.h:100
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0