Skip to content

Commit

Permalink
Use the gpu modifier to read the pixel clusters from the unpacker (#31
Browse files Browse the repository at this point in the history
)

When running the GPU algorithms, the pixel unpacker is reponsible
for providing both the digis and the cluster.
These changes make use of the unpacker label to access the clusters,
conditionally on the presence of the `gpu` process modifier.
  • Loading branch information
fwyzard committed Oct 23, 2020
1 parent b81788e commit cbdf51e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DQM/TrackingMonitorSource/python/pixelTracksMonitoring_cff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import FWCore.ParameterSet.Config as cms
from Configuration.ProcessModifiers.gpu_cff import gpu

import DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi
pixelTracksMonitoring = DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi.TrackerCollisionTrackMon.clone()
Expand All @@ -21,3 +22,4 @@
pixelTracksMonitoring.doPlotsVsLUMI = True
pixelTracksMonitoring.doPlotsVsBX = True

gpu.toModify(pixelTracksMonitoring, pixelCluster4lumi = "siPixelDigis")
3 changes: 3 additions & 0 deletions Validation/RecoTrack/python/TrackValidation_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
import RecoTracker.IterativeTracking.iterativeTkUtils as _utils
from Configuration.Eras.Modifier_fastSim_cff import fastSim
from Configuration.ProcessModifiers.gpu_cff import gpu

### First define the stuff for the standard validation sequence
## Track selectors
Expand Down Expand Up @@ -712,6 +713,8 @@ def _uniqueFirstLayers(layerList):
tpClusterProducerPixelTrackingOnly = tpClusterProducer.clone(
pixelClusterSrc = "siPixelClustersPreSplitting"
)
gpu.toModify(tpClusterProducerPixelTrackingOnly, pixelClusterSrc = "siPixelDigis")

quickTrackAssociatorByHitsPixelTrackingOnly = quickTrackAssociatorByHits.clone(
cluster2TPSrc = "tpClusterProducerPixelTrackingOnly"
)
Expand Down

0 comments on commit cbdf51e

Please sign in to comment.