CMS 3D CMS Logo

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