Skip to content

Commit

Permalink
Migrate tracker local reconstruction and pixel tracking to Tasks (bac…
Browse files Browse the repository at this point in the history
…kport cms-sw#25163) (#202)

Backport "Migrate tracker local reconstruction and pixel tracking to Tasks" (cms-sw#25163) to the Patatrack branch:
  - migrate RecoLocalTracker_cff to Tasks;
  - migrate RecoPixelVertexing_cff to Tasks;
  - keeping sequences to avoid massive migration (for now).
  • Loading branch information
fwyzard committed Nov 6, 2020
1 parent 56e20df commit e71ac63
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions RecoPixelVertexing/PixelTrackFitting/python/PixelTracks_cff.py
Expand Up @@ -67,24 +67,26 @@
)
trackingLowPU.toModify(pixelTracks, SeedingHitSets = "pixelTracksHitTriplets")

pixelTracksSequence = cms.Sequence(
pixelTracksTrackingRegions +
pixelFitterByHelixProjections +
pixelTrackFilterByKinematics +
pixelTracksSeedLayers +
pixelTracksHitDoublets +
pixelTracksHitQuadruplets +
pixelTracksTask = cms.Task(
pixelTracksTrackingRegions,
pixelFitterByHelixProjections,
pixelTrackFilterByKinematics,
pixelTracksSeedLayers,
pixelTracksHitDoublets,
pixelTracksHitQuadruplets,
pixelTracks
)
_pixelTracksSequence_lowPU = pixelTracksSequence.copy()
_pixelTracksSequence_lowPU.replace(pixelTracksHitQuadruplets, pixelTracksHitTriplets)
trackingLowPU.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_lowPU)
_pixelTracksTask_lowPU = pixelTracksTask.copy()
_pixelTracksTask_lowPU.replace(pixelTracksHitQuadruplets, pixelTracksHitTriplets)
trackingLowPU.toReplaceWith(pixelTracksTask, _pixelTracksTask_lowPU)

# Use Riemann fit and substitute previous Fitter producer with the Riemann one
from Configuration.ProcessModifiers.riemannFit_cff import riemannFit
from Configuration.ProcessModifiers.riemannFitGPU_cff import riemannFitGPU
riemannFit.toModify(pixelTracks, Fitter = "pixelFitterByRiemannParaboloid")
riemannFitGPU.toModify(pixelTracks, runOnGPU = True)
_pixelTracksSequence_riemannFit = pixelTracksSequence.copy()
_pixelTracksSequence_riemannFit.replace(pixelFitterByHelixProjections, pixelFitterByRiemannParaboloid)
riemannFit.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_riemannFit)
_pixelTracksTask_riemannFit = pixelTracksTask.copy()
_pixelTracksTask_riemannFit.replace(pixelFitterByHelixProjections, pixelFitterByRiemannParaboloid)
riemannFit.toReplaceWith(pixelTracksTask, _pixelTracksTask_riemannFit)

pixelTracksSequence = cms.Sequence(pixelTracksTask)

0 comments on commit e71ac63

Please sign in to comment.