ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
MuonCalib::IRtResolution Class Referenceabstract

generic interface for a resolution function 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
 
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 for a resolution function

Definition at line 13 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

◆ 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  if (index < nPar())
43  return m_parameters[index];
44  else
45  return 0.;
46  }

◆ 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 MuonCalibR4::RtResolutionSqrt.

◆ typeName()

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

Implements MuonCalib::CalibFunc.

Definition at line 17 of file IRtResolution.h.

17 { return "IRtResolution"; }

Member Data Documentation

◆ m_parameters

ParVec MuonCalib::CalibFunc::m_parameters {}
privateinherited

Definition at line 51 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:12
DeMoScan.index
string index
Definition: DeMoScan.py:364
MuonCalib::CalibFunc::m_parameters
ParVec m_parameters
Definition: CalibFunc.h:51
MuonCalib::CalibFunc::nPar
unsigned int nPar() const
Definition: CalibFunc.h:39