Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14_0_X] Apply MUDPGNANO EventContent customizations to EDMNANO and NANOSIM as well #44848

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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*_*_*")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could change this in the main nano event content @hqucms

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlimant You mean we change keep nanoaodFlatTable_*Table_*_* to keep nanoaodFlatTable_*Table*_*_* in NanoAODOutputModule.cc?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there and there

"keep nanoaodFlatTable_*Table_*_*", # event data

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