Skip to content

Commit

Permalink
Merge pull request #287 from makortel/fixNanoAODEraCustomization
Browse files Browse the repository at this point in the history
[RFC] Call nanoAOD_runMETfixEE2017() only if the modifiers are chosen
  • Loading branch information
peruzzim authored Jan 24, 2019
2 parents 3a71510 + 0a6af20 commit 1b19348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PhysicsTools/NanoAOD/python/nano_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,14 @@ def nanoAOD_customizeData(process):
process = nanoAOD_customizeCommon(process)
process = nanoAOD_recalibrateMETs(process,isData=True)
for modifier in run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2:
modifier.toModify(process, nanoAOD_runMETfixEE2017(process,isData=True))
modifier.toModify(process, lambda p: nanoAOD_runMETfixEE2017(p,isData=True))
return process

def nanoAOD_customizeMC(process):
process = nanoAOD_customizeCommon(process)
process = nanoAOD_recalibrateMETs(process,isData=False)
for modifier in run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2:
modifier.toModify(process, nanoAOD_runMETfixEE2017(process,isData=False))
modifier.toModify(process, lambda p: nanoAOD_runMETfixEE2017(p,isData=False))
return process

### Era dependent customization
Expand Down

0 comments on commit 1b19348

Please sign in to comment.