CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPixelClusterizerPreSplitting_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
3 
4 # SiPixelGainCalibrationServiceParameters
6 
7 # legacy pixel cluster producer
8 from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters as _siPixelClusters
9 siPixelClustersPreSplitting = SwitchProducerCUDA(
10  cpu = _siPixelClusters.clone()
11 )
12 
13 from Configuration.ProcessModifiers.gpu_cff import gpu
14 # SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
15 gpu.toModify(siPixelClustersPreSplitting,
16  # ensure the same results when running on GPU (which supports only the 'HLT' payload) and CPU
17  cpu = dict(
18  payloadType = 'HLT'
19  ),
20  cuda = cms.EDAlias(
21  siPixelDigisClustersPreSplitting = cms.VPSet(
22  cms.PSet(type = cms.string("SiPixelClusteredmNewDetSetVector"))
23  )
24  )
25 )
26 
27 from Configuration.ProcessModifiers.siPixelDigiMorphing_cff import siPixelDigiMorphing
28 siPixelDigiMorphing.toModify(
29  siPixelClustersPreSplitting,
30  cpu = dict(
31  src = 'siPixelDigisMorphed'
32  )
33 )