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] Fix metMCTable in NanoGEN #44851

Merged
merged 1 commit into from
Apr 26, 2024
Merged
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
9 changes: 7 additions & 2 deletions PhysicsTools/NanoAOD/python/nanogen_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from PhysicsTools.NanoAOD.genWeightsTable_cfi import *
from PhysicsTools.NanoAOD.genVertex_cff import *
from PhysicsTools.NanoAOD.common_cff import Var,CandVars
from PhysicsTools.NanoAOD.simpleSingletonCandidateFlatTableProducer_cfi import simpleSingletonCandidateFlatTableProducer

nanoMetadata = cms.EDProducer("UniqueStringProducer",
strings = cms.PSet(
Expand Down Expand Up @@ -81,8 +82,12 @@ def customizeNanoGENFromMini(process):
return process

def customizeNanoGEN(process):
process.metMCTable.src = "genMetTrue"
process.metMCTable.variables = cms.PSet(PTVars)
process.metMCTable = simpleSingletonCandidateFlatTableProducer.clone(
src = "genMetTrue",
name = process.metMCTable.name,
doc = process.metMCTable.doc,
variables = cms.PSet(PTVars)
)

process.rivetProducerHTXS.HepMCCollection = "generatorSmeared"
process.genParticleTable.src = "genParticles"
Expand Down