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 2014700 commit 5db580d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/PatAlgos/python/tools/trigTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def toolCode( self, process ):
trigEvtProdMod = getattr( process, triggerEventProducer )
trigEvtProdMod.processName = hltProcess
trigEvtProdMod.patTriggerProducer = cms.InputTag( triggerProducer )
if not path is '':
if path != '':
if not hasattr( process, path ):
prodPath = cms.Path( trigProdMod + trigEvtProdMod )
setattr( process, path, prodPath )
Expand Down

0 comments on commit 5db580d

Please sign in to comment.