Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("testECALDigi")
0004 #Geometry
0005 #
0006 process.load("Geometry.CMSCommonData.cmsSimIdealGeometryXML_cfi")
0007 
0008 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0009 
0010 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0011 
0012 process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0013 
0014 process.load("SimCalorimetry.EcalSimProducers.ecaldigi_cfi")
0015 
0016 process.Timing = cms.Service("Timing")
0017 
0018 process.MessageLogger = cms.Service("MessageLogger",
0019     #    untracked vstring categories = { "EcalShape","EcalCoder","EcalDigi" }
0020     #    untracked vstring debugModules = {"ecaldigi"}
0021     cout = cms.untracked.PSet(
0022         #      untracked string threshold = "DEBUG" 
0023         #      untracked PSet DEBUG = { untracked int32 limit = 0 }
0024         INFO = cms.untracked.PSet(
0025             limit = cms.untracked.int32(-1)
0026         )
0027     ),
0028     destinations = cms.untracked.vstring('cout')
0029 )
0030 
0031 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0032     moduleSeeds = cms.PSet(
0033         simEcalUnsuppressedDigis = cms.untracked.uint32(54321)
0034     )
0035 )
0036 
0037 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0038 
0039 process.maxEvents = cms.untracked.PSet(
0040     input = cms.untracked.int32(-1)
0041 )
0042 process.source = cms.Source("PoolSource",
0043     debugFlag = cms.untracked.bool(True),
0044     debugVebosity = cms.untracked.uint32(10),
0045     fileNames = cms.untracked.vstring('file:simevent.root')
0046 )
0047 
0048 process.out = cms.OutputModule("PoolOutputModule",
0049     fileName = cms.untracked.string('digis.root')
0050 )
0051 
0052 process.p = cms.Path(process.mix*process.simEcalUnsuppressedDigis*process.randomEngineStateProducer)
0053 process.fine = cms.EndPath(process.out)
0054