Skip to content
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
3 changes: 3 additions & 0 deletions PhysicsTools/NanoAOD/python/autoNANO.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def expandNanoMapping(seqList, mapping, key):
# NANOGEN (from MiniAOD)
'GENFromMini': {'sequence': 'PhysicsTools/NanoAOD/nanogen_cff.nanogenSequence',
'customize': 'PhysicsTools/NanoAOD/nanogen_cff.customizeNanoGENFromMini'},
# NANOGEN as in same GEN content of regular NANOAODSIM
'GENMinimal': {'sequence': 'PhysicsTools/NanoAOD/nanogen_cff.nanogenSequence',
'customize': 'PhysicsTools/NanoAOD/nanogen_cff.customizeNanoGENMinimal'},
# Tau embedding NanoAOD (includes Data as well as MC tables with an addition tau embedding table)
'TauEmbedding': {'sequence': '@PHYS+PhysicsTools/NanoAOD/nano_cff.nanoSequenceFS+TauAnalysis/MCEmbeddingTools/Nano_cff.embeddingTable_seq',
'customize': '@PHYS'},
Expand Down
8 changes: 8 additions & 0 deletions PhysicsTools/NanoAOD/python/nanogen_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ def customizeNanoGEN(process):
nanoGenCommonCustomize(process)
return process

def customizeNanoGENMinimal(process):
process.nanogenSequence.insert(0, process.finalGenParticles)
for output in ("NANOEDMAODSIMoutput", "NANOAODSIMoutput"):
if hasattr(process, output):
getattr(process, output).outputCommands.append("drop edmTriggerResults_*_*_*")

return process

# Prune gen particles with tight conditions applied in usual NanoAOD
def pruneGenParticlesNano(process):
process.finalGenParticles.src = process.genParticleTable.src.getModuleLabel()
Expand Down