Skip to content

Commit

Permalink
Remove edmTriggerResults information in a less aggressive way
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlo Battilana committed Jun 27, 2024
1 parent 418e022 commit 3369b0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions DPGAnalysis/MuonTools/python/muNtupleProducerBkg_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
def muDPGNanoBkgCustomize(process) :

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_*_*_*")
if hasattr(process, output) and "keep edmTriggerResults_*_*_*" in getattr(process,output).outputCommands:
getattr(process,output).outputCommands.remove("keep edmTriggerResults_*_*_*")

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

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_*_*_*")
if hasattr(process, output) and "keep edmTriggerResults_*_*_*" in getattr(process,output).outputCommands:
getattr(process,output).outputCommands.remove("keep edmTriggerResults_*_*_*")

return process

0 comments on commit 3369b0c

Please sign in to comment.