CMS 3D CMS Logo

mix_hepmc_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("GEN")
00004 process.load("HeavyIonsAnalysis.Configuration.EventEmbedding_cff")
00005 
00006 process.load("Configuration.eventContent.EventContent_cff")
00007 
00008 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
00009 
00010 process.load("HeavyIonsAnalysis.Configuration.HIAnalysisEventContent_cff")
00011 
00012 process.maxEvents = cms.untracked.PSet(
00013     input = cms.untracked.int32(1)
00014 )
00015 process.source = cms.Source("PoolSource",
00016     fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/cmshi/mc/sim/pgun_jpsi2muons_d20080423/pgun_jpsi2muons_d20080423_r000001.root')
00017 )
00018 
00019 process.mix = cms.EDFilter("MixingModule",
00020     process.genEventEmbeddingMixParameters,
00021     input = cms.SecSource("PoolRASource",
00022         process.eventEmbeddingSourceParameters,
00023         fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/cmshi/mc/sim/hydjet_sim_x2_c1_d20080425/hydjet_sim_x2_c1_d20080425_r000002.root')
00024     )
00025 )
00026 
00027 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00028     moduleSeeds = cms.PSet(
00029         mix = cms.untracked.uint32(4),
00030         VtxSmeared = cms.untracked.uint32(2)
00031     ),
00032     sourceSeed = cms.untracked.uint32(1)
00033 )
00034 
00035 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
00036     oncePerEventMode = cms.untracked.bool(False),
00037     ignoreTotal = cms.untracked.int32(0)
00038 )
00039 
00040 process.MessageLogger = cms.Service("MessageLogger",
00041     debugModules = cms.untracked.vstring('mix'),
00042     destinations = cms.untracked.vstring('cout', 
00043         'cerr'),
00044     cerr = cms.untracked.PSet(
00045         threshold = cms.untracked.string('DEBUG')
00046     ),
00047     cout = cms.untracked.PSet(
00048         threshold = cms.untracked.string('DEBUG')
00049     ),
00050     fwkJobReports = cms.untracked.vstring('FrameworkJobReport.xml')
00051 )
00052 
00053 process.Timing = cms.Service("Timing")
00054 
00055 process.output = cms.OutputModule("PoolOutputModule",
00056     process.HIRecoObjects,
00057     compressionLevel = cms.untracked.int32(2),
00058     commitInterval = cms.untracked.uint32(1),
00059     fileName = cms.untracked.string('jpsi2muons_PbPb_GEN.root')
00060 )
00061 
00062 process.p = cms.Path(process.mix)
00063 process.outpath = cms.EndPath(process.output)
00064 process.output.outputCommands.append('keep *_*_*_GEN')
00065 
00066 

Generated on Tue Jun 9 17:37:35 2009 for CMSSW by  doxygen 1.5.4