Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:00:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def GenWeightsTableProducer(**kwargs):
0004   mod = cms.EDProducer('GenWeightsTableProducer',
0005     genEvent = cms.InputTag('generator'),
0006     genLumiInfoHeader = cms.InputTag('generator'),
0007     lheInfo = cms.VInputTag(
0008       'externalLHEProducer',
0009       'source'
0010     ),
0011     preferredPDFs = cms.VPSet(
0012     ),
0013     namedWeightIDs = cms.required.vstring,
0014     namedWeightLabels = cms.required.vstring,
0015     lheWeightPrecision = cms.required.int32,
0016     maxPdfWeights = cms.required.uint32,
0017     keepAllPSWeights = cms.required.bool,
0018     debug = cms.optional.untracked.bool,
0019     mightGet = cms.optional.untracked.vstring
0020   )
0021   for k,v in kwargs.items():
0022     setattr(mod, k, v)
0023   return mod