CMS 3D CMS Logo

ecalDigitizer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
11 
12 
13 ecalDigitizer = cms.PSet(
14  ecal_digi_parameters,
15  apd_sim_parameters,
16  component_digi_parameters,
17  ecal_electronics_sim,
18  ecal_cosmics_sim,
19  ecal_sim_parameter_map,
20  ecal_notCont_sim,
21  es_electronics_sim,
22  hitsProducer = cms.string('g4SimHits'),
23  accumulatorType = cms.string("EcalDigiProducer"),
24  makeDigiSimLinks = cms.untracked.bool(False)
25 )
26 
27 from Configuration.Eras.Modifier_fastSim_cff import fastSim
28 fastSim.toModify(ecalDigitizer, hitsProducer = "fastSimProducer")
29 
30 ecalDigitizer.doEB = cms.bool(True)
31 ecalDigitizer.doEE = cms.bool(True)
32 ecalDigitizer.doES = cms.bool(True)
33 
34 
35 
36 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
37 phase2_hgcal.toModify( ecalDigitizer, doEE = cms.bool(False) )
38 
39 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
40 phase2_common.toModify( ecalDigitizer, doES = cms.bool(False) )
41 
42 #phase 2 digitization
43 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
44 from SimGeneral.MixingModule.ecalDigitizer_Ph2_cfi import ecalDigitizer_Ph2 as _ecalDigitizer_Ph2
45 phase2_ecal_devel.toReplaceWith(ecalDigitizer,_ecalDigitizer_Ph2)