Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # unsuppressed digis simulation - fast preshower
0004 from SimCalorimetry.EcalSimProducers.ecaldigi_cfi import *
0005 # ECAL Trigger Primitives (needed by SRP)
0006 from SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff import *
0007 # Selective Readout Processor producer
0008 from SimCalorimetry.EcalSelectiveReadoutProducers.ecalDigis_cfi import *
0009 # Preshower Zero suppression producer
0010 from SimCalorimetry.EcalZeroSuppressionProducers.ecalPreshowerDigis_cfi import *
0011 # simEcalUnsuppressedDigis is now done inside mixing module
0012 ecalDigiTask = cms.Task(simEcalTriggerPrimitiveDigis, simEcalDigis, simEcalPreshowerDigis)
0013 ecalDigiSequence = cms.Sequence(ecalDigiTask)
0014 
0015 
0016 # This is extra, since the configuration skips it anyway.  Belts and suspenders.
0017 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
0018 premix_stage1.toReplaceWith(ecalDigiTask, ecalDigiTask.copyAndExclude([simEcalPreshowerDigis]))
0019 
0020 from SimCalorimetry.EcalEBTrigPrimProducers.ecalEBTriggerPrimitiveDigis_cff import *
0021 _phase2_ecalDigiTask = ecalDigiTask.copy()
0022 _phase2_ecalDigiTask.add(simEcalEBTriggerPrimitiveDigis)
0023 
0024 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0025 phase2_common.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask)
0026 
0027 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0028 _phase2_ecalDigiTask_devel = cms.Task()
0029 phase2_ecal_devel.toReplaceWith(ecalDigiTask,_phase2_ecalDigiTask_devel)
0030 
0031 #phase 2 ecal                                                                                                                                                                                                                                                                   
0032 def _modifyEcalForPh2( process ):
0033     process.load("SimCalorimetry.EcalSimProducers.esEcalLiteDTUPedestalsProducer_cfi")
0034     process.load("SimCalorimetry.EcalSimProducers.esCATIAGainProducer_cfi")
0035 
0036 modifyDigi_Phase2EcalPed = phase2_ecal_devel.makeProcessModifier(_modifyEcalForPh2)