CMS 3D CMS Logo

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 
25 
26 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
27 phase2_common.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask)
28 
29 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
30 _phase2_ecalDigiTask_devel = cms.Task()
31 phase2_ecal_devel.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask_devel)
32 
33 
34 from Configuration.Eras.Modifier_phase2_ecalTP_devel_cff import phase2_ecalTP_devel
36 _phase2_ecalDigiTask_devel2 = cms.Task(simEcalEBTriggerPrimitivePhase2Digis)
37 phase2_ecalTP_devel.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask_devel2)
38 
39 #phase 2 ecal
40 def _modifyEcalForPh2( process ):
41  process.load("SimCalorimetry.EcalSimProducers.esEcalLiteDTUPedestalsProducer_cfi")
42  process.load("SimCalorimetry.EcalSimProducers.esCATIAGainProducer_cfi")
43 modifyDigi_Phase2EcalPed = phase2_ecal_devel.makeProcessModifier(_modifyEcalForPh2)
44 
45 
46 def _modifyEcalTPForPh2( process ):
47  process.load("SimCalorimetry.EcalEBTrigPrimProducers.ecalEBTriggerPrimitivePhase2ESProducer_cfi")
48 modifyDigi_Phase2EcalTP = phase2_ecalTP_devel.makeProcessModifier(_modifyEcalTPForPh2)
def _modifyEcalTPForPh2(process)