import FWCore.ParameterSet.Config as cms # link to card: # https://github.com/cms-sw/genproductions/tree/8d97961cda6fffccfa09cc245b715ce6f2b43f6f/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/Higgs/thq_4f_ckm_LO_ctcvcp_MH externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/UL/13TeV/madgraph/V5_2.6.5/thq_4f_ckm_LO_ctcvcp/thq_4f_ckm_LO_ctcvcp_MH127_slc7_amd64_gcc700_CMSSW_10_6_4_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') ) # GS fragment from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_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, pythia8PSweightsSettingsBlock, pythia8CP5SettingsBlock, processParameters = cms.vstring( '6:m0 = 172.5', '25:m0 = 127.0', # Higgs mass '23:mMin = 0.05', # Solve problem with mZ cut '24:mMin = 0.05', # Solve problem with mW cut '25:onMode = off', '25:onIfMatch = 22 22', # Decay only H to GG, note onIfMatch is used instead of onIfAny since otherwise H->Gamma Z, Z-> Gamma is also possible. ), parameterSets = cms.vstring( 'pythia8CommonSettings', 'pythia8PSweightsSettings', 'pythia8CP5Settings', 'processParameters', ) ) )