CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ecalDigiSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # unsuppressed digis simulation - fast preshower
5 # ECAL Trigger Primitives (needed by SRP)
7 # Selective Readout Processor producer
9 # Preshower Zero suppression producer
11 # simEcalUnsuppressedDigis is now done inside mixing module
12 ecalDigiTask = cms.Task(simEcalTriggerPrimitiveDigis, simEcalDigis, simEcalPreshowerDigis)
13 ecalDigiSequence = cms.Sequence(ecalDigiTask)
14 
15 
16 # This is extra, since the configuration skips it anyway. Belts and suspenders.
17 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
18 premix_stage1.toReplaceWith(ecalDigiTask, ecalDigiTask.copyAndExclude([simEcalPreshowerDigis]))
19 
21 _phase2_ecalDigiTask = ecalDigiTask.copy()
22 _phase2_ecalDigiTask.add(simEcalEBTriggerPrimitiveDigis)
23 
24 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
25 phase2_common.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask)
26 
27 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
28 _phase2_ecalDigiTask_devel = cms.Task()
29 phase2_ecal_devel.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask_devel)
30 
31 #phase 2 ecal
32 def _modifyEcalForPh2( process ):
33  process.load("SimCalorimetry.EcalSimProducers.esEcalLiteDTUPedestalsProducer_cfi")
34  process.load("SimCalorimetry.EcalSimProducers.esCATIAGainProducer_cfi")
35 
36 modifyDigi_Phase2EcalPed = phase2_ecal_devel.makeProcessModifier(_modifyEcalForPh2)