Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Private Attributes | List of all members
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
More...
 
virtual double resolution (double t, double bgRate=0.0) const =0
 returns resolution for a give time and background rate More...
 
 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
inlineexplicit

Definition at line 36 of file CalibFunc.h.

36  :
37  m_parameters{vec} {}

◆ name()

virtual std::string MuonCalib::CalibFunc::name ( ) const
pure virtualinherited

◆ nDoF()

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

Returns the number of degrees of freedom of the relation function

Implemented in MuonCalib::RtResolutionChebyshev, MuonCalib::RadiusResolutionChebyshev, 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  }

◆ 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::RtResolutionLookUp, MuonCalib::RtResolutionChebyshev, and MuonCalib::RadiusResolutionChebyshev.

◆ 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.


The documentation for this class was generated from the following file:
index
Definition: index.py:1
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:9
DeMoScan.index
string index
Definition: DeMoScan.py:364
MuonCalib::CalibFunc::m_parameters
ParVec m_parameters
Definition: CalibFunc.h:48
MuonCalib::CalibFunc::nPar
unsigned int nPar() const
Definition: CalibFunc.h:39