ATLAS Offline Software
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonRIO_OnTrack
src
MDTRIO_OnTrackErrorScaling.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
MuonRIO_OnTrack/MDTRIO_OnTrackErrorScaling.h
"
5
#include <iostream>
6
7
const
char
*
const
MDTRIO_OnTrackErrorScaling::s_names
[
MDTRIO_OnTrackErrorScaling::kNParamTypes
]={
8
"MDT Barrel"
,
9
"MDT Endcap"
10
};
11
12
namespace
{
13
inline
double
square(
double
a
) {
return
a
*
a
; }
14
}
15
16
CLID
MDTRIO_OnTrackErrorScaling::clid
()
const
{
17
return
ClassID_traits<CondCont<MDTRIO_OnTrackErrorScaling>
>
::ID
();
18
}
19
20
bool
MDTRIO_OnTrackErrorScaling::postProcess
() {
21
checkParameters
(
"MDTRIO_OnTrackErrorScaling"
,
kNParamTypes
,
s_names
, 2);
22
return
true
;
23
}
24
25
Amg::MatrixX
MDTRIO_OnTrackErrorScaling::getScaledCovariance
(
const
Amg::MatrixX
& cov_input,
26
bool
is_endcap)
const
27
{
28
Amg::MatrixX
newCov(cov_input);
29
double
a
= (is_endcap) ?
params
()[
kEndcap
][0] :
params
()[
kBarrel
][0];
30
double
b
= (is_endcap) ?
params
()[
kEndcap
][1] :
params
()[
kBarrel
][1];
31
newCov(0,0) *= square(
a
);
32
newCov(0,0) += square(
b
);
33
return
newCov;
34
}
35
36
MDTRIO_OnTrackErrorScaling.h
MDTRIO_OnTrackErrorScaling::getScaledCovariance
Amg::MatrixX getScaledCovariance(const Amg::MatrixX &cov_input, bool is_endcap) const
Definition:
MDTRIO_OnTrackErrorScaling.cxx:25
MDTRIO_OnTrackErrorScaling::postProcess
virtual bool postProcess() override final
Definition:
MDTRIO_OnTrackErrorScaling.cxx:20
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
MDTRIO_OnTrackErrorScaling::s_names
static const char *const s_names[kNParamTypes]
Definition:
MDTRIO_OnTrackErrorScaling.h:29
MDTRIO_OnTrackErrorScaling::kEndcap
@ kEndcap
Definition:
MDTRIO_OnTrackErrorScaling.h:21
MDTRIO_OnTrackErrorScaling::kNParamTypes
@ kNParamTypes
Definition:
MDTRIO_OnTrackErrorScaling.h:22
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition:
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:40
CLID
uint32_t CLID
The Class ID type.
Definition:
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
MDTRIO_OnTrackErrorScaling::clid
virtual CLID clid() const override final
Definition:
MDTRIO_OnTrackErrorScaling.cxx:16
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
a
TList * a
Definition:
liststreamerinfos.cxx:10
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
RIO_OnTrackErrorScaling::params
std::vector< std::vector< double > > & params()
Definition:
RIO_OnTrackErrorScaling.h:29
MDTRIO_OnTrackErrorScaling::kBarrel
@ kBarrel
Definition:
MDTRIO_OnTrackErrorScaling.h:20
Generated on Thu Nov 7 2024 21:20:45 for ATLAS Offline Software by
1.8.18