CMS 3D CMS Logo

SiPixelRecHits_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 siPixelRecHits = cms.EDProducer("SiPixelRecHitConverter",
4  src = cms.InputTag("siPixelClusters"),
5  CPE = cms.string('PixelCPEGeneric'),
6  VerboseLevel = cms.untracked.int32(0)
7 )
8 
9 _siPixelRecHitsPreSplitting = siPixelRecHits.clone(
10  src = 'siPixelClustersPreSplitting'
11 )
12 
13 from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
14 siPixelRecHitsPreSplitting = SwitchProducerCUDA(
15  cpu = _siPixelRecHitsPreSplitting.clone()
16 )
17 
18 
19 
20 from Configuration.ProcessModifiers.gpu_cff import gpu
21 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitCUDA_cfi import siPixelRecHitCUDA as _siPixelRecHitCUDA
22 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitFromCUDA_cfi import siPixelRecHitFromCUDA as _siPixelRecHitFromCUDA
23 
24 gpu.toModify(siPixelRecHitsPreSplitting,
25  cuda = _siPixelRecHitFromCUDA.clone()
26 )
27 
28 
29 siPixelRecHitsPreSplittingTask = cms.Task(siPixelRecHitsPreSplitting)
30 
31 siPixelRecHitsPreSplittingCUDA = _siPixelRecHitCUDA.clone(
32  beamSpot = "offlineBeamSpotToCUDA"
33 )
34 
35 siPixelRecHitsPreSplittingLegacy = _siPixelRecHitFromCUDA.clone()
36 siPixelRecHitsPreSplittingTaskCUDA = cms.Task(
37  siPixelRecHitsPreSplittingCUDA,
38  siPixelRecHitsPreSplittingLegacy,
39 )
40 
41 from Configuration.ProcessModifiers.gpu_cff import gpu
42 _siPixelRecHitsPreSplittingTask_gpu = siPixelRecHitsPreSplittingTask.copy()
43 _siPixelRecHitsPreSplittingTask_gpu.add(siPixelRecHitsPreSplittingTaskCUDA)
44 gpu.toReplaceWith(siPixelRecHitsPreSplittingTask, _siPixelRecHitsPreSplittingTask_gpu)
SwitchProducerCUDA
Definition: SwitchProducerCUDA.py:1