103 if flags.GeoModel.Run
is LHCPeriod.Run4
and flags.Muon.usePhaseIIGeoSetup:
104 alg = CompFactory.MuonCalibR4.MdtCalibDbAlg(name)
105 result.addCondAlgo (alg, primary =
True)
107 from MuonConfig.MuonCondAlgConfig
import MdtCondDbAlgCfg
115 if flags.Common.isOnline
and not flags.Input.isMC:
116 kwargs.setdefault(
"ReadKeyTube",
"/MDT/T0")
117 kwargs.setdefault(
"ReadKeyRt",
"/MDT/RT")
119 kwargs.setdefault(
"ReadKeyTube",
"/MDT/T0"+ mdt_folder_name_appendix)
120 kwargs.setdefault(
"ReadKeyRt",
"/MDT/RT"+ mdt_folder_name_appendix)
121 if flags.Input.isMC
is False:
122 kwargs.setdefault(
"defaultT0", 40)
124 kwargs.setdefault(
"defaultT0", 799)
125 if flags.Common.isOnline:
126 kwargs.setdefault(
"ReadKeyDCS",
"" )
127 kwargs.setdefault(
"UseMLRt", flags.Muon.Calib.useMLRt )
128 kwargs.setdefault(
"TimeSlewingCorrection", flags.Muon.Calib.correctMdtRtForTimeSlewing)
129 kwargs.setdefault(
"MeanCorrectionVsR", [ -5.45973, -4.57559, -3.71995, -3.45051, -3.4505, -3.4834, -3.59509, -3.74869, -3.92066, -4.10799, -4.35237, -4.61329, -4.84111, -5.14524 ])
130 kwargs.setdefault(
"PropagationSpeedBeta", flags.Muon.Calib.mdtPropagationSpeedBeta)
132 kwargs.setdefault(
"CreateBFieldFunctions", flags.Muon.Calib.correctMdtRtForBField)
133 kwargs.setdefault(
"CreateSlewingFunctions", flags.Muon.Calib.correctMdtRtForTimeSlewing)
134 from RngComps.RngCompsConfig
import AthRNGSvcCfg
135 kwargs.setdefault(
"AthRNGSvc", result.getPrimaryAndMerge(
AthRNGSvcCfg(flags)))
137 kwargs.setdefault(
"UseR4DetMgr", flags.Muon.usePhaseIIGeoSetup)
138 alg = CompFactory.MdtCalibDbAlg (name, **kwargs)
139 result.addCondAlgo (alg, primary =
True)