ATLAS Offline Software
MdtCalibrationFactory.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <iostream>
8 
10 #include "GaudiKernel/MsgStream.h"
18 
19 namespace MuonCalib {
20 
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  }
30 
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  }
40 
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  }
50 
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  }
60 
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  }
70 
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  }
80 
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  }
90 
91 } // namespace MuonCalib
MuonCalib::MdtCalibrationFactory::createRtResolution
static IRtResolution * createRtResolution(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:81
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
MuonCalib::IMdtTempCorFunc
generic interface for temperature correction functions
Definition: IMdtTempCorFunc.h:14
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
RtRelationLookUp.h
MdtBackgroundCorFunc0.h
MuonCalib::IMdtSlewCorFunc
generic interface for slewing correction functions
Definition: IMdtSlewCorFunc.h:14
MuonCalib::MdtBFieldCorFunc0
implementation of a b-field correction function
Definition: MdtBFieldCorFunc0.h:14
MuonCalib::IMdtBFieldCorFunc
generic interface for b-field correction functions
Definition: IMdtBFieldCorFunc.h:14
MuonCalib::RtRelationLookUp
Equidistant look up table for rt-relations with the time as key.
Definition: RtRelationLookUp.h:24
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
MuonCalib::CalibFunc::ParVec
std::vector< double > ParVec
Definition: CalibFunc.h:36
MuonCalib::MdtBackgroundCorFunc0
implementation of a background correction function
Definition: MdtBackgroundCorFunc0.h:14
MuonCalib::IMdtBackgroundCorFunc
generic interface for cavern background correction functions
Definition: IMdtBackgroundCorFunc.h:14
MuonCalib::MdtWireSagCorFunc0
implementation of a wire sag correction function
Definition: MdtWireSagCorFunc0.h:14
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MdtSlewCorFunc0.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
RtResolutionLookUp.h
MuonCalib::MdtCalibrationFactory::createBackgroundCorFunc
static IMdtBackgroundCorFunc * createBackgroundCorFunc(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:21
MuonCalib::MdtCalibrationFactory::createMdtWireSagCorFunc
static IMdtWireSagCorFunc * createMdtWireSagCorFunc(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:61
MuonCalib::MdtCalibrationFactory::createRtRelation
static IRtRelation * createRtRelation(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:71
MdtWireSagCorFunc0.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonCalib::MdtTempCorFunc0
implementation of a temperature correction function
Definition: MdtTempCorFunc0.h:14
MuonCalib::IRtResolution
generic interface for a resolution function
Definition: IRtResolution.h:14
MuonCalib::MdtCalibrationFactory::createMdtTempCorFunc
static IMdtTempCorFunc * createMdtTempCorFunc(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:51
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonCalib::IMdtWireSagCorFunc
generic interface for a wire sag correction function
Definition: IMdtWireSagCorFunc.h:14
MuonCalib::MdtSlewCorFunc0
implementation of a slewing correction function
Definition: MdtSlewCorFunc0.h:14
MdtTempCorFunc0.h
MdtCalibrationFactory.h
MuonCalib::MdtCalibrationFactory::createMdtSlewCorFunc
static IMdtSlewCorFunc * createMdtSlewCorFunc(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:41
MuonCalib::MdtCalibrationFactory::createBFieldCorFunc
static IMdtBFieldCorFunc * createBFieldCorFunc(const std::string &name, const ParVec &pars)
Definition: MdtCalibrationFactory.cxx:31
MuonCalib::IRtRelation
generic interface for a rt-relation
Definition: IRtRelation.h:14
MdtBFieldCorFunc0.h
MuonCalib::RtResolutionLookUp
Equidistant look up table for resolution tables with the time as key.
Definition: RtResolutionLookUp.h:23