CMS 3D CMS Logo

customizePixelTracksSoAonCPU.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5  process.CUDAService = cms.Service('CUDAService',
6  enabled = cms.untracked.bool(False)
7  )
8 
9  # ensure the same results when running on GPU (which supports only the 'HLT' payload) and CPU
10  process.siPixelClustersPreSplitting.cpu.payloadType = cms.string('HLT')
11 
12  from RecoLocalTracker.SiPixelRecHits.siPixelRecHitSoAFromLegacy_cfi import siPixelRecHitSoAFromLegacy
13  process.siPixelRecHitsPreSplitting = siPixelRecHitSoAFromLegacy.clone(
14  convertToLegacy = True
15  )
16 
17  from RecoPixelVertexing.PixelTriplets.caHitNtupletCUDA_cfi import caHitNtupletCUDA
18  process.pixelTrackSoA = caHitNtupletCUDA.clone(
19  onGPU = False,
20  pixelRecHitSrc = 'siPixelRecHitsPreSplitting'
21  )
22 
23  from RecoPixelVertexing.PixelVertexFinding.pixelVertexCUDA_cfi import pixelVertexCUDA
24  process.pixelVertexSoA = pixelVertexCUDA.clone(
25  onGPU = False,
26  pixelTrackSrc = 'pixelTrackSoA'
27  )
28 
29  from RecoPixelVertexing.PixelTrackFitting.pixelTrackProducerFromSoA_cfi import pixelTrackProducerFromSoA
30  process.pixelTracks = pixelTrackProducerFromSoA.clone(
31  pixelRecHitLegacySrc = 'siPixelRecHitsPreSplitting'
32  )
33 
34  from RecoPixelVertexing.PixelVertexFinding.pixelVertexFromSoA_cfi import pixelVertexFromSoA
35  process.pixelVertices = pixelVertexFromSoA.clone()
36 
37  process.reconstruction_step += process.siPixelRecHitsPreSplitting + process.pixelTrackSoA + process.pixelVertexSoA
38 
39  return process
40 
41 
43 
44  from HLTrigger.Configuration.common import producers_by_type
45  for producer in producers_by_type(process, 'CAHitNtupletCUDA'):
46  producer.includeJumpingForwardDoublets = True
47  producer.minHitsPerNtuplet = 3
48 
49  return process
50 
51 
53 
54  process = customizePixelTracksSoAonCPU(process)
55 
56  process.siPixelRecHitSoAFromLegacy.convertToLegacy = False
57 
58  process.TkSoA = cms.Path(process.offlineBeamSpot + process.siPixelDigis + process.siPixelClustersPreSplitting + process.siPixelRecHitSoAFromLegacy + process.pixelTrackSoA + process.pixelVertexSoA)
59 
60  process.schedule = cms.Schedule(process.TkSoA)
61 
62  return process
common
customizePixelTracksSoAonCPU.customizePixelTracksSoAonCPU
def customizePixelTracksSoAonCPU(process)
Definition: customizePixelTracksSoAonCPU.py:3
customizePixelTracksSoAonCPU.customizePixelTracksSoAonCPUForProfiling
def customizePixelTracksSoAonCPUForProfiling(process)
Definition: customizePixelTracksSoAonCPU.py:52
customizePixelTracksSoAonCPU
Definition: customizePixelTracksSoAonCPU.py:1
common.producers_by_type
def producers_by_type(process, *types)
Definition: common.py:5
customizePixelTracksSoAonCPU.customizePixelTracksForTriplets
def customizePixelTracksForTriplets(process)
Definition: customizePixelTracksSoAonCPU.py:42