Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:04:44

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