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
ElectronPhotonID
EgammaAnalysisHelpers
Root
PhotonHelpers.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
EgammaAnalysisHelpers/PhotonHelpers.h
"
6
#include "
xAODCaloEvent/CaloCluster.h
"
7
#include "
xAODEgamma/EgammaxAODHelpers.h
"
8
#include "
xAODEgamma/Photon.h
"
9
10
// ==================================================================
11
bool
12
PhotonHelpers::passOQquality
(
const
xAOD::Photon
& ph)
13
{
14
15
return
(ph.
OQ
() & 1073741824) == 0 &&
16
17
((ph.
OQ
() & 134217728) == 0 ||
18
19
(ph.
showerShapeValue
(
xAOD::EgammaParameters::Reta
) <= 0.98
20
21
&& ph.
showerShapeValue
(
xAOD::EgammaParameters::f1
) <= 0.4
22
23
&& (ph.
OQ
() & 67108864) == 0)
24
25
);
26
}
27
// ==================================================================
28
bool
29
PhotonHelpers::passOQqualityDelayed
(
const
xAOD::Photon
& ph)
30
{
31
32
return
(ph.
OQ
() & 1073741824) == 0 &&
33
34
((ph.
OQ
() & 134217728) == 0 ||
35
36
(ph.
showerShapeValue
(
xAOD::EgammaParameters::Reta
) <= 0.98
37
38
&& ph.
showerShapeValue
(
xAOD::EgammaParameters::f1
) <= 0.4
39
40
));
41
}
PhotonHelpers.h
xAOD::EgammaParameters::Reta
@ Reta
e237/e277
Definition:
EgammaEnums.h:154
xAOD::Egamma_v1::showerShapeValue
bool showerShapeValue(float &value, const EgammaParameters::ShowerShapeType information) const
Accessor for ShowerShape values.
Definition:
Egamma_v1.cxx:207
PhotonHelpers::passOQquality
bool passOQquality(const xAOD::Photon &ph)
Helper to ease the implemmantation of the pass Quality requirements.
Definition:
PhotonHelpers.cxx:12
EgammaxAODHelpers.h
xAOD::EgammaParameters::f1
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
Definition:
EgammaEnums.h:52
CaloCluster.h
Photon.h
xAOD::Egamma_v1::OQ
uint32_t OQ() const
Return the object quality bit word.
Definition:
Egamma_v1.cxx:242
xAOD::Photon_v1
Definition:
Photon_v1.h:37
PhotonHelpers::passOQqualityDelayed
bool passOQqualityDelayed(const xAOD::Photon &ph)
Helpers to ease the implementation of the pass Quality requirements.
Definition:
PhotonHelpers.cxx:29
Generated on Thu Mar 13 2025 21:16:21 for ATLAS Offline Software by
1.8.18