Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-15 22:37:05

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Generator.Pythia8PhotonFluxSettings_cfi import PhotonFlux_PbPb
0003 
0004 process = cms.Process("PROD")
0005 
0006 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0011     maxEventsToPrint = cms.untracked.int32(1),
0012     pythiaPylistVerbosity = cms.untracked.int32(1),
0013     filterEfficiency = cms.untracked.double(1.0),
0014     pythiaHepMCVerbosity = cms.untracked.bool(False),
0015     comEnergy = cms.double(5360.),
0016     PhotonFlux = PhotonFlux_PbPb,
0017     PythiaParameters = cms.PSet(
0018         pythia8_example02 = cms.vstring('HardQCD:all = on',
0019                                         'PhaseSpace:pTHatMin = 10.',
0020                                         'PhotonParton:all = on',#Added from main70
0021                                         'MultipartonInteractions:pT0Ref = 3.0',#Added from main70
0022                                         'PDF:beamA2gamma = on',#Added from main70
0023                                         'PDF:proton2gammaSet = 0',#Added from main70
0024                                         'PDF:useHardNPDFB = on',
0025                                         'PDF:gammaFluxApprox2bMin = 13.272',
0026                                         'PDF:beam2gammaApprox = 2',
0027                                         'Photon:sampleQ2 = off'
0028                                     ), 
0029         parameterSets = cms.vstring('pythia8_example02')
0030     )
0031 )
0032 
0033 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0034 process.MessageLogger = cms.Service("MessageLogger",
0035     cerr = cms.untracked.PSet(
0036         enable = cms.untracked.bool(False)
0037     ),
0038     cout = cms.untracked.PSet(
0039         default = cms.untracked.PSet(
0040             limit = cms.untracked.int32(2)
0041         ),
0042         enable = cms.untracked.bool(True)
0043     )
0044 )
0045 
0046 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0047     generator = cms.PSet(
0048         initialSeed = cms.untracked.uint32(123456789),
0049     )
0050 )
0051 
0052 process.maxEvents = cms.untracked.PSet(
0053     input = cms.untracked.int32(10)
0054 )
0055 
0056 process.GEN = cms.OutputModule("PoolOutputModule",
0057     fileName = cms.untracked.string('pythia8ex2.root')
0058 )
0059 
0060 process.p = cms.Path(process.generator)
0061 process.outpath = cms.EndPath(process.GEN)
0062 
0063 process.schedule = cms.Schedule(process.p, process.outpath)