CMS 3D CMS Logo

GenPythiaGunJpsiExample_cfg.py

Go to the documentation of this file.
00001 # The following comments couldn't be translated into the new config version:
00002 
00003 # Force J/Psi-> ee & mumu decay 
00004 
00005 import FWCore.ParameterSet.Config as cms
00006 
00007 process = cms.Process("Gen")
00008 # this example configuration offers some minimum
00009 # annotation, to help users get through; please
00010 # don't hesitate to read through the comments
00011 # use messageLogger to redirect/suppress multiple
00012 # service messages coming from the system
00013 #
00014 # in this config below, we use the replace option to make
00015 # the logger let out messages of severity ERROR (INFO level
00016 # will be suppressed), and we want to limit the number to 10
00017 #
00018 process.load("FWCore.MessageService.MessageLogger_cfi")
00019 
00020 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
00021 
00022 process.load("Configuration.Generator.PythiaUESettings_cfi")
00023 
00024 # Event output
00025 process.load("Configuration.eventContent.EventContent_cff")
00026 
00027 process.maxEvents = cms.untracked.PSet(
00028     input = cms.untracked.int32(5)
00029 )
00030 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00031     sourceSeed = cms.untracked.uint32(123456789)
00032 )
00033 
00034 process.source = cms.Source("PythiaSource",
00035     Phimin = cms.untracked.double(0.0),
00036     maxEventsToPrint = cms.untracked.int32(5),
00037     pythiaPylistVerbosity = cms.untracked.int32(1),
00038     #  possibility to run single or double back-to-back particles with PYTHIA
00039     # if ParticleID = 0, run PYTHIA
00040     ParticleID = cms.untracked.int32(443),
00041     pythiaHepMCVerbosity = cms.untracked.bool(True),
00042     Etamin = cms.untracked.double(0.0),
00043     DoubleParticle = cms.untracked.bool(False),
00044     Phimax = cms.untracked.double(360.0),
00045     Ptmin = cms.untracked.double(20.0),
00046     Ptmax = cms.untracked.double(40.0),
00047     Etamax = cms.untracked.double(2.4),
00048     PythiaParameters = cms.PSet(
00049         process.pythiaUESettingsBlock,
00050         pythiaJpsiDecays = cms.vstring('MDME(858,1)=1                 ! J/psi -> ee turned ON', 
00051             'MDME(859,1)=1                 ! J/psi -> mumu turned ON', 
00052             'MDME(860,1)=0                 ! J/psi -> random turned OFF'),
00053         # This is a vector of ParameterSet names to be read, in this order
00054         parameterSets = cms.vstring('pythiaUESettings', 
00055             'pythiaJpsiDecays')
00056     )
00057 )
00058 
00059 process.FEVT = cms.OutputModule("PoolOutputModule",
00060     process.FEVTSIMEventContent,
00061     fileName = cms.untracked.string('gen_jpsi.root')
00062 )
00063 
00064 process.outpath = cms.EndPath(process.FEVT)
00065 process.schedule = cms.Schedule(process.outpath)
00066 
00067 

Generated on Tue Jun 9 17:26:58 2009 for CMSSW by  doxygen 1.5.4