Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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.ecalDigisValidation_cfi")
0042 
0043 process.load("Validation.EcalDigis.ecalBarrelDigisValidation_cfi")
0044 
0045 process.load("Validation.EcalDigis.ecalEndcapDigisValidation_cfi")
0046 
0047 process.load("Validation.EcalDigis.ecalPreshowerDigisValidation_cfi")
0048 
0049 # ECAL (unsuppressed) LocalReco sequence 
0050 process.load("RecoLocalCalo.EcalRecProducers.ecalLocalRecoSequence_cff")
0051 
0052 # ECAL (unsuppressed) rechits validation sequence
0053 process.load("Validation.EcalRecHits.ecalUnsuppressedRecHitsValidationSequence_cff")
0054 
0055 process.maxEvents = cms.untracked.PSet(
0056     input = cms.untracked.int32(2000)
0057 )
0058 process.source = cms.Source("PoolSource",
0059     fileNames = cms.untracked.vstring('file:Photon_E30GeV_all.root')
0060 )
0061 
0062 process.USER = cms.OutputModule("PoolOutputModule",
0063     outputCommands = cms.untracked.vstring('keep *', 
0064         'drop *_simEcalUnsuppressedDigis_*_*', 
0065         'drop *_simEcalDigis_*_*', 
0066         'drop *_simEcalPreshowerDigis_*_*', 
0067         'drop *_ecalRecHit_*_*', 
0068         'drop *_ecalPreshowerRecHit_*_*'),
0069     fileName = cms.untracked.string('Photon_E30GeV_all_EcalUnsuppressedValidation.root')
0070 )
0071 
0072 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0073     moduleSeeds = cms.PSet(
0074         g4SimHits = cms.untracked.uint32(9876),
0075         simEcalUnsuppressedDigis = cms.untracked.uint32(12345)
0076     )
0077 )
0078 
0079 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0080 
0081 process.Timing = cms.Service("Timing")
0082 
0083 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0084 
0085 process.simhits = cms.Sequence(process.g4SimHits*process.ecalSimHitsValidationSequence)
0086 process.digis = cms.Sequence(process.mix*process.simEcalUnsuppressedDigis)
0087 process.digisVal = cms.Sequence(process.ecalDigisValidation*process.ecalBarrelDigisValidation*process.ecalEndcapDigisValidation*process.ecalPreshowerDigisValidation)
0088 process.rechits = cms.Sequence(process.ecalLocalRecoSequence*process.ecalUnsuppressedRecHitsValidationSequence)
0089 process.p1 = cms.Path(process.simhits)
0090 process.p2 = cms.Path(process.digis)
0091 process.p3 = cms.Path(process.digisVal)
0092 process.p4 = cms.Path(process.rechits)
0093 process.p5 = cms.Path(process.randomEngineStateProducer)
0094 process.outpath = cms.EndPath(process.USER)
0095 process.schedule = cms.Schedule(process.p1,process.p2,process.p3,process.p4,process.p5,process.outpath)
0096 
0097 process.DQM.collectorHost = ''
0098 process.g4SimHits.Generator.HepMCProductLabel = 'source'
0099 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0100     instanceLabel = cms.untracked.string('EcalValidInfo'),
0101     type = cms.string('EcalSimHitsValidProducer'),
0102     verbose = cms.untracked.bool(False)
0103 ))
0104 process.simEcalUnsuppressedDigis.EBdigiCollection = 'ebUnsuppDigis'
0105 process.simEcalUnsuppressedDigis.EEdigiCollection = 'eeUnsuppDigis'
0106 process.simEcalUnsuppressedDigis.ESdigiCollection = 'esUnsuppDigis'
0107 process.ecalDigisValidation.EBdigiCollection = 'simEcalUnsuppressedDigis:ebUnsuppDigis'
0108 process.ecalDigisValidation.EEdigiCollection = 'simEcalUnsuppressedDigis:eeUnsuppDigis'
0109 process.ecalDigisValidation.ESdigiCollection = 'simEcalUnsuppressedDigis:esUnsuppDigis'
0110 process.ecalBarrelDigisValidation.EBdigiCollection = 'simEcalUnsuppressedDigis:ebUnsuppDigis'
0111 process.ecalEndcapDigisValidation.EEdigiCollection = 'simEcalUnsuppressedDigis:eeUnsuppDigis'
0112 process.ecalPreshowerDigisValidation.ESdigiCollection = 'simEcalUnsuppressedDigis:esUnsuppDigis'
0113 process.ecalUncalibRecHit.EBdigiCollection = 'simEcalUnsuppressedDigis:ebUnsuppDigis'
0114 process.ecalUncalibRecHit.EEdigiCollection = 'simEcalUnsuppressedDigis:eeUnsuppDigis'
0115 process.ecalPreshowerRecHit.ESdigiCollection = 'simEcalUnsuppressedDigis:esUnsuppDigis'
0116