ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MdtCalib
MdtCalibData
src
RadiusResolutionChebyshev.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
MdtCalibData/RadiusResolutionChebyshev.h
"
5
#include "
MuonCalibMath/UtilFunc.h
"
6
#include "Acts/Utilities/detail/Polynomials.hpp"
7
8
namespace
MuonCalib
{
9
RadiusResolutionChebyshev::RadiusResolutionChebyshev
(
const
ParVec
&
vec
,
const
IRtRelationPtr
& rtRel):
10
IRtResolution
{
vec
},
m_rtRel
{rtRel} {}
11
12
std::string
RadiusResolutionChebyshev::name
()
const
{
13
return
"RadiusResolutionChebyshev"
;
14
}
15
double
RadiusResolutionChebyshev::resolution
(
double
t,
double
/*bgRate*/
)
const
{
16
double
reso{0.};
17
const
double
r
=
m_rtRel
->radius(t);
18
const
double
x
=
mapToUnitInterval
(
r
,
m_r_min
,
m_r_max
);
19
for
(
unsigned
int
k = 0; k <
nDoF
(); ++k) {
20
reso +=
par
(k) * Acts::detail::chebychevPolyTn(
x
, k);
21
}
22
return
reso;
23
}
24
unsigned
int
RadiusResolutionChebyshev::nDoF
()
const
{
25
return
parameters
().size();
26
}
27
std::vector<double>
RadiusResolutionChebyshev::resParameters
()
const
{
28
return
parameters
();
29
}
30
31
}
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
RadiusResolutionChebyshev.h
UtilFunc.h
x
#define x
MuonCalib::CalibFunc::parameters
const ParVec & parameters() const
Definition
CalibFunc.h:40
MuonCalib::CalibFunc::par
double par(unsigned int index) const
Definition
CalibFunc.h:41
MuonCalib::CalibFunc::ParVec
std::vector< double > ParVec
Definition
CalibFunc.h:35
MuonCalib::IRtResolution
Generic interface to retrieve the resolution on the drift radius as a function of the drift time.
Definition
IRtResolution.h:20
MuonCalib::RadiusResolutionChebyshev::resParameters
std::vector< double > resParameters() const
Definition
RadiusResolutionChebyshev.cxx:27
MuonCalib::RadiusResolutionChebyshev::m_r_min
double m_r_min
Definition
RadiusResolutionChebyshev.h:56
MuonCalib::RadiusResolutionChebyshev::nDoF
virtual unsigned int nDoF() const override final
get the coefficients of the r(t) polynomial
Definition
RadiusResolutionChebyshev.cxx:24
MuonCalib::RadiusResolutionChebyshev::m_rtRel
IRtRelationPtr m_rtRel
Definition
RadiusResolutionChebyshev.h:54
MuonCalib::RadiusResolutionChebyshev::RadiusResolutionChebyshev
RadiusResolutionChebyshev(const ParVec &vec, const IRtRelationPtr &rtRel)
initialization constructor,
Definition
RadiusResolutionChebyshev.cxx:9
MuonCalib::RadiusResolutionChebyshev::name
virtual std::string name() const override final
Initialization from a.
Definition
RadiusResolutionChebyshev.cxx:12
MuonCalib::RadiusResolutionChebyshev::m_r_max
double m_r_max
Definition
RadiusResolutionChebyshev.h:55
MuonCalib::RadiusResolutionChebyshev::resolution
virtual double resolution(double t, double bgRate=0.0) const override final
get the number of parameters used to describe the resolution
Definition
RadiusResolutionChebyshev.cxx:15
r
int r
Definition
globals.cxx:22
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
MuonCalib::IRtRelationPtr
GeoModel::TransientConstSharedPtr< IRtRelation > IRtRelationPtr
Definition
IRtRelation.h:17
MuonCalib::mapToUnitInterval
double mapToUnitInterval(const double x, const double lowerEdge, const double upperEdge)
Maps the number x which is in [lowEdge;upperEdge] to the interval [-1;1].
Definition
UtilFunc.h:12
Generated on
for ATLAS Offline Software by
1.17.0