Skip to content

Commit

Permalink
Merge pull request #3931 from vadler/62X-fixMetUncertaintyToolsScheduled
Browse files Browse the repository at this point in the history
62X - fix `metUncertaintyTools` for scheduled processing
  • Loading branch information
davidlange6 committed May 26, 2014
2 parents 2b1af44 + dffcba1 commit c150d51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PhysicsTools/PatUtils/python/tools/metUncertaintyTools.py
Expand Up @@ -1605,7 +1605,9 @@ def toolCode(self, process):
postfix)

# insert metUncertaintySequence into patDefaultSequence
if addToPatDefaultSequence and process.options.allowUnscheduled == False:
if hasattr(process,'options') and hasattr(process.options,'allowUnscheduled') and process.options.allowUnscheduled == True:
addToPatDefaultSequence = False
if addToPatDefaultSequence:
if not hasattr(process, "patDefaultSequence"):
raise ValueError("PAT default sequence is not defined !!")
process.patDefaultSequence += metUncertaintySequence
Expand Down

0 comments on commit c150d51

Please sign in to comment.