CMS 3D CMS Logo

SiPixelRawToDigi_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
3 from Configuration.ProcessModifiers.gpu_cff import gpu
4 
5 # legacy pixel unpacker
6 from EventFilter.SiPixelRawToDigi.siPixelRawToDigi_cfi import siPixelRawToDigi as _siPixelRawToDigi
7 siPixelDigis = SwitchProducerCUDA(
8  cpu = _siPixelRawToDigi.clone()
9 )
10 
11 # use the Phase 1 settings
12 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
13 phase1Pixel.toModify(siPixelDigis.cpu,
14  UsePhase1 = True
15 )
16 
17 # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
18 gpu.toModify(siPixelDigis,
19  cuda = cms.EDAlias(
20  siPixelDigiErrors = cms.VPSet(
21  cms.PSet(type = cms.string("DetIdedmEDCollection")),
22  cms.PSet(type = cms.string("SiPixelRawDataErroredmDetSetVector")),
23  cms.PSet(type = cms.string("PixelFEDChanneledmNewDetSetVector"))
24  ),
25  siPixelDigisClustersPreSplitting = cms.VPSet(
26  cms.PSet(type = cms.string("PixelDigiedmDetSetVector"))
27  )
28  )
29 )
SwitchProducerCUDA
Definition: SwitchProducerCUDA.py:1