CMS 3D CMS Logo

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 
34 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
35 (gpu & ~phase2_tracker).toReplaceWith(siPixelDigisTask, cms.Task(
36  # copy the pixel digis (except errors) and clusters to the host
37  siPixelDigisSoA,
38  # copy the pixel digis errors to the host
39  siPixelDigiErrorsSoA,
40  # convert the pixel digis errors to the legacy format
41  siPixelDigiErrors,
42  # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
43  siPixelDigisTask.copy()
44 ))