Skip to content

Commit

Permalink
Merge pull request #44848 from battibass/fix_mudpgnano_eventcontent_140X
Browse files Browse the repository at this point in the history
[14_0_X] Apply MUDPGNANO EventContent customizations to EDMNANO and NANOSIM as well
  • Loading branch information
cmsbuild authored May 1, 2024
2 parents 93bb4f9 + 5cdf7d9 commit 64c84ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions DPGAnalysis/MuonTools/python/muNtupleProducerBkg_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

def muDPGNanoBkgCustomize(process) :

if hasattr(process, "NANOAODoutput"):
process.NANOAODoutput.outputCommands.append("keep nanoaodFlatTable_*Table*_*_*")
process.NANOAODoutput.outputCommands.append("drop edmTriggerResults_*_*_*")
for output in ["NANOEDMAODoutput", "NANOAODoutput", "NANOEDMAODSIMoutput", "NANOAODSIMoutput"]:
if hasattr(process, output):
getattr(process,output).outputCommands.append("keep nanoaodFlatTable_*Table*_*_*")
getattr(process,output).outputCommands.append("drop edmTriggerResults_*_*_*")

return process
7 changes: 4 additions & 3 deletions DPGAnalysis/MuonTools/python/muNtupleProducer_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def muDPGNanoCustomize(process) :
process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi")
process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi")

if hasattr(process, "NANOAODoutput"):
process.NANOAODoutput.outputCommands.append("keep nanoaodFlatTable_*Table*_*_*")
process.NANOAODoutput.outputCommands.append("drop edmTriggerResults_*_*_*")
for output in ["NANOEDMAODoutput", "NANOAODoutput", "NANOEDMAODSIMoutput", "NANOAODSIMoutput"]:
if hasattr(process, output):
getattr(process,output).outputCommands.append("keep nanoaodFlatTable_*Table*_*_*")
getattr(process,output).outputCommands.append("drop edmTriggerResults_*_*_*")

return process

0 comments on commit 64c84ae

Please sign in to comment.