Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from SimCalorimetry.EcalSimProducers.ecalDigiParameters_cff import *
0004 from SimCalorimetry.EcalSimProducers.apdSimParameters_cff import *
0005 from SimCalorimetry.EcalSimProducers.ecalSimParameterMap_cff import *
0006 from SimCalorimetry.EcalSimProducers.ecalElectronicsSim_cff import *
0007 from SimCalorimetry.EcalSimProducers.esElectronicsSim_cff import *
0008 from SimCalorimetry.EcalSimProducers.ecalNotContainmentSim_cff import *
0009 from SimCalorimetry.EcalSimProducers.ecalCosmicsSim_cff import *
0010 
0011 
0012 ecalDigitizer = cms.PSet(
0013     ecal_digi_parameters,
0014     apd_sim_parameters,
0015     ecal_electronics_sim,
0016     ecal_cosmics_sim,
0017     ecal_sim_parameter_map,
0018     ecal_notCont_sim,
0019     es_electronics_sim,
0020     hitsProducer = cms.string('g4SimHits'),
0021     accumulatorType = cms.string("EcalDigiProducer"),
0022     makeDigiSimLinks = cms.untracked.bool(False)
0023 )
0024 
0025 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0026 fastSim.toModify(ecalDigitizer, hitsProducer = "fastSimProducer")
0027     
0028 ecalDigitizer.doEB = cms.bool(True)
0029 ecalDigitizer.doEE = cms.bool(True)
0030 ecalDigitizer.doES = cms.bool(True)
0031 
0032 
0033 
0034 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0035 phase2_hgcal.toModify( ecalDigitizer, doEE = cms.bool(False) )
0036 
0037 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0038 phase2_common.toModify( ecalDigitizer, doES = cms.bool(False) )
0039 
0040 #phase 2 digitization
0041 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0042 from SimGeneral.MixingModule.ecalDigitizer_Ph2_cfi import ecalDigitizer_Ph2 as _ecalDigitizer_Ph2
0043 phase2_ecal_devel.toReplaceWith(ecalDigitizer,_ecalDigitizer_Ph2)