00001 import FWCore.ParameterSet.Config as cms 00002 00003 process = cms.Process("GEN") 00004 process.load("GeneratorInterface.Pythia6Interface.pythiaDefault_cff") 00005 00006 process.source = cms.Source("PythiaSource", 00007 Ptmax = cms.untracked.double(100.0), 00008 pythiaPylistVerbosity = cms.untracked.int32(0), 00009 ymax = cms.untracked.double(10.0), 00010 ParticleID = cms.untracked.int32(443), 00011 pythiaHepMCVerbosity = cms.untracked.bool(False), 00012 yBinning = cms.untracked.int32(500), 00013 DoubleParticle = cms.untracked.bool(False), 00014 Ptmin = cms.untracked.double(0.0), 00015 kinematicsFile = cms.untracked.string('HeavyIonsAnalysis/Configuration/data/jpsipbpb.root'), 00016 ymin = cms.untracked.double(-10.0), 00017 ptBinning = cms.untracked.int32(100000), 00018 maxEventsToPrint = cms.untracked.int32(0), 00019 PythiaParameters = cms.PSet( 00020 process.pythiaDefaultBlock, 00021 myParameters = cms.vstring('BRAT(858) = 0 ! switch off', 00022 'BRAT(859) = 1 ! switch on', 00023 'BRAT(860) = 0 ! switch off', 00024 'MDME(858,1) = 0 ! switch off', 00025 'MDME(859,1) = 1 ! switch on', 00026 'MDME(860,1) = 0 ! switch off'), 00027 parameterSets = cms.vstring('pythiaDefault', 00028 'myParameters') 00029 ) 00030 ) 00031 00032 process.maxEvents = cms.untracked.PSet( 00033 input = cms.untracked.int32(100000) 00034 ) 00035 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService", 00036 theSource = cms.PSet( 00037 initialSeed = cms.untracked.uint32(123456789) 00038 ) 00039 ) 00040 00041 process.out = cms.OutputModule("PoolOutputModule", 00042 fileName = cms.untracked.string('gen_jpsi_dimuon.root') 00043 ) 00044 00045 process.p = cms.EndPath(process.out) 00046 process.PythiaSource.pythiaPylistVerbosity = 0 00047 process.PythiaSource.maxEventsToPrint = 10 00048 process.PythiaSource.pythiaHepMCVerbosity = False 00049 00050