import FWCore.ParameterSet.Config as cms externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring("/cvmfs/cms.cern.ch/phys_generator/gridpacks/UL/13TeV/madgraph/V5_2.6.5/st_tch_4f_ckm_UL_powheg_madspin/st_tch_4f_ckm_antitop_13TeV_wtop1p15_UL_powheg_madspin_slc7_amd64_gcc700_CMSSW_10_6_19_tarball.tar.xz"), nEvents = cms.untracked.uint32(5000), numberOfParameters = cms.uint32(1), outputFile = cms.string('cmsgrid_final.lhe'), scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh'), generateConcurrently = cms.untracked.bool(True) ) #Link to datacards: # https://github.com/swertz/genproductions/tree/efcb4d0f1e4543526bf27c41d0eb7f2cb04a9a19/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/st_tch_4f_ckm_13TeV_UL/st_tch_4f_ckm_width_variations # https://github.com/cms-sw/genproductions/pull/3103 from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * from Configuration.Generator.Pythia8PowhegEmissionVetoSettings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import * generator = cms.EDFilter("Pythia8ConcurrentHadronizerFilter", maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(1), filterEfficiency = cms.untracked.double(1.0), pythiaHepMCVerbosity = cms.untracked.bool(False), comEnergy = cms.double(13000.), PythiaParameters = cms.PSet( pythia8CommonSettingsBlock, pythia8CP5SettingsBlock, pythia8PowhegEmissionVetoSettingsBlock, pythia8PSweightsSettingsBlock, processParameters = cms.vstring( 'POWHEG:nFinal = 3', ## Number of final state particles ## (BEFORE THE DECAYS) in the LHE ## other than emitted extra parton ), parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8PowhegEmissionVetoSettings', 'pythia8CP5Settings', 'pythia8PSweightsSettings', 'processParameters' ))) ProductionFilterSequence = cms.Sequence(generator)