Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slava77 authored Jun 25, 2021
1 parent 5db580d commit 31f276e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PhysicsTools/PatAlgos/python/tools/trigTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def toolCode( self, process ):
# Maintain configuration
trigProdMod = getattr( process, triggerProducer )
trigProdMod.processName = hltProcess
if not path is '':
if path != '':
if not hasattr( process, path ):
prodPath = cms.Path( trigProdMod )
setattr( process, path, prodPath )
Expand Down Expand Up @@ -401,7 +401,7 @@ def toolCode( self, process ):
print(' configuration parameters automatically changed')
for matcher in matchers:
trigMchMod = getattr( process, matcher )
if trigMchMod.matched.value() != triggerProducer:
if trigMchMod.matched.value() is not triggerProducer:
trigMchMod.matched = triggerProducer
print(' PAT trigger matcher %s.matched --> %s'%( matcher, trigMchMod.matched ))
print(_longLine)
Expand Down

0 comments on commit 31f276e

Please sign in to comment.