Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:25

0001 #!/usr/bin/env cmsRun
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("GEN")
0005 
0006 process.source = cms.Source("AlpgenSource",
0007         fileNames = cms.untracked.vstring('file:w2j') 
0008 )
0009 
0010 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0011 
0012 process.load("FWCore.MessageService.MessageLogger_cfi")
0013 process.load("Configuration.StandardSequences.Services_cff")
0014 
0015 # The Pythia6-based "hadronizer"
0016 # Change the jet matching parameters as you see fit.
0017 process.load("GeneratorInterface.AlpgenInterface.generator_cfi")
0018 process.generator.maxEventsToPrint = 0
0019 process.generator.jetMatching.applyMatching = True
0020 process.generator.jetMatching.exclusive = True
0021 process.generator.jetMatching.etMin = 25.0
0022 process.generator.jetMatching.drMin = 0.7
0023 
0024 process.p0 = cms.Path(process.generator)
0025 
0026 process.load("Configuration.EventContent.EventContent_cff")
0027 
0028 process.GEN = cms.OutputModule("PoolOutputModule",
0029     process.FEVTSIMEventContent,
0030     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('GEN')),
0031     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p0')),
0032     fileName = cms.untracked.string('test.root')
0033 )
0034 
0035 process.outpath = cms.EndPath(process.GEN)