Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RadiusResolutionChebyshev.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
7 
8 namespace MuonCalib{
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) * chebyshevPoly1st(k, x);
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 }
beamspotman.r
def r
Definition: beamspotman.py:676
GeoModel::TransientConstSharedPtr< IRtRelation >
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
MuonCalib::RadiusResolutionChebyshev::m_r_max
double m_r_max
Definition: RadiusResolutionChebyshev.h:55
MuonCalib::RadiusResolutionChebyshev::name
virtual std::string name() const override final
Initialization from a
Definition: RadiusResolutionChebyshev.cxx:12
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
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:9
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
MuonCalib::CalibFunc::par
double par(unsigned int index) const
Definition: CalibFunc.h:41
UtilFunc.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::CalibFunc::ParVec
std::vector< double > ParVec
Definition: CalibFunc.h:35
ChebychevPoly.h
MuonCalib::chebyshevPoly1st
constexpr double chebyshevPoly1st(const unsigned int order, const double x)
Returns the n-th Chebyshev polynomial of first kind evaluated at x (c.f.
Definition: ChebychevPoly.h:13
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::IRtResolution
Generic interface to retrieve the resolution on the drift radius as a function of the drift time.
Definition: IRtResolution.h:20
MuonCalib::CalibFunc::parameters
const ParVec & parameters() const
Definition: CalibFunc.h:40
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
RadiusResolutionChebyshev.h
fitman.k
k
Definition: fitman.py:528