Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:24

0001 #!/usr/bin/env cmsRun
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 from Configuration.Generator.PythiaUESettings_cfi import *
0005 
0006 process = cms.Process("TEST")
0007 
0008 
0009 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0010     generator = cms.PSet(
0011         initialSeed = cms.untracked.uint32(123456789),
0012         engineName = cms.untracked.string('HepJamesRandom')
0013     )
0014 )
0015 
0016 process.source = cms.Source("AlpgenSource",
0017     fileNames = cms.untracked.vstring('file:w2j')
0018 )
0019 
0020 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1)) # put here -1, if you want the whole
0021 
0022 process.configurationMetadata = cms.untracked.PSet(
0023     version = cms.untracked.string('alpha'),
0024     name = cms.untracked.string('w2j'),
0025     annotation = cms.untracked.string('AG UNW -> LHE translation, Py6 hadronization')
0026 )
0027 
0028 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0029 
0030 process.MessageLogger.cerr.enableStatistics = False
0031 
0032 
0033 process.generator = cms.EDFilter("Pythia6HadronizerFilter",
0034     pythiaHepMCVerbosity = cms.untracked.bool(True),
0035     maxEventsToPrint = cms.untracked.int32(0),
0036     pythiaPylistVerbosity = cms.untracked.int32(1),
0037     comEnergy = cms.double(10000.0), # this will be disregarded in case of processing ME partons
0038     PythiaParameters = cms.PSet(
0039         pythiaUESettingsBlock,
0040         processParameters = cms.vstring
0041     (
0042        'MSEL=0         ! User defined processes', 
0043        'MSTJ(1)=1      ! Fragmentation/hadronization on or off'
0044        'MSTJ(11)=3     ! Choice of fragmentation function'
0045     ),
0046         # This is a vector of ParameterSet names to be read, in this order
0047         parameterSets = cms.vstring
0048     (
0049        'pythiaUESettings', 
0050            'processParameters'
0051     )
0052     ),
0053     jetMatching = cms.untracked.PSet(
0054         scheme = cms.string("Alpgen"),
0055         applyMatching = cms.bool(True),
0056         exclusive = cms.bool(True),
0057         etMin = cms.double(25.),
0058         drMin = cms.double(0.7)
0059     )
0060 
0061 )
0062 
0063 ###process.load("Configuration.EventContent.EventContent_cff")
0064 
0065 process.USER = cms.OutputModule("PoolOutputModule",
0066    ###process.FEVTSIMEventContent,
0067    fileName = cms.untracked.string('testAGPy6Had.root'),
0068    SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p'))
0069 )
0070 
0071 ###process.LHE.outputCommands.append("keep *_source_*_*")
0072 
0073 process.p = cms.Path(process.generator)
0074 process.outpath = cms.EndPath(process.USER)
0075 
0076 process.schedule = cms.Schedule(process.p, process.outpath)
0077