CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
siPixelDigis_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 siPixelDigisTask = cms.Task(
6  # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
7  siPixelDigis
8 )
9 
10 # copy the pixel digis (except errors) and clusters to the host
11 from EventFilter.SiPixelRawToDigi.siPixelDigisSoAFromCUDA_cfi import siPixelDigisSoAFromCUDA as _siPixelDigisSoAFromCUDA
12 siPixelDigisSoA = _siPixelDigisSoAFromCUDA.clone(
13  src = "siPixelClustersPreSplittingCUDA"
14 )
15 
16 # copy the pixel digis errors to the host
17 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsSoAFromCUDA_cfi import siPixelDigiErrorsSoAFromCUDA as _siPixelDigiErrorsSoAFromCUDA
18 siPixelDigiErrorsSoA = _siPixelDigiErrorsSoAFromCUDA.clone(
19  src = "siPixelClustersPreSplittingCUDA"
20 )
21 
22 # convert the pixel digis errors to the legacy format
23 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsFromSoA_cfi import siPixelDigiErrorsFromSoA as _siPixelDigiErrorsFromSoA
24 siPixelDigiErrors = _siPixelDigiErrorsFromSoA.clone()
25 
26 # use the Phase 1 settings
27 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
28 phase1Pixel.toModify(siPixelDigiErrors,
29  UsePhase1 = True
30 )
31 
32 
33 from Configuration.ProcessModifiers.gpu_cff import gpu
34 gpu.toReplaceWith(siPixelDigisTask, cms.Task(
35  # copy the pixel digis (except errors) and clusters to the host
36  siPixelDigisSoA,
37  # copy the pixel digis errors to the host
38  siPixelDigiErrorsSoA,
39  # convert the pixel digis errors to the legacy format
40  siPixelDigiErrors,
41  # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
42  siPixelDigisTask.copy()
43 ))