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 # POOL Source containing the output from a previous Alpgen Source.  
0007 process.source = cms.Source("PoolSource",
0008         fileNames = cms.untracked.vstring('file:testSource.root') 
0009 )
0010 
0011 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0012 
0013 process.load("FWCore.MessageService.MessageLogger_cfi")
0014 process.load("Configuration.StandardSequences.Services_cff")
0015 
0016 # The Pythia6-based "hadronizer"
0017 # Change the jet matching parameters as you see fit.
0018 process.load("GeneratorInterface.AlpgenInterface.generator_cfi")
0019 process.generator.maxEventsToPrint = 0
0020 process.generator.jetMatching.applyMatching = True
0021 process.generator.jetMatching.exclusive = True
0022 process.generator.jetMatching.etMin = 25.0
0023 process.generator.jetMatching.drMin = 0.7
0024 
0025 process.p0 = cms.Path(process.generator)
0026 
0027 process.load("Configuration.EventContent.EventContent_cff")
0028 
0029 process.GEN = cms.OutputModule("PoolOutputModule",
0030     process.FEVTSIMEventContent,
0031     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('GEN')),
0032     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p0')),
0033     fileName = cms.untracked.string('test.root')
0034 )
0035 
0036 process.outpath = cms.EndPath(process.GEN)