import FWCore.ParameterSet.Config as cms externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/UL/13TeV/powheg/V2/X0jj_slc7_amd64_gcc820_CMSSW_10_6_7_X0jj_MM_HTT_v3/v1/X0jj_slc7_amd64_gcc820_CMSSW_10_6_7_X0jj_MM_HTT_v3.tgz'), nEvents = cms.untracked.uint32(5000), numberOfParameters = cms.uint32(1), generateConcurrently = cms.untracked.bool(True), outputFile = cms.string('cmsgrid_final.lhe'), scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh') ) 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), pythiaHepMCVerbosity = cms.untracked.bool(False), comEnergy = cms.double(13000.), PythiaParameters = cms.PSet( pythia8CommonSettingsBlock, pythia8CP5SettingsBlock, pythia8PowhegEmissionVetoSettingsBlock, pythia8PSweightsSettingsBlock, processParameters = cms.vstring( 'POWHEG:nFinal = 3', '25:onMode = off', # turn OFF all H decays '25:onIfMatch = 15 -15', # turn ON H->tautau '25:m0 = 125.0', 'TauDecays:mode = 2', # force taus from TauDecays:tauMother into an uncorrelated decay 'TauDecays:tauMother = 25' ), parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8CP5Settings', 'pythia8PowhegEmissionVetoSettings', 'pythia8PSweightsSettings', 'processParameters' ) ) ) ProductionFilterSequence = cms.Sequence(generator)