CMS 3D CMS Logo

TobTecStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
3 from Configuration.Eras.Modifier_fastSim_cff import fastSim
4 
5 #######################################################################
6 # Very large impact parameter tracking using TOB + TEC ring 5 seeding #
7 #######################################################################
8 
9 tobTecStepClusters = _cfg.clusterRemoverForIter("TobTecStep")
10 for _eraName, _postfix, _era in _cfg.nonDefaultEras():
11  _era.toReplaceWith(tobTecStepClusters, _cfg.clusterRemoverForIter("TobTecStep", _eraName, _postfix))
12 
13 # TRIPLET SEEDING LAYERS
15 tobTecStepSeedLayersTripl = cms.EDProducer("SeedingLayersEDProducer",
16  layerList = cms.vstring(
17  #TOB
18  'TOB1+TOB2+MTOB3','TOB1+TOB2+MTOB4',
19  #TOB+MTEC
20  'TOB1+TOB2+MTEC1_pos','TOB1+TOB2+MTEC1_neg',
21  ),
22  TOB = cms.PSet(
23  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
24  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
25  skipClusters = cms.InputTag('tobTecStepClusters')
26  ),
27  MTOB = cms.PSet(
28  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
29  skipClusters = cms.InputTag('tobTecStepClusters'),
30  rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHit")
31  ),
32  MTEC = cms.PSet(
33  rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHit"),
34  skipClusters = cms.InputTag('tobTecStepClusters'),
35  useRingSlector = cms.bool(True),
36  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
37  minRing = cms.int32(6),
38  maxRing = cms.int32(7)
39  )
40 )
41 
42 # Triplet TrackingRegion
43 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpotFixedZ_cfi import globalTrackingRegionFromBeamSpotFixedZ as _globalTrackingRegionFromBeamSpotFixedZ
44 tobTecStepTrackingRegionsTripl = _globalTrackingRegionFromBeamSpotFixedZ.clone(RegionPSet = dict(
45  ptMin = 0.55,
46  originHalfLength = 20.0,
47  originRadius = 3.5
48 ))
49 
50 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
51 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
52 from RecoTracker.IterativeTracking.MixedTripletStep_cff import _mixedTripletStepTrackingRegionsCommon_pp_on_HI
53 (pp_on_XeXe_2017 | pp_on_AA_2018).toReplaceWith(tobTecStepTrackingRegionsTripl,
54  _mixedTripletStepTrackingRegionsCommon_pp_on_HI.clone(RegionPSet=dict(
55  ptMinScaling4BigEvts= False,
56  fixedError = 5.0,
57  ptMin = 2.0,
58  originRadius = 3.5
59  ) )
60 )
61 
62 # Triplet seeding
63 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import ClusterShapeHitFilterESProducer as _ClusterShapeHitFilterESProducer
64 tobTecStepClusterShapeHitFilter = _ClusterShapeHitFilterESProducer.clone(
65  ComponentName = 'tobTecStepClusterShapeHitFilter',
66  doStripShapeCut = cms.bool(False),
67  clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTight')
68 )
69 
70 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
71 tobTecStepHitDoubletsTripl = _hitPairEDProducer.clone(
72  seedingLayers = "tobTecStepSeedLayersTripl",
73  trackingRegions = "tobTecStepTrackingRegionsTripl",
74  maxElement = 0,
75  produceIntermediateHitDoublets = True,
76 )
77 from RecoTracker.TkSeedGenerator.multiHitFromChi2EDProducer_cfi import multiHitFromChi2EDProducer as _multiHitFromChi2EDProducer
78 tobTecStepHitTripletsTripl = _multiHitFromChi2EDProducer.clone(
79  doublets = "tobTecStepHitDoubletsTripl",
80  extraPhiKDBox = 0.01,
81 )
82 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff import seedCreatorFromRegionConsecutiveHitsEDProducer as _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer
83 from RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeSeedFilter_cfi import StripSubClusterShapeSeedFilter as _StripSubClusterShapeSeedFilter
84 _tobTecStepSeedComparitorPSet = dict(
85  ComponentName = 'CombinedSeedComparitor',
86  mode = cms.string("and"),
87  comparitors = cms.VPSet(
88  cms.PSet(# FIXME: is this defined in any cfi that could be imported instead of copy-paste?
89  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
90  FilterAtHelixStage = cms.bool(True),
91  FilterPixelHits = cms.bool(False),
92  FilterStripHits = cms.bool(True),
93  ClusterShapeHitFilterName = cms.string('tobTecStepClusterShapeHitFilter'),
94  ClusterShapeCacheSrc = cms.InputTag("siPixelClusterShapeCache") # not really needed here since FilterPixelHits=False
95  ),
96  _StripSubClusterShapeSeedFilter.clone()
97  )
98 )
99 tobTecStepSeedsTripl = _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer.clone(#empirically better than 'SeedFromConsecutiveHitsTripletOnlyCreator'
100  seedingHitSets = "tobTecStepHitTripletsTripl",
101  SeedComparitorPSet = _tobTecStepSeedComparitorPSet,
102 )
103 #fastsim
104 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
105 _fastSim_tobTecStepSeedsTripl = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
106  trackingRegions = "tobTecStepTrackingRegionsTripl",
107  hitMasks = cms.InputTag("tobTecStepMasks"),
108 )
109 from FastSimulation.Tracking.SeedingMigration import _hitSetProducerToFactoryPSet
110 _fastSim_tobTecStepSeedsTripl.seedFinderSelector.MultiHitGeneratorFactory = _hitSetProducerToFactoryPSet(tobTecStepHitTripletsTripl)
111 _fastSim_tobTecStepSeedsTripl.seedFinderSelector.MultiHitGeneratorFactory.SeedComparitorPSet=cms.PSet( ComponentName = cms.string( "none" ) )
112 _fastSim_tobTecStepSeedsTripl.seedFinderSelector.MultiHitGeneratorFactory.refitHits = False
113 _fastSim_tobTecStepSeedsTripl.seedFinderSelector.layerList = tobTecStepSeedLayersTripl.layerList.value()
114 fastSim.toReplaceWith(tobTecStepSeedsTripl,_fastSim_tobTecStepSeedsTripl)
115 
116 # PAIR SEEDING LAYERS
117 tobTecStepSeedLayersPair = cms.EDProducer("SeedingLayersEDProducer",
118  layerList = cms.vstring('TOB1+TEC1_pos','TOB1+TEC1_neg',
119  'TEC1_pos+TEC2_pos','TEC1_neg+TEC2_neg',
120  'TEC2_pos+TEC3_pos','TEC2_neg+TEC3_neg',
121  'TEC3_pos+TEC4_pos','TEC3_neg+TEC4_neg',
122  'TEC4_pos+TEC5_pos','TEC4_neg+TEC5_neg',
123  'TEC5_pos+TEC6_pos','TEC5_neg+TEC6_neg',
124  'TEC6_pos+TEC7_pos','TEC6_neg+TEC7_neg'),
125  TOB = cms.PSet(
126  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
127  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
128  skipClusters = cms.InputTag('tobTecStepClusters')
129  ),
130  TEC = cms.PSet(
131  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
132  skipClusters = cms.InputTag('tobTecStepClusters'),
133  useRingSlector = cms.bool(True),
134  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
135  minRing = cms.int32(5),
136  maxRing = cms.int32(5)
137  )
138 )
139 # Pair TrackingRegion
140 tobTecStepTrackingRegionsPair = _globalTrackingRegionFromBeamSpotFixedZ.clone(RegionPSet = dict(
141  ptMin = 0.6,
142  originHalfLength = 30.0,
143  originRadius = 6.0,
144 ))
145 
146 (pp_on_XeXe_2017 | pp_on_AA_2018).toReplaceWith(tobTecStepTrackingRegionsPair,
147  _mixedTripletStepTrackingRegionsCommon_pp_on_HI.clone(RegionPSet=dict(
148  ptMinScaling4BigEvts= False,
149  fixedError = 7.5,
150  ptMin = 2.0,
151  originRadius = 6.0
152  ) )
153 )
154 
155 
156 # Pair seeds
157 tobTecStepHitDoubletsPair = _hitPairEDProducer.clone(
158  seedingLayers = "tobTecStepSeedLayersPair",
159  trackingRegions = "tobTecStepTrackingRegionsPair",
160  produceSeedingHitSets = True,
161 )
162 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff import seedCreatorFromRegionConsecutiveHitsEDProducer as _seedCreatorFromRegionConsecutiveHitsEDProducer
163 tobTecStepSeedsPair = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
164  seedingHitSets = "tobTecStepHitDoubletsPair",
165  SeedComparitorPSet = _tobTecStepSeedComparitorPSet,
166 )
167 #fastsim
168 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
169 fastSim.toReplaceWith(tobTecStepSeedsPair,
170  FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
171  trackingRegions = "tobTecStepTrackingRegionsPair",
172  hitMasks = cms.InputTag("tobTecStepMasks"),
173  seedFinderSelector = dict(layerList = tobTecStepSeedLayersPair.layerList.value())
174  )
175 )
176 
177 
178 # Combined seeds
180 tobTecStepSeeds = RecoTracker.TkSeedGenerator.GlobalCombinedSeeds_cfi.globalCombinedSeeds.clone()
181 tobTecStepSeeds.seedCollections = cms.VInputTag(cms.InputTag('tobTecStepSeedsTripl'),cms.InputTag('tobTecStepSeedsPair'))
182 
183 # LowPU
184 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
185 trackingLowPU.toModify(tobTecStepHitDoubletsPair, seedingLayers = 'tobTecStepSeedLayers')
186 trackingLowPU.toReplaceWith(tobTecStepSeeds, _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
187  seedingHitSets = "tobTecStepHitDoubletsPair",
188 ))
189 
190 
191 # QUALITY CUTS DURING TRACK BUILDING (for inwardss and outwards track building steps)
193 _tobTecStepTrajectoryFilterBase = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
194  maxLostHits = 0,
195  minimumNumberOfHits = 5,
196  minPt = 0.1,
197  minHitsMinPt = 3
198  )
199 tobTecStepTrajectoryFilter = _tobTecStepTrajectoryFilterBase.clone(
200  seedPairPenalty = 1,
201 )
202 trackingLowPU.toReplaceWith(tobTecStepTrajectoryFilter, _tobTecStepTrajectoryFilterBase.clone(
203  minimumNumberOfHits = 6,
204 ))
205 for e in [pp_on_XeXe_2017, pp_on_AA_2018]:
206  e.toModify(tobTecStepTrajectoryFilter, minPt=2.0)
207 
208 tobTecStepInOutTrajectoryFilter = tobTecStepTrajectoryFilter.clone(
209  minimumNumberOfHits = 4,
210 )
211 
212 
213 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
214 tobTecStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
215  ComponentName = cms.string('tobTecStepChi2Est'),
216  nSigma = cms.double(3.0),
217  MaxChi2 = cms.double(16.0),
218  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight'))
219 )
220 trackingLowPU.toModify(tobTecStepChi2Est,
221  clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTiny')
222 )
223 
224 # TRACK BUILDING
226 tobTecStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
227  MeasurementTrackerName = '',
228  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('tobTecStepTrajectoryFilter')),
229  inOutTrajectoryFilter = cms.PSet(refToPSet_ = cms.string('tobTecStepInOutTrajectoryFilter')),
230  useSameTrajFilter = False,
231  minNrOfHitsForRebuild = 4,
232  alwaysUseInvalidHits = False,
233  maxCand = 2,
234  estimator = cms.string('tobTecStepChi2Est'),
235  #startSeedHitsInRebuild = True
236  maxDPhiForLooperReconstruction = cms.double(2.0),
237  maxPtForLooperReconstruction = cms.double(0.7)
238  )
239 # Important note for LowPU: in RunI_TobTecStep the
240 # inOutTrajectoryFilter parameter is spelled as
241 # inOutTrajectoryFilterName, and I suspect it has no effect there. I
242 # chose to "fix" the behaviour here, so the era is not fully
243 # equivalent to the customize. To restore the customize behaviour,
244 # uncomment the following lines
245 #trackingLowPU.toModify(tobTecStepTrajectoryBuilder,
246 # inOutTrajectoryFilter = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.inOutTrajectoryFilter.clone(),
247 # inOutTrajectoryFilterName = cms.PSet(refToPSet_ = cms.string('tobTecStepInOutTrajectoryFilter'))
248 #)
249 
250 # MAKING OF TRACK CANDIDATES
252 tobTecStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
253  src = cms.InputTag('tobTecStepSeeds'),
254  clustersToSkip = cms.InputTag('tobTecStepClusters'),
255  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
256  numHitsForSeedCleaner = cms.int32(50),
257  onlyPixelHitsForSeedCleaner = cms.bool(True),
258 
259  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('tobTecStepTrajectoryBuilder')),
260  doSeedingRegionRebuilding = True,
261  useHitsSplitting = True,
262  cleanTrajectoryAfterInOut = True,
263  TrajectoryCleaner = 'tobTecStepTrajectoryCleanerBySharedHits'
264 )
265 import FastSimulation.Tracking.TrackCandidateProducer_cfi
266 fastSim.toReplaceWith(tobTecStepTrackCandidates,
267  FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
268  MinNumberOfCrossedLayers = 3,
269  src = cms.InputTag("tobTecStepSeeds"),
270  hitMasks = cms.InputTag("tobTecStepMasks")
271  )
272  )
273 
274 
275 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
276 tobTecStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
277  ComponentName = cms.string('tobTecStepTrajectoryCleanerBySharedHits'),
278  fractionShared = cms.double(0.09),
279  allowSharedFirstHit = cms.bool(True)
280  )
281 trackingLowPU.toModify(tobTecStepTrajectoryCleanerBySharedHits, fractionShared = 0.19)
282 
283 # TRACK FITTING AND SMOOTHING OPTIONS
285 tobTecStepFitterSmoother = TrackingTools.TrackFitters.RungeKuttaFitters_cff.KFFittingSmootherWithOutliersRejectionAndRK.clone(
286  ComponentName = 'tobTecStepFitterSmoother',
287  EstimateCut = 30,
288  MinNumberOfHits = 7,
289  Fitter = cms.string('tobTecStepRKFitter'),
290  Smoother = cms.string('tobTecStepRKSmoother')
291  )
292 trackingLowPU.toModify(tobTecStepFitterSmoother, MinNumberOfHits = 8)
293 
294 tobTecStepFitterSmootherForLoopers = tobTecStepFitterSmoother.clone(
295  ComponentName = 'tobTecStepFitterSmootherForLoopers',
296  Fitter = cms.string('tobTecStepRKFitterForLoopers'),
297  Smoother = cms.string('tobTecStepRKSmootherForLoopers')
298 )
299 
300 # Also necessary to specify minimum number of hits after final track fit
301 tobTecStepRKTrajectoryFitter = TrackingTools.TrackFitters.RungeKuttaFitters_cff.RKTrajectoryFitter.clone(
302  ComponentName = cms.string('tobTecStepRKFitter'),
303  minHits = 7
304 )
305 trackingLowPU.toModify(tobTecStepRKTrajectoryFitter, minHits = 8)
306 
307 tobTecStepRKTrajectoryFitterForLoopers = tobTecStepRKTrajectoryFitter.clone(
308  ComponentName = cms.string('tobTecStepRKFitterForLoopers'),
309  Propagator = cms.string('PropagatorWithMaterialForLoopers'),
310 )
311 
312 tobTecStepRKTrajectorySmoother = TrackingTools.TrackFitters.RungeKuttaFitters_cff.RKTrajectorySmoother.clone(
313  ComponentName = cms.string('tobTecStepRKSmoother'),
314  errorRescaling = 10.0,
315  minHits = 7
316 )
317 trackingLowPU.toModify(tobTecStepRKTrajectorySmoother, minHits = 8)
318 
319 tobTecStepRKTrajectorySmootherForLoopers = tobTecStepRKTrajectorySmoother.clone(
320  ComponentName = cms.string('tobTecStepRKSmootherForLoopers'),
321  Propagator = cms.string('PropagatorWithMaterialForLoopers'),
322 )
323 
325 tobTecFlexibleKFFittingSmoother = TrackingTools.TrackFitters.FlexibleKFFittingSmoother_cfi.FlexibleKFFittingSmoother.clone(
326  ComponentName = cms.string('tobTecFlexibleKFFittingSmoother'),
327  standardFitter = cms.string('tobTecStepFitterSmoother'),
328  looperFitter = cms.string('tobTecStepFitterSmootherForLoopers'),
329 )
330 
331 
332 # TRACK FITTING
334 tobTecStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
335  src = 'tobTecStepTrackCandidates',
336  AlgorithmName = cms.string('tobTecStep'),
337  #Fitter = 'tobTecStepFitterSmoother',
338  Fitter = 'tobTecFlexibleKFFittingSmoother',
339  )
340 fastSim.toModify(tobTecStepTracks, TTRHBuilder = 'WithoutRefit')
341 
342 
343 # TRACK SELECTION AND QUALITY FLAG SETTING.
346 tobTecStepClassifier1 = TrackMVAClassifierDetached.clone()
347 tobTecStepClassifier1.src = 'tobTecStepTracks'
348 tobTecStepClassifier1.mva.GBRForestLabel = 'MVASelectorIter6_13TeV'
349 tobTecStepClassifier1.qualityCuts = [-0.6,-0.45,-0.3]
350 fastSim.toModify(tobTecStepClassifier1, vertices = "firstStepPrimaryVerticesBeforeMixing")
351 
352 tobTecStepClassifier2 = TrackMVAClassifierPrompt.clone()
353 tobTecStepClassifier2.src = 'tobTecStepTracks'
354 tobTecStepClassifier2.mva.GBRForestLabel = 'MVASelectorIter0_13TeV'
355 tobTecStepClassifier2.qualityCuts = [0.0,0.0,0.0]
356 fastSim.toModify(tobTecStepClassifier2,vertices = "firstStepPrimaryVerticesBeforeMixing")
357 
359 tobTecStep = ClassifierMerger.clone()
360 tobTecStep.inputClassifiers=['tobTecStepClassifier1','tobTecStepClassifier2']
361 
362 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
363 trackingPhase1.toReplaceWith(tobTecStep, tobTecStepClassifier1.clone(
364  mva = dict(GBRForestLabel = 'MVASelectorTobTecStep_Phase1'),
365  qualityCuts = [-0.6,-0.45,-0.3],
366 ))
367 pp_on_AA_2018.toModify(tobTecStep, qualityCuts = [-0.6,-0.3,0.7])
368 
369 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
370 trackingLowPU.toReplaceWith(tobTecStep, RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
371  src = 'tobTecStepTracks',
372  useAnyMVA = cms.bool(False),
373  GBRForestLabel = cms.string('MVASelectorIter6'),
374  trackSelectors = [
375  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
376  name = 'tobTecStepLoose',
377  chi2n_par = 0.4,
378  res_par = ( 0.003, 0.001 ),
379  minNumberLayers = 5,
380  maxNumberLostLayers = 1,
381  minNumber3DLayers = 2,
382  d0_par1 = ( 2.0, 4.0 ),
383  dz_par1 = ( 1.8, 4.0 ),
384  d0_par2 = ( 2.0, 4.0 ),
385  dz_par2 = ( 1.8, 4.0 )
386  ),
387  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
388  name = 'tobTecStepTight',
389  preFilterName = 'tobTecStepLoose',
390  chi2n_par = 0.3,
391  res_par = ( 0.003, 0.001 ),
392  minNumberLayers = 5,
393  maxNumberLostLayers = 0,
394  minNumber3DLayers = 2,
395  d0_par1 = ( 1.5, 4.0 ),
396  dz_par1 = ( 1.4, 4.0 ),
397  d0_par2 = ( 1.5, 4.0 ),
398  dz_par2 = ( 1.4, 4.0 )
399  ),
400  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
401  name = 'QualityMasks',
402  preFilterName = 'tobTecStepTight',
403  chi2n_par = 0.2,
404  res_par = ( 0.003, 0.001 ),
405  minNumberLayers = 5,
406  maxNumberLostLayers = 0,
407  minNumber3DLayers = 2,
408  d0_par1 = ( 1.4, 4.0 ),
409  dz_par1 = ( 1.3, 4.0 ),
410  d0_par2 = ( 1.4, 4.0 ),
411  dz_par2 = ( 1.3, 4.0 )
412  ),
413  ] #end of vpset
414 )) #end of clone
415 
416 
417 
418 TobTecStepTask = cms.Task(tobTecStepClusters,
419  tobTecStepSeedLayersTripl,
420  tobTecStepTrackingRegionsTripl,
421  tobTecStepHitDoubletsTripl,
422  tobTecStepHitTripletsTripl,
423  tobTecStepSeedsTripl,
424  tobTecStepSeedLayersPair,
425  tobTecStepTrackingRegionsPair,
426  tobTecStepHitDoubletsPair,
427  tobTecStepSeedsPair,
428  tobTecStepSeeds,
429  tobTecStepTrackCandidates,
430  tobTecStepTracks,
431  tobTecStepClassifier1,tobTecStepClassifier2,
432  tobTecStep)
433 TobTecStep = cms.Sequence(TobTecStepTask)
434 
435 
436 ### Following are specific for LowPU, they're collected here to
437 ### not to interfere too much with the default configuration
438 # SEEDING LAYERS
439 tobTecStepSeedLayers = cms.EDProducer("SeedingLayersEDProducer",
440  layerList = cms.vstring('TOB1+TOB2',
441  'TOB1+TEC1_pos', 'TOB1+TEC1_neg',
442  'TEC1_pos+TEC2_pos', 'TEC2_pos+TEC3_pos',
443  'TEC3_pos+TEC4_pos', 'TEC4_pos+TEC5_pos',
444  'TEC5_pos+TEC6_pos', 'TEC6_pos+TEC7_pos',
445  'TEC1_neg+TEC2_neg', 'TEC2_neg+TEC3_neg',
446  'TEC3_neg+TEC4_neg', 'TEC4_neg+TEC5_neg',
447  'TEC5_neg+TEC6_neg', 'TEC6_neg+TEC7_neg'),
448  TOB = cms.PSet(
449  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
450  skipClusters = cms.InputTag('tobTecStepClusters'),
451  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTiny'))
452  ),
453  TEC = cms.PSet(
454  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
455  skipClusters = cms.InputTag('tobTecStepClusters'),
456  # untracked bool useSimpleRphiHitsCleaner = false
457  useRingSlector = cms.bool(True),
458  TTRHBuilder = cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTiny')),
459  minRing = cms.int32(5),
460  maxRing = cms.int32(5)
461  )
462 )
463 
464 trackingLowPU.toReplaceWith(TobTecStepTask,
465  cms.Task(
466  tobTecStepClusters,
467  tobTecStepSeedLayers,
468  tobTecStepTrackingRegionsPair,
469  tobTecStepHitDoubletsPair,
470  tobTecStepSeeds,
471  tobTecStepTrackCandidates,
472  tobTecStepTracks,
473  tobTecStep
474  )
475 )
476 
477 #fastsim
478 import FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
479 tobTecStepMasks = FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi.maskProducerFromClusterRemover(tobTecStepClusters)
480 fastSim.toReplaceWith(TobTecStepTask,
481  cms.Task(tobTecStepMasks
482  ,tobTecStepTrackingRegionsTripl
483  ,tobTecStepSeedsTripl
484  ,tobTecStepTrackingRegionsPair
485  ,tobTecStepSeedsPair
486  ,tobTecStepSeeds
487  ,tobTecStepTrackCandidates
488  ,tobTecStepTracks
489  ,tobTecStepClassifier1,tobTecStepClassifier2
490  ,tobTecStep
491  )
492 )
def _hitSetProducerToFactoryPSet(producer)