ATLAS Offline Software
Static Public Member Functions | Private Types | List of all members
MuonCalib::MdtCalibrationFactory Class Reference

#include <MdtCalibrationFactory.h>

Collaboration diagram for MuonCalib::MdtCalibrationFactory:

Static Public Member Functions

static IMdtBackgroundCorFunccreateBackgroundCorFunc (const std::string &name, const ParVec &pars)
 
static IMdtBFieldCorFunccreateBFieldCorFunc (const std::string &name, const ParVec &pars)
 
static IMdtSlewCorFunccreateMdtSlewCorFunc (const std::string &name, const ParVec &pars)
 
static IMdtTempCorFunccreateMdtTempCorFunc (const std::string &name, const ParVec &pars)
 
static IMdtWireSagCorFunccreateMdtWireSagCorFunc (const std::string &name, const ParVec &pars)
 
static IRtRelationcreateRtRelation (const std::string &name, const ParVec &pars)
 
static IRtResolutioncreateRtResolution (const std::string &name, const ParVec &pars)
 

Private Types

typedef CalibFunc::ParVec ParVec
 

Detailed Description

Factory to create instances of correction functions

Definition at line 26 of file MdtCalibrationFactory.h.

Member Typedef Documentation

◆ ParVec

Definition at line 27 of file MdtCalibrationFactory.h.

Member Function Documentation

◆ createBackgroundCorFunc()

IMdtBackgroundCorFunc * MuonCalib::MdtCalibrationFactory::createBackgroundCorFunc ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 21 of file MdtCalibrationFactory.cxx.

21  {
22  if (name == "MdtBackgroundCorFunc0") {
23  return new MdtBackgroundCorFunc0(pars);
24  } else {
25  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
26  log << MSG::WARNING << "createBackgroundCorFunc: <wrong name>" << name << endmsg;
27  return nullptr;
28  }
29  }

◆ createBFieldCorFunc()

IMdtBFieldCorFunc * MuonCalib::MdtCalibrationFactory::createBFieldCorFunc ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 31 of file MdtCalibrationFactory.cxx.

31  {
32  if (name == "MdtBFieldCorFunc0") {
33  return new MdtBFieldCorFunc0(pars);
34  } else {
35  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
36  log << MSG::WARNING << "createBFieldCorFunc: <wrong name>" << name << endmsg;
37  return nullptr;
38  }
39  }

◆ createMdtSlewCorFunc()

IMdtSlewCorFunc * MuonCalib::MdtCalibrationFactory::createMdtSlewCorFunc ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 41 of file MdtCalibrationFactory.cxx.

41  {
42  if (name == "MdtSlewCorFunc0") {
43  return new MdtSlewCorFunc0(pars);
44  } else {
45  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
46  log << MSG::WARNING << "createMdtSlewCorFunc: <wrong name>" << name << endmsg;
47  return nullptr;
48  }
49  }

◆ createMdtTempCorFunc()

IMdtTempCorFunc * MuonCalib::MdtCalibrationFactory::createMdtTempCorFunc ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 51 of file MdtCalibrationFactory.cxx.

51  {
52  if (name == "MdtTempCorFunc0") {
53  return new MdtTempCorFunc0(pars);
54  } else {
55  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
56  log << MSG::WARNING << "createMdtTempCorFunc: <wrong name>" << name << endmsg;
57  return nullptr;
58  }
59  }

◆ createMdtWireSagCorFunc()

IMdtWireSagCorFunc * MuonCalib::MdtCalibrationFactory::createMdtWireSagCorFunc ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 61 of file MdtCalibrationFactory.cxx.

61  {
62  if (name == "MdtWireSagCorFunc0") {
63  return new MdtWireSagCorFunc0(pars);
64  } else {
65  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
66  log << MSG::WARNING << "createMdtWireSagCorFunc: <wrong name>" << name << endmsg;
67  return nullptr;
68  }
69  }

◆ createRtRelation()

IRtRelation * MuonCalib::MdtCalibrationFactory::createRtRelation ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 71 of file MdtCalibrationFactory.cxx.

71  {
72  if (name == "RtRelationLookUp") {
73  return new RtRelationLookUp(pars);
74  } else {
75  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
76  log << MSG::WARNING << "createRtRelation: <wrong name>" << name << endmsg;
77  return nullptr;
78  }
79  }

◆ createRtResolution()

IRtResolution * MuonCalib::MdtCalibrationFactory::createRtResolution ( const std::string &  name,
const ParVec pars 
)
static

Definition at line 81 of file MdtCalibrationFactory.cxx.

81  {
82  if (name == "RtResolutionLookUp") {
83  return new RtResolutionLookUp(pars);
84  } else {
85  MsgStream log(Athena::getMessageSvc(), "MdtCalibrationFactory");
86  log << MSG::WARNING << "createRtResolution: <wrong name>" << name << endmsg;
87  return nullptr;
88  }
89  }

The documentation for this class was generated from the following files:
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20