184 kwargs.setdefault(
"MmT0FileName",
"")
185 kwargs.setdefault(
"sTgcT0FileName",
"")
187 kwargs.setdefault(
"loadMmT0Data",flags.Muon.Calib.applyMmT0Correction)
188 kwargs.setdefault(
"loadsTgcT0Data", flags.Muon.Calib.applysTgcT0Correction)
189 if(kwargs[
"loadMmT0Data"]
and not kwargs[
'MmT0FileName'] ):
190 kwargs.setdefault(
'ReadKey_MM_T0',
"/MDT/MM/T0")
191 kwargs.setdefault(
'ReadKey_MM_T0',
"")
193 if(kwargs[
"loadsTgcT0Data"]
and not kwargs[
'sTgcT0FileName']):
194 kwargs[
'ReadKey_STGC_T0'] =
"/TGC/NSW/T0"
195 kwargs.setdefault(
'ReadKey_STGC_T0',
"")
199 if flags.Common.isOnline:
200 kwargs[
'isData'] =
True
206 if flags.GeoModel.Run>=LHCPeriod.Run4:
207 result.merge(
addFolders(flags, [
"/MDT/Onl/MM/TIME/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmTdoSideA-Const-3p73") )
208 result.merge(
addFolders(flags, [
"/MDT/Onl/MM/TIME/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmTdoSideC-Const-3p73") )
209 result.merge(
addFolders(flags, [
"/MDT/Onl/MM/CHARGE/SIDEA"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmPdoSideA-Const-9p0" ) )
210 result.merge(
addFolders(flags, [
"/MDT/Onl/MM/CHARGE/SIDEC"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmPdoSideC-Const-9p0" ) )
211 if(kwargs[
'ReadKey_MM_T0']):
212 result.merge(
addFolders(flags, [kwargs[
'ReadKey_MM_T0']], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmT0SideAc-Nov2023"))
214 folders = [
"/MDT/Onl/MM/TIME/SIDEA",
"/MDT/Onl/MM/CHARGE/SIDEA", \
215 "/MDT/Onl/MM/TIME/SIDEC",
"/MDT/Onl/MM/CHARGE/SIDEC"]
216 result.merge(
addFolders(flags, folders, detDb=scheme, className=
'CondAttrListCollection') )
217 if(kwargs[
'ReadKey_MM_T0']):
218 result.merge(
addFolders(flags, [kwargs[
'ReadKey_MM_T0']], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmT0SideAc-Nov2023"))
220 kwargs[
"ReadKey_MM_SIDEA_TDO"] =
"/MDT/Onl/MM/TIME/SIDEA"
221 kwargs[
"ReadKey_MM_SIDEC_TDO"] =
"/MDT/Onl/MM/TIME/SIDEC"
222 kwargs[
"ReadKey_MM_SIDEA_PDO"] =
"/MDT/Onl/MM/CHARGE/SIDEA"
223 kwargs[
"ReadKey_MM_SIDEC_PDO"] =
"/MDT/Onl/MM/CHARGE/SIDEC"
231 if flags.GeoModel.Run>=LHCPeriod.Run4:
232 result.merge(
addFolders(flags, [
"/TGC/Onl/NSW/TIME/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcTdoSideA-Const-3p73"))
233 result.merge(
addFolders(flags, [
"/TGC/Onl/NSW/TIME/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcTdoSideC-Const-3p73"))
234 result.merge(
addFolders(flags, [
"/TGC/Onl/NSW/CHARGE/SIDEA"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcPdoSideA-Const-0p78-icpt0"))
235 result.merge(
addFolders(flags, [
"/TGC/Onl/NSW/CHARGE/SIDEC"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcPdoSideC-Const-0p78-icpt0"))
237 folders = [
"/TGC/Onl/NSW/TIME/SIDEA",
"/TGC/Onl/NSW/CHARGE/SIDEA", \
238 "/TGC/Onl/NSW/TIME/SIDEC",
"/TGC/Onl/NSW/CHARGE/SIDEC"]
239 result.merge(
addFolders(flags, folders , detDb=scheme, className=
'CondAttrListCollection') )
241 kwargs[
"ReadKey_STGC_SIDEA_TDO"] =
"/TGC/Onl/NSW/TIME/SIDEA"
242 kwargs[
"ReadKey_STGC_SIDEC_TDO"] =
"/TGC/Onl/NSW/TIME/SIDEC"
243 kwargs[
"ReadKey_STGC_SIDEA_PDO"] =
"/TGC/Onl/NSW/CHARGE/SIDEA"
244 kwargs[
"ReadKey_STGC_SIDEC_PDO"] =
"/TGC/Onl/NSW/CHARGE/SIDEC"
247 elif flags.Input.isMC:
248 kwargs[
'isData'] =
False
254 if flags.GeoModel.Run>=LHCPeriod.Run4:
255 result.merge(
addFolders(flags, [
"/MDT/MM/TIME/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmTdoSideA-Const-3p73") )
256 result.merge(
addFolders(flags, [
"/MDT/MM/TIME/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmTdoSideC-Const-3p73") )
257 result.merge(
addFolders(flags, [
"/MDT/MM/CHARGE/SIDEA"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmPdoSideA-Const-9p0" ) )
258 result.merge(
addFolders(flags, [
"/MDT/MM/CHARGE/SIDEC"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmPdoSideC-Const-9p0" ) )
259 result.merge(
addFolders(flags, [
"/MDT/MM/THR/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmThrSideA-Const-55p4") )
260 result.merge(
addFolders(flags, [
"/MDT/MM/THR/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmThrSideC-Const-55p4") )
261 if(kwargs[
'ReadKey_MM_T0']):
262 result.merge(
addFolders(flags, [kwargs[
'ReadKey_MM_T0']], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmT0SideAc-Nov2023"))
264 folders = [
"/MDT/MM/TIME/SIDEA" ,
"/MDT/MM/CHARGE/SIDEA" ,
"/MDT/MM/THR/SIDEA" , \
265 "/MDT/MM/TIME/SIDEC" ,
"/MDT/MM/CHARGE/SIDEC" ,
"/MDT/MM/THR/SIDEC" ]
266 result.merge(
addFolders(flags, folders, detDb=scheme, className=
'CondAttrListCollection') )
267 if(kwargs[
'ReadKey_MM_T0']):
268 result.merge(
addFolders(flags, [kwargs[
'ReadKey_MM_T0']], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmT0SideAc-Nov2023"))
274 if flags.GeoModel.Run>=LHCPeriod.Run4:
275 result.merge(
addFolders(flags, [
"/TGC/NSW/TIME/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcTdoSideA-Const-3p73"))
276 result.merge(
addFolders(flags, [
"/TGC/NSW/TIME/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcTdoSideC-Const-3p73"))
277 result.merge(
addFolders(flags, [
"/TGC/NSW/CHARGE/SIDEA"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcPdoSideA-Const-0p78-icpt0"))
278 result.merge(
addFolders(flags, [
"/TGC/NSW/CHARGE/SIDEC"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcPdoSideC-Const-0p78-icpt0"))
279 result.merge(
addFolders(flags, [
"/TGC/NSW/THR/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcThrSideA-Const-15p0"))
280 result.merge(
addFolders(flags, [
"/TGC/NSW/THR/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcThrSideC-Const-15p0"))
282 folders = [
"/TGC/NSW/TIME/SIDEA",
"/TGC/NSW/CHARGE/SIDEA",
"/TGC/NSW/THR/SIDEA", \
283 "/TGC/NSW/TIME/SIDEC",
"/TGC/NSW/CHARGE/SIDEC",
"/TGC/NSW/THR/SIDEC"]
284 result.merge(
addFolders(flags, folders , detDb=scheme, className=
'CondAttrListCollection') )
288 kwargs[
'isData'] =
True
294 if flags.GeoModel.Run>=LHCPeriod.Run4:
295 result.merge(
addFolders(flags, [
"/MDT/MM/TIME/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmTdoSideA-Const-3p73") )
296 result.merge(
addFolders(flags, [
"/MDT/MM/TIME/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmTdoSideC-Const-3p73") )
297 result.merge(
addFolders(flags, [
"/MDT/MM/CHARGE/SIDEA"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmPdoSideA-Const-9p0" ) )
298 result.merge(
addFolders(flags, [
"/MDT/MM/CHARGE/SIDEC"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmPdoSideC-Const-9p0" ) )
299 if(kwargs[
'ReadKey_MM_T0']):
300 result.merge(
addFolders(flags, [kwargs[
'ReadKey_MM_T0']], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmT0SideAc-Nov2023"))
302 folders = [
"/MDT/MM/TIME/SIDEA",
"/MDT/MM/CHARGE/SIDEA", \
303 "/MDT/MM/TIME/SIDEC",
"/MDT/MM/CHARGE/SIDEC"]
304 result.merge(
addFolders(flags, folders, detDb=scheme, className=
'CondAttrListCollection') )
305 if(kwargs[
'ReadKey_MM_T0']):
306 result.merge(
addFolders(flags, [kwargs[
'ReadKey_MM_T0']], detDb=scheme, className=
'CondAttrListCollection' , tag=
"MmT0SideAc-Nov2023"))
313 if flags.GeoModel.Run>=LHCPeriod.Run4:
314 result.merge(
addFolders(flags, [
"/TGC/NSW/TIME/SIDEA" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcTdoSideA-Const-3p73"))
315 result.merge(
addFolders(flags, [
"/TGC/NSW/TIME/SIDEC" ], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcTdoSideC-Const-3p73"))
316 result.merge(
addFolders(flags, [
"/TGC/NSW/CHARGE/SIDEA"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcPdoSideA-Const-0p78-icpt0"))
317 result.merge(
addFolders(flags, [
"/TGC/NSW/CHARGE/SIDEC"], detDb=scheme, className=
'CondAttrListCollection' , tag=
"sTgcPdoSideC-Const-0p78-icpt0"))
319 folders = [
"/TGC/NSW/TIME/SIDEA",
"/TGC/NSW/CHARGE/SIDEA", \
320 "/TGC/NSW/TIME/SIDEC",
"/TGC/NSW/CHARGE/SIDEC"]
321 result.merge(
addFolders(flags, folders , detDb=scheme, className=
'CondAttrListCollection') )
323 result.addCondAlgo(CompFactory.NswCalibDbAlg(**kwargs))