import FWCore.ParameterSet.Config as cms externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/2017/13TeV/powheg/V2/gg_H_quark-mass-effects_NNPDF31_13TeV_M125/v1/gg_H_quark-mass-effects_NNPDF31_13TeV_M125_slc6_amd64_gcc630_CMSSW_9_3_0.tgz'), nEvents = cms.untracked.uint32(5000), numberOfParameters = cms.uint32(1), outputFile = cms.string('cmsgrid_final.lhe'), generateConcurrently = cms.untracked.bool(True), 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.PSweightsPythia.PythiaPSweightsSettings_cfi import * generator = cms.EDFilter("Pythia8ConcurrentHadronizerFilter", maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(1), pythiaHepMCVerbosity = cms.untracked.bool(False), comEnergy = cms.double(13000.), PythiaParameters = cms.PSet( pythia8CommonSettingsBlock, pythia8CP5SettingsBlock, pythia8PSweightsSettingsBlock, processParameters = cms.vstring( '9000006:all = sk skbar 0 0 0 40 1.9732e-13 1.0 75.0 1', '9000006:oneChannel = 1 1.0 101 5 -5', '9000006:mayDecay = on', '9000006:isResonance = on', '25:m0 = 125.0', '25:onMode = off', '25:addChannel = 1 0.000000001 101 9000006 -9000006', '25:onIfMatch = 9000006 -9000006', '9000006:onMode = off', '9000006:onIfAny = 5', ), parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8CP5Settings', 'pythia8PSweightsSettings', 'processParameters' ) ) ) # Filter setup # ------------------------ # https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/PhysicsTools/HepMCCandAlgos/python/genParticles_cfi.py tmpGenParticles = cms.EDProducer("GenParticleProducer", saveBarCodes = cms.untracked.bool(True), src = cms.InputTag("generator", "unsmeared"), abortOnUnknownPDGCode = cms.untracked.bool(False) ) # https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/RecoJets/Configuration/python/GenJetParticles_cff.py # https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/RecoMET/Configuration/python/GenMETParticles_cff.py tmpGenParticlesForJetsNoNu = cms.EDProducer("InputGenJetsParticleSelector", src = cms.InputTag("tmpGenParticles"), ignoreParticleIDs = cms.vuint32( 1000022, 1000012, 1000014, 1000016, 2000012, 2000014, 2000016, 1000039, 5100039, 4000012, 4000014, 4000016, 9900012, 9900014, 9900016, 39,12,14,16), partonicFinalState = cms.bool(False), excludeResonances = cms.bool(False), excludeFromResonancePids = cms.vuint32(12, 13, 14, 16), tausAsJets = cms.bool(False) ) # https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/RecoJets/JetProducers/python/AnomalousCellParameters_cfi.py AnomalousCellParameters = cms.PSet( maxBadEcalCells = cms.uint32(9999999), maxRecoveredEcalCells = cms.uint32(9999999), maxProblematicEcalCells = cms.uint32(9999999), maxBadHcalCells = cms.uint32(9999999), maxRecoveredHcalCells = cms.uint32(9999999), maxProblematicHcalCells = cms.uint32(9999999) ) # https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/RecoJets/JetProducers/python/GenJetParameters_cfi.py GenJetParameters = cms.PSet( src = cms.InputTag("tmpGenParticlesForJetsNoNu"), srcPVs = cms.InputTag(''), jetType = cms.string('GenJet'), jetPtMin = cms.double(3.0), inputEtMin = cms.double(0.0), inputEMin = cms.double(0.0), doPVCorrection = cms.bool(False), # pileup with offset correction doPUOffsetCorr = cms.bool(False), # if pileup is false, these are not read: nSigmaPU = cms.double(1.0), radiusPU = cms.double(0.5), # fastjet-style pileup doAreaFastjet = cms.bool(False), doRhoFastjet = cms.bool(False), # if doPU is false, these are not read: Active_Area_Repeats = cms.int32(5), GhostArea = cms.double(0.01), Ghost_EtaMax = cms.double(6.0), Rho_EtaMax = cms.double(4.5), useDeterministicSeed = cms.bool(True), minSeed = cms.uint32( 14327 ) ) # https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/RecoJets/JetProducers/python/ak4GenJets_cfi.py tmpAk4GenJetsNoNu = cms.EDProducer("FastjetJetProducer", GenJetParameters, AnomalousCellParameters, jetAlgorithm = cms.string("AntiKt"), rParam = cms.double(0.4) ) # apply gen HT > 200 GeV requirement, using 30 GeV jets genHTFilter = cms.EDFilter("GenHTFilter", src = cms.InputTag("tmpAk4GenJetsNoNu"), #GenJet collection as input jetPtCut = cms.double(30.0), #GenJet pT cut for HT jetEtaCut = cms.double(5.0), #GenJet eta cut for HT genHTcut = cms.double(200.0) #genHT cut ) ProductionFilterSequence = cms.Sequence(generator * tmpGenParticles * tmpGenParticlesForJetsNoNu * tmpAk4GenJetsNoNu * genHTFilter) # Link to generator fragment: # genFragments/Hadronizer/13TeV/HToSS/NLO_genHT_HToSSTobbbb_MH125_MS40_ctauS1_13TeV.py