103 from MuonConfig.MuonCondAlgConfig
import MdtCondDbAlgCfg
110 if flags.GeoModel.Run
is LHCPeriod.Run4
and flags.Muon.usePhaseIIGeoSetup:
111 alg = CompFactory.MuonCalibR4.MdtCalibDbAlg(name, **kwargs)
112 result.addCondAlgo (alg, primary =
True)
116 if flags.Common.isOnline
and not flags.Input.isMC:
117 kwargs.setdefault(
"ReadKeyTube",
"/MDT/T0")
118 kwargs.setdefault(
"ReadKeyRt",
"/MDT/RT")
120 kwargs.setdefault(
"ReadKeyTube",
"/MDT/T0"+ mdt_folder_name_appendix)
121 kwargs.setdefault(
"ReadKeyRt",
"/MDT/RT"+ mdt_folder_name_appendix)
122 if flags.Input.isMC
is False:
123 kwargs.setdefault(
"defaultT0", 40)
125 kwargs.setdefault(
"defaultT0", 799)
126 if not flags.Muon.useMdtDcsData:
127 kwargs.setdefault(
"ReadKeyDCS",
"" )
128 kwargs.setdefault(
"UseMLRt", flags.Muon.Calib.useMLRt )
129 kwargs.setdefault(
"TimeSlewingCorrection", flags.Muon.Calib.correctMdtRtForTimeSlewing)
130 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 ])
131 kwargs.setdefault(
"PropagationSpeedBeta", flags.Muon.Calib.mdtPropagationSpeedBeta)
133 kwargs.setdefault(
"CreateBFieldFunctions", flags.Muon.Calib.correctMdtRtForBField)
134 kwargs.setdefault(
"CreateSlewingFunctions", flags.Muon.Calib.correctMdtRtForTimeSlewing)
135 from RngComps.RngCompsConfig
import AthRNGSvcCfg
136 kwargs.setdefault(
"AthRNGSvc", result.getPrimaryAndMerge(
AthRNGSvcCfg(flags)))
138 kwargs.setdefault(
"UseR4DetMgr", flags.Muon.usePhaseIIGeoSetup)
139 alg = CompFactory.MdtCalibDbAlg (name, **kwargs)
140 result.addCondAlgo (alg, primary =
True)