CMS 3D CMS Logo

siPixelDigis_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from EventFilter.SiPixelRawToDigi.siPixelDigisSoAFromCUDA_cfi import siPixelDigisSoAFromCUDA as _siPixelDigisSoAFromCUDA
5 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsSoAFromCUDA_cfi import siPixelDigiErrorsSoAFromCUDA as _siPixelDigiErrorsSoAFromCUDA
6 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsFromSoA_cfi import siPixelDigiErrorsFromSoA as _siPixelDigiErrorsFromSoA
7 
8 siPixelDigisTask = cms.Task(siPixelDigis)
9 
10 siPixelDigisSoA = _siPixelDigisSoAFromCUDA.clone(
11  src = "siPixelClustersPreSplittingCUDA"
12 )
13 siPixelDigiErrorsSoA = _siPixelDigiErrorsSoAFromCUDA.clone(
14  src = "siPixelClustersPreSplittingCUDA"
15 )
16 siPixelDigiErrors = _siPixelDigiErrorsFromSoA.clone()
17 
18 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
19 phase1Pixel.toModify(siPixelDigiErrors, UsePhase1=True)
20 
21 siPixelDigisTaskCUDA = cms.Task(
22  siPixelDigisSoA,
23  siPixelDigiErrorsSoA,
24  siPixelDigiErrors
25 )
26 
27 from Configuration.ProcessModifiers.gpu_cff import gpu
28 _siPixelDigisTask_gpu = siPixelDigisTask.copy()
29 _siPixelDigisTask_gpu.add(siPixelDigisTaskCUDA)
30 gpu.toReplaceWith(siPixelDigisTask, _siPixelDigisTask_gpu)
SiPixelRawToDigi_cfi