Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:48:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 #process.load("SimGeneral.HepPDTESSource.pdt_cfi")
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 
0017 # The following three lines reduce the clutter of repeated printouts
0018 # of the same exception message.
0019 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0020 
0021 
0022 
0023 
0024 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0025 
0026 process.source = cms.Source("EmptySource")
0027 
0028 from Configuration.Generator.PythiaUESettings_cfi import *
0029 
0030 process.generator = cms.EDFilter("Pythia6GeneratorFilter",
0031     pythiaHepMCVerbosity = cms.untracked.bool(True),
0032     maxEventsToPrint = cms.untracked.int32(2),
0033     pythiaPylistVerbosity = cms.untracked.int32(1),
0034     comEnergy = cms.double(10000.0),
0035 
0036     stopHadrons = cms.bool(False),
0037     gluinoHadrons = cms.bool(True),
0038 
0039     PythiaParameters = cms.PSet(
0040 
0041         pythiaUESettingsBlock,
0042     #
0043     # setting for gluino/r-hadrons have been taken from original
0044     # example application (by F.Moortgat), available in 1_8_4
0045     # but "lost in translation" from old-style configs to python
0046     #
0047         pythiaGluinoRHadrons = cms.vstring(
0048            'MSEL=0             ! User defined processes',
0049            'IMSS(1)=1          !  brute force',
0050            'MSUB(243)=1        !  subprocess',
0051            'MSUB(244)=1        !  subprocess',
0052            'IMSS(3)=1',
0053            'RMSS(3)=300.',
0054            'RMSS(1)=250.',
0055            'RMSS(2)=250.',
0056            'RMSS(4)=10000.',
0057            'MDCY(309,1)=0      ! set gluino stable',
0058            'IMSS(5)=1',
0059            'RMSS(12)=1000.'
0060            ### 'MSTJ(14)=-1', this is MANDATORY, so it's hardcoded in Py6Had class
0061            ### 'MSTP(111)=0'  this is MANDATORY, so it's hardcoded in Py6Had class
0062     ),
0063         # This is a vector of ParameterSet names to be read, in this order
0064         parameterSets = cms.vstring( 
0065         'pythiaUESettings', 
0066             'pythiaGluinoRHadrons')
0067     )
0068 )
0069 
0070 process.GEN = cms.OutputModule("PoolOutputModule",
0071     fileName = cms.untracked.string('gluinoRHadrons.root')
0072 )
0073 
0074 process.p = cms.Path(process.generator)
0075 process.outpath = cms.EndPath(process.GEN)
0076 
0077 process.schedule = cms.Schedule(process.p, process.outpath)