Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
}
CP::EgammaSamplingPatternDecoratorAlg::m_clusterContainer
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainer
the e-gamma cluster container
Definition:
EgammaSamplingPatternDecoratorAlg.h:40
EgammaSamplingPatternDecoratorAlg.h
ViewHelper::makeHandle
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
Definition:
ViewHelper.h:265
CP::EgammaSamplingPatternDecoratorAlg::m_samplingPattern
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_samplingPattern
the sampling pattern decoration
Definition:
EgammaSamplingPatternDecoratorAlg.h:43
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition:
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
CP
Select isolated Photons, Electrons and Muons.
Definition:
Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition:
StoreGate/StoreGate/WriteDecorHandle.h:100
CP::EgammaSamplingPatternDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition:
EgammaSamplingPatternDecoratorAlg.cxx:25
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition:
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
WriteDecorHandle.h
Handle class for adding a decoration to an object.
RunTileMonitoring.clusters
clusters
Definition:
RunTileMonitoring.py:133
CP::EgammaSamplingPatternDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition:
EgammaSamplingPatternDecoratorAlg.cxx:35
Generated on Fri Mar 28 2025 21:10:00 for ATLAS Offline Software by
1.8.18