1 import FWCore.ParameterSet.Config
as cms
6 hiPixelPairClusters = cms.EDProducer(
"HITrackClusterRemover",
7 clusterLessSolution= cms.bool(
True),
8 oldClusterRemovalInfo = cms.InputTag(
"hiLowPtTripletStepClusters"),
9 trajectories = cms.InputTag(
"hiLowPtTripletStepTracks"),
10 overrideTrkQuals = cms.InputTag(
'hiLowPtTripletStepSelector',
'hiLowPtTripletStep'),
11 TrackQuality = cms.string(
'highPurity'),
12 minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
13 pixelClusters = cms.InputTag(
"siPixelClusters"),
14 stripClusters = cms.InputTag(
"siStripClusters"),
16 maxChi2 = cms.double(9.0),
19 maxChi2 = cms.double(9.0),
21 maxSize = cms.uint32(2)
28 hiPixelPairSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerPairs_cfi.PixelLayerPairs.clone(
29 layerList = [
'BPix1+BPix2',
'BPix1+BPix3',
'BPix2+BPix3',
30 'BPix1+FPix1_pos',
'BPix1+FPix1_neg',
31 'BPix2+FPix1_pos',
'BPix2+FPix1_neg',
32 'FPix1_pos+FPix2_pos',
'FPix1_neg+FPix2_neg'],
34 TTRHBuilder = cms.string(
'TTRHBuilderWithoutAngle4PixelPairs'),
35 HitProducer = cms.string(
'siPixelRecHits'),
36 skipClusters = cms.InputTag(
'hiPixelPairClusters')
39 TTRHBuilder = cms.string(
'TTRHBuilderWithoutAngle4PixelPairs'),
40 HitProducer = cms.string(
'siPixelRecHits'),
41 skipClusters = cms.InputTag(
'hiPixelPairClusters')
44 from Configuration.Eras.Modifier_trackingPhase1_cff
import trackingPhase1
45 trackingPhase1.toModify(hiPixelPairSeedLayers,
46 layerList = [
'BPix1+BPix4',
'BPix1+FPix1_pos',
'BPix1+FPix1_neg']
51 hiPixelPairSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone(
52 RegionFactoryPSet = dict(
54 VertexCollection =
"hiSelectedPixelVertex",
63 OrderedHitsFactoryPSet = dict(
64 SeedingLayers =
'hiPixelPairSeedLayers',
67 ClusterCheckPSet = dict(
68 MaxNumberOfPixelClusters = 5000000,
69 MaxNumberOfCosmicClusters = 50000000,
72 SeedComparitorPSet = cms.PSet(
73 ComponentName = cms.string(
'PixelClusterShapeSeedComparitor'),
74 FilterAtHelixStage = cms.bool(
True),
75 FilterPixelHits = cms.bool(
True),
76 FilterStripHits = cms.bool(
False),
77 ClusterShapeHitFilterName = cms.string(
'ClusterShapeHitFilter'),
78 ClusterShapeCacheSrc = cms.InputTag(
"siPixelClusterShapeCache")
82 from RecoTracker.TkTrackingRegions.pointSeededTrackingRegion_cfi
import pointSeededTrackingRegion
as _pointSeededTrackingRegion
83 hiPixelPairStepTrackingRegionPhase1 = _pointSeededTrackingRegion.clone(
87 mode =
"VerticesSigma",
89 vertexCollection =
"hiSelectedPixelVertex",
90 beamSpot =
"offlineBeamSpot",
91 whereToUseMeasurementTracker =
"Never",
101 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
102 hiPixelPairStepHitDoubletsPhase1 = _hitPairEDProducer.clone(
103 seedingLayers =
"hiPixelPairSeedLayers",
104 trackingRegions =
"hiPixelPairStepTrackingRegionPhase1",
106 produceSeedingHitSets =
True,
109 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
110 hiPixelPairStepSeedsPhase1 = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
111 seedingHitSets =
"hiPixelPairStepHitDoubletsPhase1",
112 SeedComparitorPSet = dict(
113 ComponentName =
'PixelClusterShapeSeedComparitor',
114 FilterAtHelixStage = cms.bool(
True),
115 FilterPixelHits = cms.bool(
True),
116 FilterStripHits = cms.bool(
False),
117 ClusterShapeHitFilterName = cms.string(
'ClusterShapeHitFilter'),
118 ClusterShapeCacheSrc = cms.InputTag(
'siPixelClusterShapeCache'),
124 hiPixelPairTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
126 minimumNumberOfHits = 6,
131 hiPixelPairChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
132 ComponentName =
'hiPixelPairChi2Est',
139 hiPixelPairTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
140 MeasurementTrackerName =
'',
141 trajectoryFilter = dict(refToPSet_ =
'hiPixelPairTrajectoryFilter'),
143 estimator =
'hiPixelPairChi2Est',
144 maxDPhiForLooperReconstruction = cms.double(2.0),
145 maxPtForLooperReconstruction = cms.double(0.7)
150 hiPixelPairTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
151 src =
'hiPixelPairSeeds',
152 clustersToSkip = cms.InputTag(
'hiPixelPairClusters'),
153 TrajectoryBuilderPSet = dict(refToPSet_ =
'hiPixelPairTrajectoryBuilder'),
155 numHitsForSeedCleaner = cms.int32(50),
156 onlyPixelHitsForSeedCleaner = cms.bool(
True),
158 trackingPhase1.toModify(hiPixelPairTrackCandidates,
159 src =
'hiPixelPairStepSeedsPhase1'
164 hiPixelPairGlobalPrimTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
165 AlgorithmName =
'pixelPairStep',
166 src =
'hiPixelPairTrackCandidates',
167 Fitter =
'FlexibleKFFittingSmoother'
175 hiPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
176 src =
'hiPixelPairGlobalPrimTracks',
178 GBRForestLabel =
'HIMVASelectorIter6',
179 GBRForestVars = [
'chi2perdofperlayer',
'dxyperdxyerror',
'dzperdzerror',
'nhits',
'nlayers',
'eta'],
180 trackSelectors= cms.VPSet(
181 RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
182 name =
'hiPixelPairStepLoose',
185 RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
186 name =
'hiPixelPairStepTight',
187 preFilterName =
'hiPixelPairStepLoose',
191 RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
192 name =
'hiPixelPairStep',
193 preFilterName =
'hiPixelPairStepTight',
199 from Configuration.Eras.Modifier_trackingPhase1_cff
import trackingPhase1
200 trackingPhase1.toModify(hiPixelPairStepSelector,
202 trackSelectors= cms.VPSet(
203 RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
204 name =
'hiPixelPairStepLoose',
207 RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
208 name =
'hiPixelPairStepTight',
209 preFilterName =
'hiPixelPairStepLoose',
213 RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
214 name =
'hiPixelPairStep',
215 preFilterName =
'hiPixelPairStepTight',
223 hiPixelPairStepTask = cms.Task(hiPixelPairClusters,
224 hiPixelPairSeedLayers,
226 hiPixelPairTrackCandidates,
227 hiPixelPairGlobalPrimTracks,
228 hiPixelPairStepSelector)
229 hiPixelPairStep = cms.Sequence(hiPixelPairStepTask)
230 hiPixelPairStep_Phase1 = hiPixelPairStepTask.copy()
231 hiPixelPairStep_Phase1.replace(hiPixelPairSeeds, cms.Task(hiPixelPairStepTrackingRegionPhase1,hiPixelPairStepHitDoubletsPhase1,hiPixelPairStepSeedsPhase1) )
232 trackingPhase1.toReplaceWith(hiPixelPairStepTask, hiPixelPairStep_Phase1)