CMS 3D CMS Logo

siPixelClustersPreSplitting_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.Eras.Modifier_run3_common_cff import run3_common
3 from Configuration.ProcessModifiers.gpu_cff import gpu
4 
5 # conditions used *only* by the modules running on GPU
6 from CalibTracker.SiPixelESProducers.siPixelROCsStatusAndMappingWrapperESProducer_cfi import siPixelROCsStatusAndMappingWrapperESProducer
7 from CalibTracker.SiPixelESProducers.siPixelGainCalibrationForHLTGPU_cfi import siPixelGainCalibrationForHLTGPU
8 
9 # SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
11 
12 siPixelClustersPreSplittingTask = cms.Task(
13  # SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
14  siPixelClustersPreSplitting
15 )
16 
17 # reconstruct the pixel digis and clusters on the gpu
18 from RecoLocalTracker.SiPixelClusterizer.siPixelRawToClusterCUDA_cfi import siPixelRawToClusterCUDA as _siPixelRawToClusterCUDA
19 siPixelClustersPreSplittingCUDA = _siPixelRawToClusterCUDA.clone()
20 
21 run3_common.toModify(siPixelClustersPreSplittingCUDA,
22  # use the pixel channel calibrations scheme for Run 3
23  isRun2 = False
24 )
25 
26 # convert the pixel digis (except errors) and clusters to the legacy format
27 from RecoLocalTracker.SiPixelClusterizer.siPixelDigisClustersFromSoA_cfi import siPixelDigisClustersFromSoA as _siPixelDigisClustersFromSoA
28 siPixelDigisClustersPreSplitting = _siPixelDigisClustersFromSoA.clone()
29 
30 gpu.toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
31  # conditions used *only* by the modules running on GPU
32  siPixelROCsStatusAndMappingWrapperESProducer,
33  siPixelGainCalibrationForHLTGPU,
34  # reconstruct the pixel digis and clusters on the gpu
35  siPixelClustersPreSplittingCUDA,
36  # convert the pixel digis (except errors) and clusters to the legacy format
37  siPixelDigisClustersPreSplitting,
38  # SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
39  siPixelClustersPreSplittingTask.copy()
40 ))
SiPixelClusterizerPreSplitting_cfi