ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalib::IRtResolution Class Referenceabstract

Generic interface to retrieve the resolution on the drift radius as a function of the drift time. More...

#include <IRtResolution.h>

Inheritance diagram for MuonCalib::IRtResolution:
Collaboration diagram for MuonCalib::IRtResolution:

Public Types

using ParVec = std::vector<double>

Public Member Functions

virtual ~IRtResolution ()=default
virtual std::string typeName () const override final
virtual unsigned nDoF () const =0
 Returns the number of degrees of freedom of the relation function.
virtual double resolution (double t, double bgRate=0.0) const =0
 returns resolution for a give time and background rate
 CalibFunc (const ParVec &vec)
unsigned int nPar () const
const ParVecparameters () const
double par (unsigned int index) const
virtual std::string name () const =0

Private Attributes

ParVec m_parameters {}

Detailed Description

Generic interface to retrieve the resolution on the drift radius as a function of the drift time.

The main method of the resolution function is the

resolution(const double t, const double bgRate ) method which returns for a given drift time the corresponding uncertainty on the drift radius

Definition at line 20 of file IRtResolution.h.

Member Typedef Documentation

◆ ParVec

using MuonCalib::CalibFunc::ParVec = std::vector<double>
inherited

Definition at line 35 of file CalibFunc.h.

Constructor & Destructor Documentation

◆ ~IRtResolution()

virtual MuonCalib::IRtResolution::~IRtResolution ( )
virtualdefault

Member Function Documentation

◆ CalibFunc()

MuonCalib::CalibFunc::CalibFunc ( const ParVec & vec)
inlineexplicit

Definition at line 36 of file CalibFunc.h.

36 :
std::vector< size_t > vec

◆ name()

◆ nDoF()

virtual unsigned MuonCalib::IRtResolution::nDoF ( ) const
pure virtual

Returns the number of degrees of freedom of the relation function.

Implemented in MuonCalib::RadiusResolutionChebyshev, MuonCalib::RtResolutionChebyshev, and MuonCalib::RtResolutionLookUp.

◆ nPar()

unsigned int MuonCalib::CalibFunc::nPar ( ) const
inlineinherited

Definition at line 39 of file CalibFunc.h.

39{ return m_parameters.size(); }

◆ par()

double MuonCalib::CalibFunc::par ( unsigned int index) const
inlineinherited

Definition at line 41 of file CalibFunc.h.

41 {
42 return index < nPar() ? m_parameters[index] : 0.;
43 }
unsigned int nPar() const
Definition CalibFunc.h:39
str index
Definition DeMoScan.py:362

◆ parameters()

const ParVec & MuonCalib::CalibFunc::parameters ( ) const
inlineinherited

Definition at line 40 of file CalibFunc.h.

40{ return m_parameters; }

◆ resolution()

virtual double MuonCalib::IRtResolution::resolution ( double t,
double bgRate = 0.0 ) const
pure virtual

returns resolution for a give time and background rate

Implemented in MuonCalib::RadiusResolutionChebyshev, MuonCalib::RtResolutionChebyshev, and MuonCalib::RtResolutionLookUp.

◆ typeName()

virtual std::string MuonCalib::IRtResolution::typeName ( ) const
inlinefinaloverridevirtual

Implements MuonCalib::CalibFunc.

Definition at line 24 of file IRtResolution.h.

24{ return "IRtResolution"; }

Member Data Documentation

◆ m_parameters

ParVec MuonCalib::CalibFunc::m_parameters {}
privateinherited

Definition at line 48 of file CalibFunc.h.

48{};

The documentation for this class was generated from the following file: