File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
PhysicsTools/NanoAOD/python Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 77from PhysicsTools .NanoAOD .genWeightsTable_cfi import *
88from PhysicsTools .NanoAOD .genVertex_cff import *
99from PhysicsTools .NanoAOD .common_cff import Var ,CandVars
10+ from PhysicsTools .NanoAOD .simpleSingletonCandidateFlatTableProducer_cfi import simpleSingletonCandidateFlatTableProducer
1011
1112nanoMetadata = cms .EDProducer ("UniqueStringProducer" ,
1213 strings = cms .PSet (
@@ -81,8 +82,12 @@ def customizeNanoGENFromMini(process):
8182 return process
8283
8384def customizeNanoGEN (process ):
84- process .metMCTable .src = "genMetTrue"
85- process .metMCTable .variables = cms .PSet (PTVars )
85+ process .metMCTable = simpleSingletonCandidateFlatTableProducer .clone (
86+ src = "genMetTrue" ,
87+ name = process .metMCTable .name ,
88+ doc = process .metMCTable .doc ,
89+ variables = cms .PSet (PTVars )
90+ )
8691
8792 process .rivetProducerHTXS .HepMCCollection = "generatorSmeared"
8893 process .genParticleTable .src = "genParticles"
You can’t perform that action at this time.
0 commit comments