102 if not flags.Detector.GeometryMDT:
return acc
103 from AthenaConfiguration.Enums
import LHCPeriod
105 kwargs.setdefault(
"UseJSONFormat", flags.Muon.usePhaseIIGeoSetup
and \
106 flags.GeoModel.Run >= LHCPeriod.Run4)
108 kwargs.setdefault(
"MezzanineJSON",
"")
109 kwargs.setdefault(
"CablingJSON",
"")
111 kwargs.setdefault(
"isRun3", flags.GeoModel.Run >= LHCPeriod.Run3 )
112 from IOVDbSvc.IOVDbSvcConfig
import addFolders
113 if len(kwargs[
"MezzanineJSON"]) == 0
and len(kwargs[
"CablingJSON"]) == 0:
114 if flags.Input.isMC
is True:
117 if flags.Muon.usePhaseIIGeoSetup
and \
118 flags.GeoModel.Run >= LHCPeriod.Run4:
119 dbTagMezz =
"MDTMezMapSchemaJSON_RUN4_FantasyCabling_1"
120 dbTagSchema =
"MDTCablingMapSchemaJSON_RUN4_FantasyCabling_1"
121 elif flags.GeoModel.Run >= LHCPeriod.Run4:
122 dbTagSchema =
"MDTOflCablingMapSchema_RUN124_MC15_02"
123 dbTagMezz =
"MDTOflCablingMezzanineSchema_RUN124_MC15_02"
124 if kwargs[
"UseJSONFormat"]:
125 kwargs.setdefault(
"MapFolders",
"/MDT/CABLING/MAP_SCHEMA_JSON")
126 kwargs.setdefault(
"MezzanineFolders",
"/MDT/CABLING/MEZZANINE_SCHEMA_JSON")
128 kwargs.setdefault(
"MapFolders",
"/MDT/Ofl/CABLING/MAP_SCHEMA")
129 kwargs.setdefault(
"MezzanineFolders",
"/MDT/Ofl/CABLING/MEZZANINE_SCHEMA")
130 acc.merge(
addFolders( flags, [kwargs[
"MapFolders"]],
'MDT_OFL',
131 className=
"CondAttrListCollection", tag = dbTagSchema))
132 acc.merge(
addFolders( flags, [kwargs[
"MezzanineFolders"]],
'MDT_OFL',
133 className=
"CondAttrListCollection", tag = dbTagMezz) )
135 if kwargs[
"UseJSONFormat"]:
136 kwargs.setdefault(
"MapFolders",
"/MDT/CABLING/MAP_SCHEMA_JSON")
137 kwargs.setdefault(
"MezzanineFolders",
"/MDT/CABLING/MEZZANINE_SCHEMA_JSON")
139 kwargs.setdefault(
"MapFolders",
"/MDT/CABLING/MAP_SCHEMA")
140 kwargs.setdefault(
"MezzanineFolders",
"/MDT/CABLING/MEZZANINE_SCHEMA")
141 acc.merge(
addFolders( flags, [kwargs[
"MapFolders"], kwargs[
"MezzanineFolders"]],
'MDT',
142 className=
"CondAttrListCollection") )
145 MDTCablingAlg = CompFactory.MuonMDT_CablingAlg(name, **kwargs)
146 acc.addCondAlgo( MDTCablingAlg, primary =
True )