CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 from Configuration.ProcessModifiers.siPixelQualityRawToDigi_cff import siPixelQualityRawToDigi
18 siPixelQualityRawToDigi.toModify(siPixelDigis.cpu,
19  UseQualityInfo = True,
20  SiPixelQualityLabel = 'forRawToDigi',
21 )
22 
23 
24 # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
25 gpu.toModify(siPixelDigis,
26  cuda = cms.EDAlias(
27  siPixelDigiErrors = cms.VPSet(
28  cms.PSet(type = cms.string("DetIdedmEDCollection")),
29  cms.PSet(type = cms.string("SiPixelRawDataErroredmDetSetVector")),
30  cms.PSet(type = cms.string("PixelFEDChanneledmNewDetSetVector"))
31  ),
32  siPixelDigisClustersPreSplitting = cms.VPSet(
33  cms.PSet(type = cms.string("PixelDigiedmDetSetVector"))
34  )
35  )
36 )