Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-10 22:49:50

0001 import FWCore.ParameterSet.Config as cms
0002 from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
0003 
0004 # SiPixelGainCalibrationServiceParameters
0005 from CondTools.SiPixel.SiPixelGainCalibrationService_cfi import *
0006 
0007 # legacy pixel cluster producer
0008 from RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi import siPixelClusters as _siPixelClusters
0009 siPixelClustersPreSplitting = SwitchProducerCUDA(
0010     cpu = _siPixelClusters.clone()
0011 )
0012 
0013 from Configuration.ProcessModifiers.gpu_cff import gpu
0014 # SwitchProducer wrapping the legacy pixel cluster producer or an alias for the pixel clusters information converted from SoA
0015 gpu.toModify(siPixelClustersPreSplitting,
0016     # ensure the same results when running on GPU (which supports only the 'HLT' payload) and CPU
0017     cpu = dict(
0018         payloadType = 'HLT'
0019     ),
0020     cuda = cms.EDAlias(
0021         siPixelDigisClustersPreSplitting = cms.VPSet(
0022             cms.PSet(type = cms.string("SiPixelClusteredmNewDetSetVector"))
0023         )
0024     )
0025 )
0026 
0027 from Configuration.ProcessModifiers.siPixelDigiMorphing_cff import siPixelDigiMorphing
0028 siPixelDigiMorphing.toModify(
0029     siPixelClustersPreSplitting,
0030     cpu = dict(
0031          src = 'siPixelDigisMorphed'
0032     )
0033 )