Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-24 02:18:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import siPixelDigis
0004 
0005 siPixelDigisTask = cms.Task(
0006     # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
0007     siPixelDigis
0008 )
0009 
0010 # copy the pixel digis (except errors) and clusters to the host
0011 from EventFilter.SiPixelRawToDigi.siPixelDigisSoAFromCUDA_cfi import siPixelDigisSoAFromCUDA as _siPixelDigisSoAFromCUDA
0012 siPixelDigisSoA = _siPixelDigisSoAFromCUDA.clone(
0013     src = "siPixelClustersPreSplittingCUDA"
0014 )
0015 
0016 # copy the pixel digis errors to the host
0017 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsSoAFromCUDA_cfi import siPixelDigiErrorsSoAFromCUDA as _siPixelDigiErrorsSoAFromCUDA
0018 siPixelDigiErrorsSoA = _siPixelDigiErrorsSoAFromCUDA.clone(
0019     src = "siPixelClustersPreSplittingCUDA"
0020 )
0021 
0022 # convert the pixel digis errors to the legacy format
0023 from EventFilter.SiPixelRawToDigi.siPixelDigiErrorsFromSoA_cfi import siPixelDigiErrorsFromSoA as _siPixelDigiErrorsFromSoA
0024 siPixelDigiErrors = _siPixelDigiErrorsFromSoA.clone()
0025 
0026 # use the Phase 1 settings
0027 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0028 phase1Pixel.toModify(siPixelDigiErrors,
0029     UsePhase1 = True
0030 )
0031 
0032 
0033 from Configuration.ProcessModifiers.gpu_cff import gpu
0034 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0035 (gpu & ~phase2_tracker).toReplaceWith(siPixelDigisTask, cms.Task(
0036     # copy the pixel digis (except errors) and clusters to the host
0037     siPixelDigisSoA,
0038     # copy the pixel digis errors to the host
0039     siPixelDigiErrorsSoA,
0040     # convert the pixel digis errors to the legacy format
0041     siPixelDigiErrors,
0042     # SwitchProducer wrapping the legacy pixel digis producer or an alias combining the pixel digis information converted from SoA
0043     siPixelDigisTask.copy()
0044 ))