Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 # DQM services
0014 process.load("DQMServices.Core.DQM_cfg")
0015 
0016 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0017 
0018 # run simulation, with EcalHits Validation specific watcher 
0019 process.load("SimG4Core.Application.g4SimHits_cfi")
0020 
0021 # ECAL hits validation sequence
0022 process.load("Validation.EcalHits.ecalSimHitsValidationSequence_cff")
0023 
0024 # End of process
0025 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(2000)
0029 )
0030 process.source = cms.Source("PoolSource",
0031     fileNames = cms.untracked.vstring('file:Pion_Pt60GeV_all.root')
0032 )
0033 
0034 process.USER = cms.OutputModule("PoolOutputModule",
0035     outputCommands = cms.untracked.vstring('keep *'),
0036     fileName = cms.untracked.string('Pion_Pt60GeV_all_EcalValidation.root')
0037 )
0038 
0039 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0040     moduleSeeds = cms.PSet(
0041         g4SimHits = cms.untracked.uint32(9876)
0042     )
0043 )
0044 
0045 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0046 
0047 process.Timing = cms.Service("Timing")
0048 
0049 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0050 
0051 process.simhits = cms.Sequence(process.g4SimHits*process.ecalSimHitsValidationSequence)
0052 process.p1 = cms.Path(process.simhits)
0053 process.p4 = cms.Path(process.randomEngineStateProducer)
0054 process.p5 = cms.Path(process.endOfProcess)
0055 process.outpath = cms.EndPath(process.USER)
0056 process.schedule = cms.Schedule(process.p1,process.p4,process.p5,process.outpath)
0057 
0058 process.DQM.collectorHost = ''
0059 process.g4SimHits.Generator.HepMCProductLabel = 'source'
0060 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0061     instanceLabel = cms.untracked.string('EcalValidInfo'),
0062     type = cms.string('EcalSimHitsValidProducer'),
0063     verbose = cms.untracked.bool(False)
0064 ))
0065