Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:08

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 digitization sequence
0038 process.load("SimCalorimetry.Configuration.ecalDigiSequence_cff")
0039 
0040 # ECAL digis validation sequence
0041 process.load("Validation.EcalDigis.ecalDigisValidationSequence_cff")
0042 
0043 # ECAL LocalReco sequence 
0044 process.load("RecoLocalCalo.EcalRecProducers.ecalLocalRecoSequence_cff")
0045 
0046 # ECAL rechits validation sequence
0047 process.load("Validation.EcalRecHits.ecalRecHitsValidationSequence_cff")
0048 
0049 # End of process
0050 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0051 
0052 process.maxEvents = cms.untracked.PSet(
0053     input = cms.untracked.int32(2000)
0054 )
0055 process.source = cms.Source("PoolSource",
0056     fileNames = cms.untracked.vstring('file:Pion_Pt60GeV_all.root')
0057 )
0058 
0059 process.USER = cms.OutputModule("PoolOutputModule",
0060     outputCommands = cms.untracked.vstring('keep *', 
0061         'drop *_simEcalUnsuppressedDigis_*_*', 
0062         'drop *_simEcalDigis_*_*', 
0063         'drop *_simEcalPreshowerDigis_*_*', 
0064         'drop *_ecalRecHit_*_*', 
0065         'drop *_ecalPreshowerRecHit_*_*'),
0066     fileName = cms.untracked.string('Pion_Pt60GeV_all_EcalValidation.root')
0067 )
0068 
0069 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0070     moduleSeeds = cms.PSet(
0071         g4SimHits = cms.untracked.uint32(9876),
0072         simEcalUnsuppressedDigis = cms.untracked.uint32(12345)
0073     )
0074 )
0075 
0076 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0077 
0078 process.Timing = cms.Service("Timing")
0079 
0080 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0081 
0082 process.simhits = cms.Sequence(process.g4SimHits*process.ecalSimHitsValidationSequence)
0083 process.digis = cms.Sequence(process.mix*process.ecalDigiSequence*process.ecalDigisValidationSequence)
0084 process.rechits = cms.Sequence(process.ecalLocalRecoSequence*process.ecalRecHitsValidationSequence)
0085 process.p1 = cms.Path(process.simhits)
0086 process.p2 = cms.Path(process.digis)
0087 process.p3 = cms.Path(process.rechits)
0088 process.p4 = cms.Path(process.randomEngineStateProducer)
0089 process.p5 = cms.Path(process.endOfProcess)
0090 process.outpath = cms.EndPath(process.USER)
0091 process.schedule = cms.Schedule(process.p1,process.p2,process.p3,process.p4,process.p5,process.outpath)
0092 
0093 process.DQM.collectorHost = ''
0094 process.g4SimHits.Generator.HepMCProductLabel = 'source'
0095 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0096     instanceLabel = cms.untracked.string('EcalValidInfo'),
0097     type = cms.string('EcalSimHitsValidProducer'),
0098     verbose = cms.untracked.bool(False)
0099 ))
0100 process.ecalUncalibRecHit.EBdigiCollection = 'simEcalDigis:ebDigis'
0101 process.ecalUncalibRecHit.EEdigiCollection = 'simEcalDigis:eeDigis'
0102 process.ecalPreshowerRecHit.ESdigiCollection = 'simEcalPreshowerDigis'
0103