Skip to content

Commit

Permalink
Merge pull request #44851 from hqucms/xpog/fix-metMCTable-140x
Browse files Browse the repository at this point in the history
[14_0_X] Fix metMCTable in NanoGEN
  • Loading branch information
cmsbuild authored Apr 26, 2024
2 parents ab4ccb0 + d5381b2 commit e5f9f46
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit e5f9f46

Please sign in to comment.