CMS 3D CMS Logo

RestoreRndmSimDigiExample_cfg.py

Go to the documentation of this file.
00001 # The following comments couldn't be translated into the new config version:
00002 
00003 # This is a "custom" configuration of the MessageLogger which 
00004 # I find convenient (JY)...
00005 #
00006 
00007 # The following comments couldn't be translated into the new config version:
00008 
00009 # This is a "custom" configuration of the MessageLogger which 
00010 # I find convenient (JY)...
00011 #
00012 
00013 import FWCore.ParameterSet.Config as cms
00014 
00015 process = cms.Process("RESTORE")
00016 #include "SimG4Core/Configuration/data/SimG4Core.cff"
00017 #include "SimG4Core/Configuration/data/SimG4Core.cff"
00018 process.load("Configuration.StandardSequences.Simulation_cff")
00019 
00020 process.load("Configuration.StandardSequences.FakeConditions_cff")
00021 
00022 process.load("Configuration.StandardSequences.Geometry_cff")
00023 
00024 process.load("Configuration.StandardSequences.MagneticField_cff")
00025 
00026 process.load("Configuration.StandardSequences.MixingNoPileUp_cff")
00027 
00028 #
00029 # well, I view it as a contradiction:
00030 # in order to run *simulation* chain I need to use
00031 # cff's from the RECO side !...
00032 # that's because fakeConditions does replacement on
00033 # some of the modules from the RecoLocal department...
00034 #
00035 #
00036 # well, I view it as a contradiction:
00037 # in order to run *simulation* chain I need to use
00038 # cff's from the RECO side !...
00039 # that's because fakeConditions does replacement on
00040 # some of the modules from the RecoLocal department...
00041 #
00042 process.load("recoLocalTracker.Configuration.RecoLocalTracker_cff")
00043 
00044 process.load("recoLocalMuon.Configuration.RecoLocalMuon_cff")
00045 
00046 process.load("recoLocalCalo.Configuration.RecoLocalCalo_cff")
00047 
00048 # standard "prescription of what to keep in edm::Event upon output
00049 #
00050 # standard "prescription of what to keep in edm::Event upon output
00051 #
00052 process.load("Configuration.eventContent.EventContent_cff")
00053 
00054 process.maxEvents = cms.untracked.PSet(
00055     input = cms.untracked.int32(-1)
00056 )
00057 process.MessageLogger = cms.Service("MessageLogger",
00058     cout = cms.untracked.PSet(
00059         default = cms.untracked.PSet(
00060             limit = cms.untracked.int32(0)
00061         ),
00062         #untracked PSet FwkJob  = { untracked int32 limit = -1 }
00063         #untracked PSet FwkJob  = { untracked int32 limit = -1 }
00064         SimG4CoreApplication = cms.untracked.PSet(
00065             limit = cms.untracked.int32(-1)
00066         )
00067     ),
00068     categories = cms.untracked.vstring('FwkJob', 'SimG4CoreApplication'),
00069     destinations = cms.untracked.vstring('cout')
00070 )
00071 
00072 process.Timing = cms.Service("Timing")
00073 
00074 process.source = cms.Source("PoolSource",
00075     skipEvents = cms.untracked.uint32(3), ## skip the first 3 events,  ## skip the first 3 events, 
00076 
00077 
00078     fileNames = cms.untracked.vstring('file:H190ZZ4mu_detsim_digi.root')
00079 )
00080 
00081 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00082     restoreStateLabel = cms.untracked.string('rndmStore'), ## this label MUST correspond ## this label MUST correspond
00083 
00084 
00085     # to what it was in the original run
00086     # for the RandomEngineStateProducer
00087     # to what it was in the original run
00088     # for the RandomEngineStateProducer
00089     moduleSeeds = cms.PSet(
00090         g4SimHits = cms.untracked.uint32(1),
00091         ecalUnsuppressedDigis = cms.untracked.uint32(1),
00092         muonCSCDigis = cms.untracked.uint32(1),
00093         mix = cms.untracked.uint32(1),
00094         siPixelDigis = cms.untracked.uint32(1),
00095         # Remark: it does NOT matter what seeds you put in
00096         #         since the seeds will be restored from RandonStateEngineProduct
00097         #         but something has to be in the config due to Fwk regulations
00098         #
00099         # Remark: it does NOT matter what seeds you put in
00100         #         since the seeds will be restored from RandonStateEngineProduct
00101         #         but something has to be in the config due to Fwk regulations
00102         #
00103         VtxSmeared = cms.untracked.uint32(1),
00104         hcalUnsuppressedDigis = cms.untracked.uint32(1),
00105         muonDTDigis = cms.untracked.uint32(1),
00106         siStripDigis = cms.untracked.uint32(1),
00107         muonRPCDigis = cms.untracked.uint32(1)
00108     )
00109 )
00110 
00111 process.RndmStoreFEVT = cms.PSet(
00112     outputCommands = cms.untracked.vstring('drop *_*_*_Sim', 'keep RandomEngineStates_*_*_* ')
00113 )
00114 process.USER = cms.OutputModule("PoolOutputModule",
00115     process.FEVTSIMEventContent,
00116     fileName = cms.untracked.string('restore_rndm_H190ZZ4mu_detsim_digi.root')
00117 )
00118 
00119 process.p1 = cms.Path(process.g4SimHits)
00120 process.p2 = cms.Path(process.pdigi)
00121 process.outpath = cms.EndPath(process.USER)
00122 process.schedule = cms.Schedule(process.p1,process.p2,process.outpath)
00123 
00124 process.FEVTSIMEventContent.outputCommands.extend(process.RndmStoreFEVT.outputCommands)
00125 

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