Skip to content

Commit

Permalink
Fix metMCTable in NanoGEN.
Browse files Browse the repository at this point in the history
  • Loading branch information
hqucms committed Apr 25, 2024
1 parent ab4ccb0 commit d5381b2
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 d5381b2

Please sign in to comment.