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
Tracking
TrkVertexFitter
TrkVertexWeightCalculators
src
GNNVertexWeightCalculator.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
TrkVertexWeightCalculators/GNNVertexWeightCalculator.h
"
5
6
#include "
xAODTracking/Vertex.h
"
7
#include "
xAODTracking/VertexContainer.h
"
8
#include "
StoreGate/ReadDecorHandle.h
"
9
10
// class constructor implementation
11
GNNVertexWeightCalculator::GNNVertexWeightCalculator
(
const
std::string&
t
,
12
const
std::string&
n
,
13
const
IInterface*
p
)
14
:
AthAlgTool
(
t
,
n
,
p
)
15
{
16
declareInterface<IVertexWeightCalculator>(
this
);
17
}
18
19
GNNVertexWeightCalculator::~GNNVertexWeightCalculator
() =
default
;
20
21
StatusCode
GNNVertexWeightCalculator::initialize
() {
22
ATH_MSG_DEBUG
(
"Initializing "
<<
name
() <<
"..."
);
23
24
ATH_CHECK
(
m_gnnScoreKey
.initialize());
25
26
return
StatusCode::SUCCESS;
27
}
28
29
double
GNNVertexWeightCalculator::estimateSignalCompatibility
(
30
const
xAOD::Vertex
&
vertex
)
const
{
31
32
const
EventContext &ctx = Gaudi::Hive::currentContext();
33
SG::ReadDecorHandle<xAOD::VertexContainer, float>
acc_gnnScore(
m_gnnScoreKey
,
34
ctx);
35
36
if
(acc_gnnScore.
isAvailable
()) {
37
return
acc_gnnScore(
vertex
);
38
}
else
{
39
return
-1;
40
}
41
42
}
GNNVertexWeightCalculator::m_gnnScoreKey
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_gnnScoreKey
Definition:
GNNVertexWeightCalculator.h:43
GNNVertexWeightCalculator.h
GNNVertexWeightCalculator::GNNVertexWeightCalculator
GNNVertexWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
Definition:
GNNVertexWeightCalculator.cxx:11
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition:
StoreGate/StoreGate/ReadDecorHandle.h:94
beamspotman.n
n
Definition:
beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
GNNVertexWeightCalculator::estimateSignalCompatibility
virtual double estimateSignalCompatibility(const xAOD::Vertex &vertex) const override
Estimate the compatibility of the vertex with a hard scatter vertex, with respect to pileup vertices.
Definition:
GNNVertexWeightCalculator.cxx:29
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
Vertex.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
Trk::vertex
@ vertex
Definition:
MeasurementType.h:21
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition:
Vertex_v1.h:42
ReadDecorHandle.h
Handle class for reading a decoration on an object.
GNNVertexWeightCalculator::initialize
virtual StatusCode initialize() override
Definition:
GNNVertexWeightCalculator.cxx:21
AthAlgTool
Definition:
AthAlgTool.h:26
SG::ReadDecorHandle::isAvailable
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.
GNNVertexWeightCalculator::~GNNVertexWeightCalculator
virtual ~GNNVertexWeightCalculator() override
Generated on Thu Apr 24 2025 21:11:16 for ATLAS Offline Software by
1.8.18