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(1000))
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=1         ! QCD events',
0045                     'CKIN(3)= 80.0            ! pt_hat_min',
0046                     'CKIN(4)=120.0            ! pt_hat_max'),
0047         # This is a vector of ParameterSet names to be read, in this order
0048         parameterSets = cms.vstring('pythiaUESettings', 
0049             'processParameters')
0050     )
0051 )
0052 
0053 process.selection = cms.EDFilter("PythiaFilterEMJetHeep",
0054 #    
0055       moduleLabel = cms.untracked.string('VtxSmeared'),
0056       Minbias     = cms.untracked.bool(False),
0057       MinEventPt  = cms.untracked.double(80.),
0058       MaxPhotonEta= cms.untracked.double(2.7),                      
0059       ConeClust   = cms.untracked.double(0.10),
0060       ConeIso     = cms.untracked.double(0.50),
0061       NumPartMin  = cms.untracked.uint32(2),
0062       dRMin       = cms.untracked.double(0.40),
0063       MaxEvents   = cms.untracked.int32(1000),
0064       Debug       = cms.untracked.bool(False)                              
0065 )
0066 
0067 process.GEN = cms.OutputModule("PoolOutputModule",
0068     fileName = cms.untracked.string('EMJetHeep_diem.root'),
0069     SelectEvents = cms.untracked.PSet(
0070         SelectEvents = cms.vstring('p')
0071     ),
0072     dataset = cms.untracked.PSet(
0073         dataTier = cms.untracked.string('GEN')
0074     )
0075 
0076 )
0077 
0078 process.p = cms.Path(process.generator * process.selection)
0079 process.outpath = cms.EndPath(process.GEN)
0080 
0081 process.schedule = cms.Schedule(process.p, process.outpath)