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
PhotonExtraVariablesAlg.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
7
#include <
EgammaAnalysisAlgorithms/PhotonExtraVariablesAlg.h
>
8
9
namespace
CP
{
10
11
StatusCode
PhotonExtraVariablesAlg::initialize
() {
12
13
ANA_CHECK
(
m_photonsHandle
.
initialize
(
m_systematicsList
));
14
15
ANA_CHECK
(
m_conversionTypeHandle
.
initialize
(
m_systematicsList
,
m_photonsHandle
));
16
ANA_CHECK
(
m_caloEta2Handle
.
initialize
(
m_systematicsList
,
m_photonsHandle
));
17
18
ANA_CHECK
(
m_systematicsList
.
initialize
());
19
20
return
StatusCode::SUCCESS;
21
}
22
23
StatusCode
PhotonExtraVariablesAlg::execute
() {
24
25
for
(
const
auto
&
sys
:
m_systematicsList
.
systematicsVector
()) {
26
27
const
xAOD::PhotonContainer
*photons =
nullptr
;
28
ANA_CHECK
(
m_photonsHandle
.
retrieve
(photons,
sys
));
29
30
for
(
const
xAOD::Photon
*
photon
: *photons) {
31
int
conversionType
=
photon
->conversionType();
32
m_conversionTypeHandle
.
set
(*
photon
,
conversionType
,
sys
);
33
34
float
caloEta2 =
photon
->caloCluster()->etaBE(2);
35
m_caloEta2Handle
.
set
(*
photon
, caloEta2,
sys
);
36
}
37
}
38
39
return
StatusCode::SUCCESS;
40
}
41
42
}
// namespace
CP::SysWriteDecorHandle::set
void set(const SG::AuxElement &object, const T &value, const CP::SystematicSet &sys) const
set the object decoration for the given systematic
CP::PhotonExtraVariablesAlg::m_systematicsList
CP::SysListHandle m_systematicsList
Definition:
PhotonExtraVariablesAlg.h:27
CP::PhotonExtraVariablesAlg::m_photonsHandle
CP::SysReadHandle< xAOD::PhotonContainer > m_photonsHandle
Definition:
PhotonExtraVariablesAlg.h:28
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition:
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
CP::SysReadHandle::retrieve
::StatusCode retrieve(const T *&object, const CP::SystematicSet &sys) const
retrieve the object for the given name
CP::SysListHandle::systematicsVector
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Definition:
SysListHandle.cxx:96
CP::PhotonExtraVariablesAlg::m_conversionTypeHandle
CP::SysWriteDecorHandle< int > m_conversionTypeHandle
Definition:
PhotonExtraVariablesAlg.h:29
CP::PhotonExtraVariablesAlg::initialize
virtual StatusCode initialize() override
Definition:
PhotonExtraVariablesAlg.cxx:11
CP
Select isolated Photons, Electrons and Muons.
Definition:
Control/xAODRootAccess/xAODRootAccess/TEvent.h:49
mapkey::sys
@ sys
Definition:
TElectronEfficiencyCorrectionTool.cxx:42
CP::PhotonExtraVariablesAlg::m_caloEta2Handle
CP::SysWriteDecorHandle< float > m_caloEta2Handle
Definition:
PhotonExtraVariablesAlg.h:30
CP::SysReadHandle::initialize
StatusCode initialize(SysListHandle &sysListHandle)
initialize this handle
CP::SysListHandle::initialize
::StatusCode initialize()
intialize this property
Definition:
SysListHandle.cxx:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::SysWriteDecorHandle::initialize
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize this handle
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
CP::PhotonExtraVariablesAlg::execute
virtual StatusCode execute() override
Definition:
PhotonExtraVariablesAlg.cxx:23
xAOD::photon
@ photon
Definition:
TrackingPrimitives.h:200
PhotonExtraVariablesAlg.h
xAOD::Photon_v1
Definition:
Photon_v1.h:37
xAOD::EgammaHelpers::conversionType
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
Definition:
PhotonxAODHelpers.cxx:27
Generated on Wed Mar 26 2025 21:16:34 for ATLAS Offline Software by
1.8.18