Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("EcalHitsValid")
0004 # initialize  MessageLogger
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 
0007 # initialize magnetic field
0008 process.load("Configuration.StandardSequences.MagneticField_cff")
0009 
0010 # geometry (Only Ecal)
0011 process.load("Geometry.EcalCommonData.EcalOnly_cfi")
0012 
0013 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0014 
0015 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0016 
0017 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0018 
0019 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0020 
0021 # DQM services
0022 process.load("DQMServices.Core.DQM_cfg")
0023 
0024 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0025 
0026 # run simulation, with EcalHits Validation specific watcher 
0027 process.load("SimG4Core.Application.g4SimHits_cfi")
0028 
0029 # ECAL hits validation sequence
0030 process.load("Validation.EcalHits.ecalSimHitsValidationSequence_cff")
0031 
0032 # Mixing Module
0033 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0034 
0035 process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0036 
0037 # ECAL unsuppressed digis
0038 process.load("SimCalorimetry.EcalSimProducers.ecaldigi_cfi")
0039 
0040 # ECAL unsuppressed digis validation sequence
0041 process.load("Validation.EcalDigis.ecalUnsuppressedDigisValidationSequence_cff")
0042 
0043 process.maxEvents = cms.untracked.PSet(
0044     input = cms.untracked.int32(2000)
0045 )
0046 process.source = cms.Source("PoolSource",
0047     fileNames = cms.untracked.vstring('file:Photon_E30GeV_all.root')
0048 )
0049 
0050 process.USER = cms.OutputModule("PoolOutputModule",
0051     outputCommands = cms.untracked.vstring('keep *', 
0052         'drop *_simEcalUnsuppressedDigis_*_*', 
0053         'drop *_simEcalDigis_*_*', 
0054         'drop *_simEcalPreshowerDigis_*_*', 
0055         'drop *_ecalRecHit_*_*', 
0056         'drop *_ecalPreshowerRecHit_*_*'),
0057     fileName = cms.untracked.string('Photon_E30GeV_all_EcalUnsuppressedValidation.root')
0058 )
0059 
0060 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0061     moduleSeeds = cms.PSet(
0062         g4SimHits = cms.untracked.uint32(9876),
0063         simEcalUnsuppressedDigis = cms.untracked.uint32(12345)
0064     )
0065 )
0066 
0067 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0068 
0069 process.Timing = cms.Service("Timing")
0070 
0071 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0072 
0073 process.simhits = cms.Sequence(process.g4SimHits*process.ecalSimHitsValidationSequence)
0074 process.digis = cms.Sequence(process.mix*process.simEcalUnsuppressedDigis*process.ecalUnsuppressedDigisValidationSequence)
0075 process.p1 = cms.Path(process.simhits)
0076 process.p2 = cms.Path(process.digis)
0077 process.p4 = cms.Path(process.randomEngineStateProducer)
0078 process.outpath = cms.EndPath(process.USER)
0079 process.schedule = cms.Schedule(process.p1,process.p2,process.p4,process.outpath)
0080 
0081 process.DQM.collectorHost = ''
0082 process.g4SimHits.Generator.HepMCProductLabel = 'source'
0083 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0084     instanceLabel = cms.untracked.string('EcalValidInfo'),
0085     type = cms.string('EcalSimHitsValidProducer'),
0086     verbose = cms.untracked.bool(False)
0087 ))
0088