CMS 3D CMS Logo

BeamSpot_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from RecoVertex.BeamSpotProducer.offlineBeamSpotToCUDA_cfi import offlineBeamSpotToCUDA
5 from RecoVertex.BeamSpotProducer.beamSpotDeviceProducer_cfi import beamSpotDeviceProducer as _beamSpotDeviceProducer
6 
7 offlineBeamSpotTask = cms.Task(offlineBeamSpot)
8 
10 _offlineBeamSpotTask_gpu = offlineBeamSpotTask.copy()
11 _offlineBeamSpotTask_gpu.add(offlineBeamSpotToCUDA)
12 gpu.toReplaceWith(offlineBeamSpotTask, _offlineBeamSpotTask_gpu)
13 
15 _offlineBeamSpotTask_alpaka = offlineBeamSpotTask.copy()
16 offlineBeamSpotDevice = _beamSpotDeviceProducer.clone(src = cms.InputTag('offlineBeamSpot'))
17 _offlineBeamSpotTask_alpaka.add(offlineBeamSpotDevice)
18 alpaka.toReplaceWith(offlineBeamSpotTask, _offlineBeamSpotTask_alpaka)