Skip to content

Commit

Permalink
Add check for useAbs issue (cms-sw#43774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Grunewald authored and rbhattacharya04 committed Mar 6, 2024
1 parent 035ebbb commit 69d4749
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion HLTrigger/Configuration/python/customizeHLTforCMSSW.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):

Expand All @@ -255,5 +263,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"):
# process = customiseFor12718(process)

process = customizeHLTfor43885(process)
process = checkHLTfor43774(process)

return process

0 comments on commit 69d4749

Please sign in to comment.