diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index cf5cf0fadeda4..72c92a8b58117 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -233,13 +233,21 @@ def customiseForOffline(process): return process - def customizeHLTfor43885(process): for producer in producers_by_type(process, "EgammaHLTClusterShapeProducer"): if hasattr(producer, 'isIeta'): delattr(producer, 'isIeta') return process +def checkHLTfor43774(process): + filt_types = ["HLTEgammaGenericFilter","HLTEgammaGenericQuadraticEtaFilter","HLTEgammaGenericQuadraticFilter","HLTElectronGenericFilter"] + absAbleVar = ["DEta","deta","DetaSeed","Dphi","OneOESuperMinusOneOP","OneOESeedMinusOneOP"] + for filt_type in filt_types: + for filt in filters_by_type(process, filt_type): + if filt.varTag.productInstanceLabel in absAbleVar: + if (filt.useAbs != cms.bool(True)): + print('# TSG WARNING: check value of parameter "useAbs" in',filt,'(expect True but is False)!') + # CMSSW version specific customizations def customizeHLTforCMSSW(process, menuType="GRun"): @@ -255,5 +263,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"): # process = customiseFor12718(process) process = customizeHLTfor43885(process) + process = checkHLTfor43774(process) return process