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
Trigger
TrigAlgorithms
TrigEFMissingET
src
ApproximateTrackToLayerTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ApproximateTrackToLayerTool.h
"
6
7
ApproximateTrackToLayerTool::ApproximateTrackToLayerTool
(
const
std::string &
name
) :
asg
::AsgTool(
name
)
8
{
9
}
10
11
IExtendTrackToLayerTool::TrackExtension
ApproximateTrackToLayerTool::extendTrack
(
12
const
EventContext &,
13
const
xAOD::TrackParticle
&
track
)
const
14
{
15
// The approximation doesn't affect track etas at all
16
double
eta
=
track
.eta();
17
double
sinDPhi = (
m_trackExtrapolationLinear
.value() +
18
m_trackExtrapolationQuadratic
.value() *
eta
*
eta
+
19
m_trackExtrapolationQuartic
.value() *
eta
*
eta
*
eta
*
eta
) /
20
(
track
.pt() *
track
.charge());
21
22
if
(std::abs(sinDPhi) > 1.0)
23
// The track was extrapolated outside of acceptance
24
return
TrackExtension
{};
25
else
26
return
TrackExtension
{
track
.eta(),
track
.phi() - std::asin(sinDPhi)};
27
}
ApproximateTrackToLayerTool::ApproximateTrackToLayerTool
ApproximateTrackToLayerTool(const std::string &name)
Definition:
ApproximateTrackToLayerTool.cxx:7
ApproximateTrackToLayerTool::m_trackExtrapolationLinear
Gaudi::Property< double > m_trackExtrapolationLinear
Definition:
ApproximateTrackToLayerTool.h:30
ApproximateTrackToLayerTool::m_trackExtrapolationQuadratic
Gaudi::Property< double > m_trackExtrapolationQuadratic
Definition:
ApproximateTrackToLayerTool.h:27
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:83
asg
Definition:
DataHandleTestTool.h:28
IExtendTrackToLayerTool::TrackExtension
Helper struct to hold track extrapolation information.
Definition:
IExtendTrackToLayerTool.h:27
ApproximateTrackToLayerTool::m_trackExtrapolationQuartic
Gaudi::Property< double > m_trackExtrapolationQuartic
Definition:
ApproximateTrackToLayerTool.h:24
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
ApproximateTrackToLayerTool::extendTrack
virtual TrackExtension extendTrack(const EventContext &, const xAOD::TrackParticle &track) const override
Extend the track to a given layer.
Definition:
ApproximateTrackToLayerTool.cxx:11
xAOD::track
@ track
Definition:
TrackingPrimitives.h:513
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition:
TrackParticle_v1.h:43
ApproximateTrackToLayerTool.h
Generated on Thu Apr 24 2025 21:07:09 for ATLAS Offline Software by
1.8.18