# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: Configuration/GenProduction/python/WJToLNu_2j_5f_NLO_FxFx_as_0108_GEN_cff.py --mc --conditions auto:mc --filein /eos/cms/store/user/awisecar/WJets_2018.02.26/GENoutput-NLO/WJToLNu_MG5_NLO_FxFx_2j_as_0108/WJToLNu_2j_5f_NLO_FxFx_as_0108_LHE_cff_py_LHE_1.root --step GEN --datatier GEN-SIM --eventcontent RAWSIM -n 200000 --no_exec --python_filename WJToLNu_2j_5f_NLO_FxFx_as_0108_GEN_cfg.py import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing process = cms.Process('GEN') opt = VarParsing.VarParsing ('analysis') opt.register('OutFileNum', 1, VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.int, 'label output file number') opt.parseArguments() # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('SimGeneral.MixingModule.mixNoPU_cfi') process.load('Configuration.StandardSequences.GeometryRecoDB_cff') process.load('Configuration.StandardSequences.MagneticField_38T_cff') process.load('Configuration.StandardSequences.Generator_cff') process.load('IOMC.EventVertexGenerators.VtxSmearedNominalCollision2015_cfi') process.load('GeneratorInterface.Core.genFilterSummary_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') process.maxEvents = cms.untracked.PSet( #input = cms.untracked.int32(200000) input = cms.untracked.int32(opt.maxEvents) ) inputFileName = '/store/user/awisecar/WJets_2018.02.26/GENoutput-NLO/WJToLNu_MG5_NLO_FxFx_2j_as_0108/WJToLNu_2j_5f_NLO_FxFx_as_0108_LHE_cff_py_LHE_' + str(opt.OutFileNum) + '.root' outputDir = '/eos/cms/store/user/awisecar/WJets_2018.02.26/GENoutput-NLO/WJToLNu_MG5_NLO_FxFx_2j_as_0108/' outputFileName = 'WJToLNu_2j_5f_NLO_FxFx_as_0108_GEN_' + str(opt.OutFileNum) + '.root' # Input source process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(inputFileName), secondaryFileNames = cms.untracked.vstring() ) process.options = cms.untracked.PSet( ) # Production Info process.configurationMetadata = cms.untracked.PSet( annotation = cms.untracked.string('Configuration/GenProduction/python/WJToLNu_2j_5f_NLO_FxFx_as_0108_GEN_cff.py nevts:' + str(opt.maxEvents)), name = cms.untracked.string('Applications'), version = cms.untracked.string('$Revision: 1.19 $') ) # Output definition process.RAWSIMoutput = cms.OutputModule("PoolOutputModule", SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('generation_step') ), dataset = cms.untracked.PSet( dataTier = cms.untracked.string('GEN-SIM'), filterName = cms.untracked.string('') ), eventAutoFlushCompressedSize = cms.untracked.int32(5242880), fileName = cms.untracked.string(outputDir + outputFileName), outputCommands = process.RAWSIMEventContent.outputCommands, splitLevel = cms.untracked.int32(0) ) # Additional output definition # Other statements process.genstepfilter.triggerConditions=cms.vstring("generation_step") from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '') process.generator = cms.EDFilter("Pythia8HadronizerFilter", PythiaParameters = cms.PSet( parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8CUEP8M1Settings', 'pythia8aMCatNLOSettings', 'processParameters'), processParameters = cms.vstring('JetMatching:setMad = off', 'JetMatching:scheme = 1', 'JetMatching:merge = on', 'JetMatching:jetAlgorithm = 2', 'JetMatching:etaJetMax = 999.', 'JetMatching:coneRadius = 1.', 'JetMatching:slowJetPower = 1', 'JetMatching:qCut = 30.', 'JetMatching:doFxFx = on', 'JetMatching:qCutME = 10.', 'JetMatching:nQmatch = 5', 'JetMatching:nJetMax = 2', 'TimeShower:mMaxGamma = 4.0'), pythia8CUEP8M1Settings = cms.vstring('Tune:pp 14', 'Tune:ee 7', 'MultipartonInteractions:pT0Ref=2.4024', 'MultipartonInteractions:ecmPow=0.25208', 'MultipartonInteractions:expPow=1.6'), pythia8CommonSettings = cms.vstring('Tune:preferLHAPDF = 2', 'Main:timesAllowErrors = 10000', 'Check:epTolErr = 0.01', 'Beams:setProductionScalesFromLHEF = off', 'SLHA:keepSM = on', 'SLHA:minMassSM = 1000.', 'ParticleDecays:limitTau0 = on', 'ParticleDecays:tau0Max = 10', 'ParticleDecays:allowPhotonRadiation = on'), pythia8aMCatNLOSettings = cms.vstring('SpaceShower:pTmaxMatch = 1', 'SpaceShower:pTmaxFudge = 1', 'SpaceShower:MEcorrections = off', 'TimeShower:pTmaxMatch = 1', 'TimeShower:pTmaxFudge = 1', 'TimeShower:MEcorrections = off', 'TimeShower:globalRecoil = on', 'TimeShower:limitPTmaxGlobal = on', 'TimeShower:nMaxGlobalRecoil = 1', 'TimeShower:globalRecoilMode = 2', 'TimeShower:nMaxGlobalBranch = 1') ), comEnergy = cms.double(13000.0), filterEfficiency = cms.untracked.double(1.0), maxEventsToPrint = cms.untracked.int32(1), pythiaHepMCVerbosity = cms.untracked.bool(False), pythiaPylistVerbosity = cms.untracked.int32(1) ) # Path and EndPath definitions process.generation_step = cms.Path(process.pgen) process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) process.endjob_step = cms.EndPath(process.endOfProcess) process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput) # Schedule definition process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step) # filter all path with the production filter sequence for path in process.paths: getattr(process,path)._seq = process.generator * getattr(process,path)._seq