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 # Alpaka modifier
28 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsFromSoAAlpaka_cfi import siPixelDigiErrorsFromSoAAlpaka as _siPixelDigiErrorsFromSoAAlpaka
29 
30 alpaka.toReplaceWith(siPixelDigiErrors, _siPixelDigiErrorsFromSoAAlpaka.clone())
31 
32 # use the Phase 1 settings
33 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
34 phase1Pixel.toModify(siPixelDigiErrors,
35  UsePhase1 = True
36 )
37 
39 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
40 (gpu & ~phase2_tracker).toReplaceWith(siPixelDigisTask, cms.Task(
41  # copy the pixel digis (except errors) and clusters to the host
42  siPixelDigisSoA,
43  # copy the pixel digis errors to the host
44  siPixelDigiErrorsSoA,
45  # convert the pixel digis errors to the legacy format
46  siPixelDigiErrors,
47  # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
48  siPixelDigisTask.copy()
49 ))
50 
51 # Remove siPixelDigis until we have phase2 pixel digis
52 phase2_tracker.toReplaceWith(siPixelDigisTask, cms.Task()) #FIXME