1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
9 from RecoLocalTracker.SiStripClusterizer.siStripClusterizerFromRawGPU_cfi
import siStripClusterizerFromRawGPU
10 from RecoLocalTracker.SiStripClusterizer.siStripClustersSOAtoHost_cfi
import siStripClustersSOAtoHost
11 from RecoLocalTracker.SiStripClusterizer.siStripClustersFromSOA_cfi
import siStripClustersFromSOA
12 from RecoLocalTracker.SiStripClusterizer.SiStripClusterizerConditionsGPUESProducer_cfi
import SiStripClusterizerConditionsGPUESProducer
14 _siStripClusterizerFromRaw = cms.EDProducer(
"SiStripClusterizerFromRaw",
15 onDemand = cms.bool(
True),
16 Clusterizer = DefaultClusterizer,
17 Algorithms = DefaultAlgorithms,
18 DoAPVEmulatorCheck = cms.bool(
False),
19 HybridZeroSuppressed = cms.bool(
False),
20 ProductLabel = cms.InputTag(
'rawDataCollector'))
22 _siStripClusterizerFromRaw.Clusterizer.MaxClusterSize = cms.uint32(16)
24 siStripClusterizerFromRawGPU.Clusterizer = DefaultClusterizer
27 cpu = _siStripClusterizerFromRaw.clone(),
30 siStripClustersTask = cms.Task(
36 gpu.toModify(siStripClusters,
37 cuda = siStripClustersFromSOA,
40 siStripClustersTaskCUDA = cms.Task()
42 gpu.toReplaceWith(siStripClustersTaskCUDA, cms.Task(
44 SiStripClusterizerConditionsGPUESProducer,
46 siStripClusterizerFromRawGPU,
48 siStripClustersSOAtoHost,
51 gpu.toReplaceWith(siStripClustersTask, cms.Task(
53 siStripClustersTaskCUDA,