ATLAS Offline Software
|
generic interface for a calibration function. More...
#include <CalibFunc.h>
Public Types | |
using | ParVec = std::vector< double > |
Public Member Functions | |
CalibFunc (const ParVec &vec) | |
virtual | ~CalibFunc ()=default |
unsigned int | nPar () const |
const ParVec & | parameters () const |
double | par (unsigned int index) const |
virtual std::string | typeName () const =0 |
virtual std::string | name () const =0 |
Private Attributes | |
ParVec | m_parameters {} |
generic interface for a calibration function.
The class caches the parameters and offers routines to access them. All correction functions using parametrisations should inherit from them.
Two functions have to be implemented by the user: typeName(): returning a string with the type of function. The default is to use the name of the interface. For example: The implementation of the slewing correction
IMdtSlewCorFunc::typeName() { return "IMdtSlewCorFunc"; }
name(): returning the name of the concrete implementation
MdtSlewCorFunc0::name() { return "MdtSlewCorFunc0"; }
typeName() and name() are used to uniquely indentify the correction function. This is needed from communication with the database.
Definition at line 33 of file CalibFunc.h.
using MuonCalib::CalibFunc::ParVec = std::vector<double> |
Definition at line 35 of file CalibFunc.h.
Definition at line 36 of file CalibFunc.h.
|
virtualdefault |
|
pure virtual |
Implemented in MuonCalib::RtSpline, MuonCalib::RtChebyshev, MuonCalib::RtLegendre, MuonCalib::RtRelationLookUp, MuonCalib::TrRelationLookUp, MuonCalib::TrChebyshev, MuonCalib::MdtSlewCorFuncHardcoded, MuonCalib::BFieldCorFunc, MuonCalib::RtResolutionChebyshev, MuonCalib::RtResolutionLookUp, and MuonCalibR4::RtResolutionSqrt.
|
inline |
Definition at line 39 of file CalibFunc.h.
|
inline |
Definition at line 41 of file CalibFunc.h.
Definition at line 40 of file CalibFunc.h.
|
pure virtual |
|
private |
Definition at line 51 of file CalibFunc.h.