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

generic interface for temperature correction functions More...

#include <IMdtTempCorFunc.h>

Inheritance diagram for MuonCalib::IMdtTempCorFunc:
Collaboration diagram for MuonCalib::IMdtTempCorFunc:

Public Types

using ParVec = std::vector< double >
 

Public Member Functions

 IMdtTempCorFunc (const CalibFunc::ParVec &vec)
 
virtual ~IMdtTempCorFunc ()
 
virtual std::string typeName () const
 
virtual double correction (double t, double temp) const =0
 Return time correction (ns). More...
 
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 temperature correction functions

Definition at line 14 of file IMdtTempCorFunc.h.

Member Typedef Documentation

◆ ParVec

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

Definition at line 35 of file CalibFunc.h.

Constructor & Destructor Documentation

◆ IMdtTempCorFunc()

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

Definition at line 16 of file IMdtTempCorFunc.h.

16 : CalibFunc(vec){};

◆ ~IMdtTempCorFunc()

virtual MuonCalib::IMdtTempCorFunc::~IMdtTempCorFunc ( )
inlinevirtual

Definition at line 17 of file IMdtTempCorFunc.h.

17 {}

Member Function Documentation

◆ correction()

virtual double MuonCalib::IMdtTempCorFunc::correction ( double  t,
double  temp 
) const
pure virtual

Return time correction (ns).

Input: t = drift-time (ns), temp = temperature (degrees Celcius)

◆ 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; }

◆ typeName()

virtual std::string MuonCalib::IMdtTempCorFunc::typeName ( ) const
inlinevirtual

Implements MuonCalib::CalibFunc.

Definition at line 18 of file IMdtTempCorFunc.h.

18 { return "IMdtTempCorFunc"; }

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
MuonCalib::CalibFunc::CalibFunc
CalibFunc(const ParVec &vec)
Definition: CalibFunc.h:36