Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.GenProduction.PythiaUESettings_cfi import *
0004 
0005 process = cms.Process("TEST")
0006 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0007 
0008 process.load("Configuration.StandardSequences.Services_cff")
0009 
0010 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0011 
0012 process.load("GeneratorInterface.Pythia6Interface.pythiaDefault_cff")
0013 
0014 process.load("Configuration.EventContent.EventContent_cff")
0015 
0016 
0017 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0018         generator = cms.PSet(
0019         initialSeed = cms.untracked.uint32(123456789),
0020         engineName = cms.untracked.string('HepJamesRandom')
0021     )
0022 )
0023 
0024 # The following three lines reduce the clutter of repeated printouts
0025 # of the same exception message.
0026 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0027 
0028 process.MessageLogger.cerr.enableStatistics = False
0029 
0030 process.MessageLogger.cerr.threshold = "Warning"
0031 
0032 
0033 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10000))
0034 
0035 process.source = cms.Source("EmptySource")
0036 
0037 process.generator = cms.EDFilter("Pythia6GeneratorFilter",
0038     pythiaHepMCVerbosity = cms.untracked.bool(False),
0039     maxEventsToPrint = cms.untracked.int32(3),
0040     pythiaPylistVerbosity = cms.untracked.int32(0),
0041     comEnergy = cms.double(10000.0),
0042     PythiaParameters = cms.PSet(
0043         pythiaUESettingsBlock,
0044         processParameters = cms.vstring('MSEL=0         ! User defined processes',     
0045                         'MSUB(11)=1',
0046                         'MSUB(12)=1',
0047                         'MSUB(13)=1',
0048                         'MSUB(28)=1',
0049                         'MSUB(53)=1',
0050                         'MSUB(68)=1',
0051                         'MSUB(92)=1',
0052                         'MSUB(93)=1',
0053                         'MSUB(94)=1',
0054                         'MSUB(95)=1'),
0055         # This is a vector of ParameterSet names to be read, in this order
0056         parameterSets = cms.vstring('pythiaUESettings', 
0057             'processParameters')
0058     )
0059 )
0060 
0061 process.selection = cms.EDFilter("PythiaFilterEMJetHeep",
0062 #    
0063       moduleLabel = cms.untracked.string('VtxSmeared'),
0064       Minbias     = cms.untracked.bool(True),
0065       MinEventPt  = cms.untracked.double(1.),
0066       MaxPhotonEta= cms.untracked.double(2.7),                      
0067       ConeClust   = cms.untracked.double(0.10),
0068       ConeIso     = cms.untracked.double(0.50),
0069       NumPartMin  = cms.untracked.uint32(2),
0070       dRMin       = cms.untracked.double(0.40),
0071       MaxEvents   = cms.untracked.int32(1000),
0072       Debug       = cms.untracked.bool(False)                              
0073 )
0074 
0075 process.GEN = cms.OutputModule("PoolOutputModule",
0076     fileName = cms.untracked.string('EMJetMB_diem.root'),
0077     SelectEvents = cms.untracked.PSet(
0078         SelectEvents = cms.vstring('p')
0079     ),
0080     dataset = cms.untracked.PSet(
0081         dataTier = cms.untracked.string('GEN')
0082     )
0083 
0084 )
0085 
0086 process.p = cms.Path(process.generator * process.selection)
0087 process.outpath = cms.EndPath(process.GEN)
0088 
0089 process.schedule = cms.Schedule(process.p, process.outpath)