Skip to content

Commit

Permalink
fix dump of nano
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Jul 14, 2022
1 parent 5cf3a96 commit 4e81937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PhysicsTools/NanoAOD/python/nano_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,23 +219,23 @@ def nanoAOD_recalibrateMETs(process,isData):
from PhysicsTools.SelectorUtils.tools.vid_id_tools import *
def nanoAOD_activateVID(process):

switchOnVIDElectronIdProducer(process,DataFormat.MiniAOD,electronTask)
switchOnVIDElectronIdProducer(process,DataFormat.MiniAOD)
for modname in electron_id_modules_WorkingPoints_nanoAOD.modules:
setupAllVIDIdsInModule(process,modname,setupVIDElectronSelection)

electronTask_ = process.egmGsfElectronIDTask.copy()
electronTask_.add(electronTask.copy())
electronTask_.add(process.electronTask)
process.electronTask = electronTask_.copy()
for modifier in run2_miniAOD_80XLegacy,run2_nanoAOD_94XMiniAODv1,run2_nanoAOD_94XMiniAODv2,run2_nanoAOD_94X2016,run2_nanoAOD_102Xv1,run2_nanoAOD_106Xv1:
modifier.toModify(process.electronMVAValueMapProducer, src = "slimmedElectronsUpdated")
modifier.toModify(process.egmGsfElectronIDs, physicsObjectSrc = "slimmedElectronsUpdated")

switchOnVIDPhotonIdProducer(process,DataFormat.MiniAOD,photonTask) # do not call this to avoid resetting photon IDs in VID, if called before inside makePuppiesFromMiniAOD
switchOnVIDPhotonIdProducer(process,DataFormat.MiniAOD) # do not call this to avoid resetting photon IDs in VID, if called before inside makePuppiesFromMiniAOD
for modname in photon_id_modules_WorkingPoints_nanoAOD.modules:
setupAllVIDIdsInModule(process,modname,setupVIDPhotonSelection)

photonTask_ = process.egmPhotonIDTask.copy()
photonTask_.add(photonTask.copy())
photonTask_.add(process.photonTask)
process.photonTask = photonTask_.copy()
for modifier in run2_miniAOD_80XLegacy,run2_nanoAOD_94XMiniAODv1,run2_nanoAOD_94XMiniAODv2,run2_nanoAOD_94X2016,run2_nanoAOD_102Xv1:
modifier.toModify(process.photonMVAValueMapProducer, src = "slimmedPhotonsTo106X")
Expand Down

0 comments on commit 4e81937

Please sign in to comment.