CMS 3D CMS Logo

SimDigiStoreRndmExample_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("Sim")
00004 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
00005 
00006 process.load("Configuration.StandardSequences.Simulation_cff")
00007 
00008 process.load("Configuration.StandardSequences.Geometry_cff")
00009 
00010 process.load("Configuration.StandardSequences.MagneticField_cff")
00011 
00012 process.load("Configuration.StandardSequences.FakeConditions_cff")
00013 
00014 process.load("Configuration.StandardSequences.MixingNoPileUp_cff")
00015 
00016 #
00017 # well, I view it as a contradiction:
00018 # in order to run *simulation* chain I need to use
00019 # cff's from the RECO side !...
00020 # that's because fakeConditions does replacement on
00021 # some of the modules from the RecoLocal department...
00022 #
00023 process.load("recoLocalTracker.Configuration.RecoLocalTracker_cff")
00024 
00025 process.load("recoLocalMuon.Configuration.RecoLocalMuon_cff")
00026 
00027 process.load("recoLocalCalo.Configuration.RecoLocalCalo_cff")
00028 
00029 # standard "prescription of what to keep in edm::Event upon output
00030 #
00031 process.load("Configuration.eventContent.EventContent_cff")
00032 
00033 process.maxEvents = cms.untracked.PSet(
00034     input = cms.untracked.int32(5)
00035 )
00036 process.MessageLogger = cms.Service("MessageLogger",
00037     cout = cms.untracked.PSet(
00038         default = cms.untracked.PSet( ## kill all messages in the log
00039 
00040             limit = cms.untracked.int32(0)
00041         ),
00042         FwkJob = cms.untracked.PSet( ## but FwkJob category - those unlimitted
00043 
00044             limit = cms.untracked.int32(-1)
00045         ),
00046         SimG4CoreApplication = cms.untracked.PSet(
00047             limit = cms.untracked.int32(-1)
00048         )
00049     ),
00050     categories = cms.untracked.vstring('FwkJob', 
00051         'SimG4CoreApplication'),
00052     destinations = cms.untracked.vstring('cout')
00053 )
00054 
00055 process.Timing = cms.Service("Timing")
00056 
00057 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
00058 
00059 process.source = cms.Source("PoolSource",
00060     fileNames = cms.untracked.vstring('file:pythiaH190ZZ4mu.root')
00061 )
00062 
00063 process.RndmStoreFEVT = cms.PSet(
00064     outputCommands = cms.untracked.vstring('keep RandomEngineStates_*_*_*')
00065 )
00066 process.FEVT = cms.OutputModule("PoolOutputModule",
00067     process.FEVTSIMEventContent,
00068     fileName = cms.untracked.string('H190ZZ4mu_detsim_digi.root')
00069 )
00070 
00071 process.p1 = cms.Path(process.psim)
00072 process.p2 = cms.Path(process.pdigi)
00073 process.p3 = cms.Path(process.rndmStore)
00074 process.outpath = cms.EndPath(process.FEVT)
00075 process.schedule = cms.Schedule(process.p1,process.p2,process.p3,process.outpath)
00076 
00077 process.FEVTSIMEventContent.outputCommands.extend(process.RndmStoreFEVT.outputCommands)
00078 

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