CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  clusterThreshold_layer1 = 4000)
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 run3_common.toModify(siPixelDigisClustersPreSplitting,
31  clusterThreshold_layer1 = 4000)
32 
33 gpu.toReplaceWith(siPixelClustersPreSplittingTask, cms.Task(
34  # conditions used *only* by the modules running on GPU
35  siPixelROCsStatusAndMappingWrapperESProducer,
36  siPixelGainCalibrationForHLTGPU,
37  # reconstruct the pixel digis and clusters on the gpu
38  siPixelClustersPreSplittingCUDA,
39  # convert the pixel digis (except errors) and clusters to the legacy format
40  siPixelDigisClustersPreSplitting,
41  # SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
42  siPixelClustersPreSplittingTask.copy()
43 ))