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
InnerDetector
InDetRecEvent
InDetRIO_OnTrack
src
SCTRIO_OnTrackErrorScaling.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
InDetRIO_OnTrack/SCTRIO_OnTrackErrorScaling.h
"
5
#include <iostream>
6
7
const
char
*
const
SCTRIO_OnTrackErrorScaling::s_names
[
SCTRIO_OnTrackErrorScaling::kNParamTypes
]={
8
"SCT Barrel"
,
9
"SCT Endcap"
10
};
11
12
namespace
{
13
inline
double
square(
double
a
) {
return
a
*
a
; }
14
}
15
16
CLID
SCTRIO_OnTrackErrorScaling::clid
()
const
{
17
return
ClassID_traits<CondCont<SCTRIO_OnTrackErrorScaling>
>
::ID
();
18
}
19
20
bool
SCTRIO_OnTrackErrorScaling::postProcess
() {
21
checkParameters
(
"SCTRIO_OnTrackErrorScaling"
,
kNParamTypes
,
s_names
, 2);
22
return
true
;
23
}
24
25
Amg::MatrixX
SCTRIO_OnTrackErrorScaling::getScaledCovariance
(
Amg::MatrixX
&& cov_input,
26
bool
is_endcap,
27
double
sinLocalAngle)
const
28
{
29
Amg::MatrixX
newCov = std::move(cov_input);
30
if
(is_endcap && newCov.rows() > 1) {
31
double
Sn = sinLocalAngle;
32
double
Sn2 = square(Sn);
33
double
Cs2 = (1.-Sn)*(1.+Sn);
34
double
SC
= Sn*sqrt(Cs2);
35
double
a
=
params
()[
kEndcap
][0];
36
double
b
=
params
()[
kEndcap
][1];
37
double
dV0 = (Cs2*newCov(0,0)+Sn2*newCov(1,1)
38
+2.*
SC
*newCov(1,0))*(square(
a
)-1.) + square(
b
);
39
newCov(0,0)+= (Cs2*dV0);
40
newCov(1,0)+= (
SC
*dV0);
41
newCov(0,1) = newCov(1,0);
42
newCov(1,1)+= (Sn2*dV0);
43
}
else
{
44
double
a
= (is_endcap) ?
params
()[
kEndcap
][0] :
params
()[
kBarrel
][0];
45
double
b
= (is_endcap) ?
params
()[
kEndcap
][1] :
params
()[
kBarrel
][1];
46
newCov(0,0) *= square(
a
);
47
newCov(0,0) += square(
b
);
48
}
49
//std::cout << "DEBUG createScaledSctCovariance endcap:" << is_endcap << " angle=" << sinLocalAngle << " " << cov_input << " -> " << newCov << std::endl;
50
return
newCov;
51
}
SCTRIO_OnTrackErrorScaling.h
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition:
EventPrimitives.h:27
ID
std::vector< Identifier > ID
Definition:
CalibHitIDCheck.h:24
SCTRIO_OnTrackErrorScaling::postProcess
virtual bool postProcess() override final
Definition:
SCTRIO_OnTrackErrorScaling.cxx:20
SCTRIO_OnTrackErrorScaling::clid
virtual CLID clid() const override final
Definition:
SCTRIO_OnTrackErrorScaling.cxx:16
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition:
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:37
TRT_PAI_gasdata::SC
const float SC[NC]
Cross sections for Carbon.
Definition:
TRT_PAI_gasdata.h:255
SCTRIO_OnTrackErrorScaling::kNParamTypes
@ kNParamTypes
Definition:
SCTRIO_OnTrackErrorScaling.h:22
CLID
uint32_t CLID
The Class ID type.
Definition:
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
SCTRIO_OnTrackErrorScaling::s_names
static const char *const s_names[kNParamTypes]
Definition:
SCTRIO_OnTrackErrorScaling.h:30
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
a
TList * a
Definition:
liststreamerinfos.cxx:10
SCTRIO_OnTrackErrorScaling::getScaledCovariance
Amg::MatrixX getScaledCovariance(Amg::MatrixX &&cov_input, bool is_endcap, double sinLocalAngle) const
Definition:
SCTRIO_OnTrackErrorScaling.cxx:25
SCTRIO_OnTrackErrorScaling::kBarrel
@ kBarrel
Definition:
SCTRIO_OnTrackErrorScaling.h:20
RIO_OnTrackErrorScaling::checkParameters
void checkParameters(const char *label, unsigned int n_paramter_sets, const char *const *param_names, unsigned int n_paramters) const
Convenience function to check whether the number of parameters is correct.
Definition:
RIO_OnTrackErrorScaling.cxx:14
SCTRIO_OnTrackErrorScaling::kEndcap
@ kEndcap
Definition:
SCTRIO_OnTrackErrorScaling.h:21
RIO_OnTrackErrorScaling::params
std::vector< std::vector< double > > & params()
Definition:
RIO_OnTrackErrorScaling.h:29
Generated on Fri Mar 28 2025 21:18:17 for ATLAS Offline Software by
1.8.18