From 1ce48a08482419c10f58f9c431b1a1b66b868312 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Wed, 28 Nov 2018 18:06:28 +0100 Subject: [PATCH] Migrate tracker local reconstruction and pixel tracking to Tasks (backport #25163) (#202) Backport "Migrate tracker local reconstruction and pixel tracking to Tasks" (#25163) to the Patatrack branch: - migrate RecoLocalTracker_cff to Tasks; - migrate RecoPixelVertexing_cff to Tasks; - keeping sequences to avoid massive migration (for now). --- .../python/RecoLocalTracker_cff.py | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/RecoLocalTracker/Configuration/python/RecoLocalTracker_cff.py b/RecoLocalTracker/Configuration/python/RecoLocalTracker_cff.py index b001700d8f369..b75e75e000d48 100644 --- a/RecoLocalTracker/Configuration/python/RecoLocalTracker_cff.py +++ b/RecoLocalTracker/Configuration/python/RecoLocalTracker_cff.py @@ -13,9 +13,13 @@ from RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi import * from RecoLocalTracker.SubCollectionProducers.clustersummaryproducer_cfi import * -pixeltrackerlocalreco = cms.Sequence(siPixelClustersPreSplitting*siPixelRecHitsPreSplitting) -striptrackerlocalreco = cms.Sequence(siStripZeroSuppression*siStripClusters*siStripMatchedRecHits) -trackerlocalreco = cms.Sequence(pixeltrackerlocalreco*striptrackerlocalreco*clusterSummaryProducer) +pixeltrackerlocalrecoTask = cms.Task(siPixelClustersPreSplitting,siPixelRecHitsPreSplitting) +striptrackerlocalrecoTask = cms.Task(siStripZeroSuppression,siStripClusters,siStripMatchedRecHits) +trackerlocalrecoTask = cms.Task(pixeltrackerlocalrecoTask,striptrackerlocalrecoTask,clusterSummaryProducer) + +pixeltrackerlocalreco = cms.Sequence(pixeltrackerlocalrecoTask) +striptrackerlocalreco = cms.Sequence(striptrackerlocalrecoTask) +trackerlocalreco = cms.Sequence(trackerlocalrecoTask) from Configuration.ProcessModifiers.gpu_cff import gpu from RecoLocalTracker.SiPixelRecHits.siPixelRecHitHeterogeneous_cfi import siPixelRecHitHeterogeneous as _siPixelRecHitHeterogeneous @@ -24,15 +28,7 @@ from RecoLocalTracker.SiPhase2Clusterizer.phase2TrackerClusterizer_cfi import * from RecoLocalTracker.Phase2TrackerRecHits.Phase2StripCPEGeometricESProducer_cfi import * -phase2_tracker.toReplaceWith(pixeltrackerlocalreco, - cms.Sequence( - siPhase2Clusters + - siPixelClustersPreSplitting + - siPixelRecHitsPreSplitting - ) -) -phase2_tracker.toReplaceWith(trackerlocalreco, - cms.Sequence( - pixeltrackerlocalreco*clusterSummaryProducer - ) -) +_pixeltrackerlocalrecoTask_phase2 = pixeltrackerlocalrecoTask.copy() +_pixeltrackerlocalrecoTask_phase2.add(siPhase2Clusters) +phase2_tracker.toReplaceWith(pixeltrackerlocalrecoTask, _pixeltrackerlocalrecoTask_phase2) +phase2_tracker.toReplaceWith(trackerlocalrecoTask, trackerlocalrecoTask.copyAndExclude([striptrackerlocalrecoTask]))