ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
MuonCalibR4::RtResolutionSqrt Class Reference

#include <RtResolutionSqrt.h>

Inheritance diagram for MuonCalibR4::RtResolutionSqrt:
Collaboration diagram for MuonCalibR4::RtResolutionSqrt:

Public Types

using ParVec = std::vector< double >
 

Public Member Functions

 RtResolutionSqrt (ParVec &vec)
 
std::string name () const
 
double resolution (double t, double bgRate=0.0) const
 returns resolution for a give time and background rate More...
 
virtual std::string typeName () const override
 
 CalibFunc (const ParVec &vec)
 
unsigned int nPar () const
 
const ParVecparameters () const
 
double par (unsigned int index) const
 

Private Attributes

ParVec m_parameters {}
 

Detailed Description

Definition at line 11 of file RtResolutionSqrt.h.

Member Typedef Documentation

◆ ParVec

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

Definition at line 35 of file CalibFunc.h.

Constructor & Destructor Documentation

◆ RtResolutionSqrt()

MuonCalibR4::RtResolutionSqrt::RtResolutionSqrt ( ParVec vec)
inlineexplicit

Definition at line 13 of file RtResolutionSqrt.h.

Member Function Documentation

◆ CalibFunc()

MuonCalib::CalibFunc::CalibFunc
inlineexplicitinherited

Definition at line 36 of file CalibFunc.h.

36  :
37  m_parameters{vec} {}

◆ name()

std::string RtResolutionSqrt::name ( ) const
virtual

Implements MuonCalib::CalibFunc.

Definition at line 10 of file RtResolutionSqrt.cxx.

10 {return "RtResolutionSqrt";}

◆ 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()

double RtResolutionSqrt::resolution ( double  t,
double  bgRate = 0.0 
) const
virtual

returns resolution for a give time and background rate

Implements MuonCalib::IRtResolution.

Definition at line 12 of file RtResolutionSqrt.cxx.

12  {
13  return 0.5;
14 }

◆ typeName()

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

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 files:
index
Definition: index.py:1
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
MuonCalib::IRtResolution
generic interface for a resolution function
Definition: IRtResolution.h:13
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