import FWCore.ParameterSet.Config as cms externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/2017/13TeV/madgraph/V5_2.6.5/HeavyNeutrino_Trilepton_Tau/HeavyNeutrino_trilepton_M-125_V-0p01_tau_NLO_slc6_amd64_gcc700_CMSSW_10_2_24_patch1_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') ) import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import * generator = cms.EDFilter("Pythia8HadronizerFilter", 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, pythia8aMCatNLOSettingsBlock, pythia8PSweightsSettingsBlock, processParameters = cms.vstring( 'TimeShower:nPartonsInBorn = 0', #number of coloured particles (before resonance decays) in born matrix element ), parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8CP5Settings', 'pythia8aMCatNLOSettings', 'processParameters', 'pythia8PSweightsSettings' ) ) ) trileptonfilter = cms.EDFilter("MCMultiParticleFilter", PtMin = cms.vdouble(5., 5.), ParticleID = cms.vint32(11, 13), NumRequired = cms.int32(3), AcceptMore = cms.bool(True), EtaMax = cms.vdouble(3., 3.), Status = cms.vint32(1, 1) ) ProductionFilterSequence = cms.Sequence(generator*trileptonfilter) # Link to generator fragment: # genFragments/Hadronizer/13TeV/Hadronizer_TuneCP5_13TeV_aMCatNLO_PSweights_threelightleptonfilter_cff.py