From a7d8f0e81ecf7246cd6e64f68d92a234a0db781b Mon Sep 17 00:00:00 2001 From: Tadej Novak <tadej.novak@cern.ch> Date: Mon, 28 Sep 2020 10:43:58 +0200 Subject: [PATCH] Temporary data overlay overrides for LArBadChannelConfig --- .../LArBadChannelTool/python/LArBadChannelConfig.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/LArCalorimeter/LArBadChannelTool/python/LArBadChannelConfig.py b/LArCalorimeter/LArBadChannelTool/python/LArBadChannelConfig.py index 44ff1145650a..8963b7a358e2 100644 --- a/LArCalorimeter/LArBadChannelTool/python/LArBadChannelConfig.py +++ b/LArCalorimeter/LArBadChannelTool/python/LArBadChannelConfig.py @@ -11,7 +11,10 @@ def LArBadChannelCfg(configFlags, tag=None): result=LArOnOffIdMappingCfg(configFlags) rekey="/LAR/BadChannels/BadChannels" - if configFlags.Input.isMC: + if configFlags.Overlay.DataOverlay: + # TODO: move this in a better location + result.merge(addFolders(configFlags, "/LAR/BadChannels/BadChannels", "LAR_OFL", className="CondAttrListCollection", tag="LARBadChannelsBadChannels-HECAQ3Missing", db="OFLP200")) + elif configFlags.Input.isMC: result.merge(addFolders(configFlags,"/LAR/BadChannels/BadChannels","LAR_OFL",tag=tag, className="CondAttrListCollection")) else: @@ -27,7 +30,10 @@ def LArBadFebCfg(configFlags, tag=None): result=ComponentAccumulator() rekey="/LAR/BadChannels/MissingFEBs" - if configFlags.Input.isMC: + if configFlags.Overlay.DataOverlay: + # TODO: move this in a better location + result.merge(addFolders(configFlags, "/LAR/BadChannels/MissingFEBs", "LAR_OFL", className="AthenaAttributeList", tag="LArBadChannelsMissingFEBs-IOVDEP-04", db="OFLP200")) + elif configFlags.Input.isMC: result.merge(addFolders(configFlags,"/LAR/BadChannels/MissingFEBs","LAR_OFL",tag=tag, className="AthenaAttributeList")) else: -- GitLab