CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelLessStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
3 
4 from Configuration.Eras.Modifier_fastSim_cff import fastSim
5 
6 #for dnn classifier
7 from Configuration.ProcessModifiers.trackdnn_cff import trackdnn
8 from RecoTracker.IterativeTracking.dnnQualityCuts import qualityCutDictionary
9 
10 # for no-loopers
11 from Configuration.ProcessModifiers.trackingNoLoopers_cff import trackingNoLoopers
12 
13 ##########################################################################
14 # Large impact parameter tracking using TIB/TID/TEC stereo layer seeding #
15 ##########################################################################
16 
17 pixelLessStepClusters = _cfg.clusterRemoverForIter('PixelLessStep')
18 for _eraName, _postfix, _era in _cfg.nonDefaultEras():
19  _era.toReplaceWith(pixelLessStepClusters, _cfg.clusterRemoverForIter('PixelLessStep', _eraName, _postfix))
20 
21 
22 
23 # SEEDING LAYERS
26 
27 pixelLessStepSeedLayers = _mod.seedingLayersEDProducer.clone(
28  layerList = [
29  #TIB
30  'TIB1+TIB2+MTIB3','TIB1+TIB2+MTIB4',
31  #TIB+TID
32  'TIB1+TIB2+MTID1_pos','TIB1+TIB2+MTID1_neg',
33  #TID
34  'TID1_pos+TID2_pos+TID3_pos','TID1_neg+TID2_neg+TID3_neg',#ring 1-2 (matched)
35  'TID1_pos+TID2_pos+MTID3_pos','TID1_neg+TID2_neg+MTID3_neg',#ring 3 (mono)
36  'TID1_pos+TID2_pos+MTEC1_pos','TID1_neg+TID2_neg+MTEC1_neg',
37  #TID+TEC RING 1-3
38  'TID2_pos+TID3_pos+TEC1_pos','TID2_neg+TID3_neg+TEC1_neg',#ring 1-2 (matched)
39  'TID2_pos+TID3_pos+MTEC1_pos','TID2_neg+TID3_neg+MTEC1_neg',#ring 3 (mono)
40  #TEC RING 1-3
41  'TEC1_pos+TEC2_pos+TEC3_pos', 'TEC1_neg+TEC2_neg+TEC3_neg',
42  'TEC1_pos+TEC2_pos+MTEC3_pos','TEC1_neg+TEC2_neg+MTEC3_neg',
43  'TEC1_pos+TEC2_pos+TEC4_pos', 'TEC1_neg+TEC2_neg+TEC4_neg',
44  'TEC1_pos+TEC2_pos+MTEC4_pos','TEC1_neg+TEC2_neg+MTEC4_neg',
45  'TEC2_pos+TEC3_pos+TEC4_pos', 'TEC2_neg+TEC3_neg+TEC4_neg',
46  'TEC2_pos+TEC3_pos+MTEC4_pos','TEC2_neg+TEC3_neg+MTEC4_neg',
47  'TEC2_pos+TEC3_pos+TEC5_pos', 'TEC2_neg+TEC3_neg+TEC5_neg',
48  'TEC2_pos+TEC3_pos+TEC6_pos', 'TEC2_neg+TEC3_neg+TEC6_neg',
49  'TEC3_pos+TEC4_pos+TEC5_pos', 'TEC3_neg+TEC4_neg+TEC5_neg',
50  'TEC3_pos+TEC4_pos+MTEC5_pos','TEC3_neg+TEC4_neg+MTEC5_neg',
51  'TEC3_pos+TEC5_pos+TEC6_pos', 'TEC3_neg+TEC5_neg+TEC6_neg',
52  'TEC4_pos+TEC5_pos+TEC6_pos', 'TEC4_neg+TEC5_neg+TEC6_neg'
53  ],
54  TIB = dict(
55  TTRHBuilder = cms.string('WithTrackAngle'),
56  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
57  matchedRecHits = cms.InputTag('siStripMatchedRecHits','matchedRecHit'),
58  skipClusters = cms.InputTag('pixelLessStepClusters')
59  ),
60  MTIB = dict(
61  TTRHBuilder = cms.string('WithTrackAngle'),
62  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
63  skipClusters = cms.InputTag('pixelLessStepClusters'),
64  rphiRecHits = cms.InputTag('siStripMatchedRecHits','rphiRecHit')
65  ),
66  TID = dict(
67  matchedRecHits = cms.InputTag('siStripMatchedRecHits','matchedRecHit'),
68  skipClusters = cms.InputTag('pixelLessStepClusters'),
69  useRingSlector = cms.bool(True),
70  TTRHBuilder = cms.string('WithTrackAngle'),
71  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
72  minRing = cms.int32(1),
73  maxRing = cms.int32(2)
74  ),
75  MTID = dict(
76  rphiRecHits = cms.InputTag('siStripMatchedRecHits','rphiRecHit'),
77  skipClusters = cms.InputTag('pixelLessStepClusters'),
78  useRingSlector = cms.bool(True),
79  TTRHBuilder = cms.string('WithTrackAngle'),
80  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
81  minRing = cms.int32(3),
82  maxRing = cms.int32(3)
83  ),
84  TEC = dict(
85  matchedRecHits = cms.InputTag('siStripMatchedRecHits','matchedRecHit'),
86  skipClusters = cms.InputTag('pixelLessStepClusters'),
87  useRingSlector = cms.bool(True),
88  TTRHBuilder = cms.string('WithTrackAngle'),
89  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
90  minRing = cms.int32(1),
91  maxRing = cms.int32(2)
92  ),
93  MTEC = dict(
94  rphiRecHits = cms.InputTag('siStripMatchedRecHits','rphiRecHit'),
95  skipClusters = cms.InputTag('pixelLessStepClusters'),
96  useRingSlector = cms.bool(True),
97  TTRHBuilder = cms.string('WithTrackAngle'),
98  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight')),
99  minRing = cms.int32(3),
100  maxRing = cms.int32(3)
101  )
102 )
103 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
104 trackingLowPU.toModify(pixelLessStepSeedLayers,
105  layerList = [
106  'TIB1+TIB2',
107  'TID1_pos+TID2_pos','TID2_pos+TID3_pos',
108  'TEC1_pos+TEC2_pos','TEC2_pos+TEC3_pos','TEC3_pos+TEC4_pos','TEC3_pos+TEC5_pos','TEC4_pos+TEC5_pos',
109  'TID1_neg+TID2_neg','TID2_neg+TID3_neg',
110  'TEC1_neg+TEC2_neg','TEC2_neg+TEC3_neg','TEC3_neg+TEC4_neg','TEC3_neg+TEC5_neg','TEC4_neg+TEC5_neg'
111  ],
112  TIB = dict(clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTiny')),
113  TID = dict(clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTiny')),
114  TEC = dict(clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTiny')),
115  MTIB = None,
116  MTID = None,
117  MTEC = None,
118 )
119 from Configuration.ProcessModifiers.vectorHits_cff import vectorHits
120 vectorHits.toModify(pixelLessStepSeedLayers,
121  layerList = [
122  'TOB1+TOB2', 'TOB2+TOB3',
123 # 'TOB3+TOB4', 'TOB4+TOB5',
124  'TID1_pos+TID2_pos', 'TID1_neg+TID2_neg'
125  ],
126  TOB = dict(
127  TTRHBuilder = cms.string('WithTrackAngle'),
128  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone')),
129  vectorRecHits = cms.InputTag("siPhase2VectorHits", 'vectorHitsAccepted'),
130  skipClusters = cms.InputTag('pixelLessStepClusters')
131  ),
132  TIB = None,
133  TID = dict(
134  clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutNone'),
135  vectorRecHits = cms.InputTag("siPhase2VectorHits", 'accepted'),
136  maxRing = 8
137  ),
138  TEC = None,
139  MTIB = None,
140  MTID = None,
141  MTEC = None,
142 )
143 # TrackingRegion
144 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpotFixedZ_cfi import globalTrackingRegionFromBeamSpotFixedZ as _globalTrackingRegionFromBeamSpotFixedZ
145 pixelLessStepTrackingRegions = _globalTrackingRegionFromBeamSpotFixedZ.clone(
146  RegionPSet = dict(
147  ptMin = 0.4,
148  originHalfLength = 12.0,
149  originRadius = 1.0)
150 )
151 trackingLowPU.toModify(pixelLessStepTrackingRegions, RegionPSet = dict(
152  ptMin = 0.7,
153  originHalfLength = 10.0,
154  originRadius = 2.0,
155 ))
156 
157 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
158 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
159 from RecoTracker.IterativeTracking.MixedTripletStep_cff import _mixedTripletStepTrackingRegionsCommon_pp_on_HI
160 (pp_on_XeXe_2017 | pp_on_AA).toReplaceWith(pixelLessStepTrackingRegions,
161  _mixedTripletStepTrackingRegionsCommon_pp_on_HI.clone(RegionPSet=dict(
162  ptMinScaling4BigEvts = False,
163  fixedError = 3.0,
164  ptMin = 2.0,
165  originRadius = 1.0 )
166  )
167 )
168 
169 
170 # seeding
171 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import ClusterShapeHitFilterESProducer as _ClusterShapeHitFilterESProducer
172 pixelLessStepClusterShapeHitFilter = _ClusterShapeHitFilterESProducer.clone(
173  ComponentName = 'pixelLessStepClusterShapeHitFilter',
174  doStripShapeCut = cms.bool(False),
175  clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTight')
176 )
177 
178 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
179 pixelLessStepHitDoublets = _hitPairEDProducer.clone(
180  seedingLayers = 'pixelLessStepSeedLayers',
181  trackingRegions = 'pixelLessStepTrackingRegions',
182  maxElement = 50000000,
183  produceIntermediateHitDoublets = True,
184 )
185 from RecoTracker.TkSeedGenerator.multiHitFromChi2EDProducer_cfi import multiHitFromChi2EDProducer as _multiHitFromChi2EDProducer
186 pixelLessStepHitTriplets = _multiHitFromChi2EDProducer.clone(
187  doublets = 'pixelLessStepHitDoublets',
188 )
189 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer_cff import seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer as _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer
190 from RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeSeedFilter_cfi import StripSubClusterShapeSeedFilter as _StripSubClusterShapeSeedFilter
191 pixelLessStepSeeds = _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer.clone(
192  seedingHitSets = 'pixelLessStepHitTriplets',
193  SeedComparitorPSet = dict(
194  ComponentName = 'CombinedSeedComparitor',
195  mode = cms.string('and'),
196  comparitors = cms.VPSet(
197  cms.PSet(# FIXME: is this defined in any cfi that could be imported instead of copy-paste?
198  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
199  FilterAtHelixStage = cms.bool(True),
200  FilterPixelHits = cms.bool(False),
201  FilterStripHits = cms.bool(True),
202  ClusterShapeHitFilterName = cms.string('pixelLessStepClusterShapeHitFilter'),
203  ClusterShapeCacheSrc = cms.InputTag('siPixelClusterShapeCache') # not really needed here since FilterPixelHits=False
204  ),
205  _StripSubClusterShapeSeedFilter.clone()
206  )
207  )
208 )
209 trackingLowPU.toModify(pixelLessStepHitDoublets, produceSeedingHitSets=True, produceIntermediateHitDoublets=False)
210 trackingLowPU.toModify(pixelLessStepSeeds,
211  seedingHitSets = 'pixelLessStepHitDoublets',
212  SeedComparitorPSet = dict(# FIXME: is this defined in any cfi that could be imported instead of copy-paste?
213  ComponentName = 'PixelClusterShapeSeedComparitor',
214  FilterAtHelixStage = cms.bool(True),
215  FilterPixelHits = cms.bool(False),
216  FilterStripHits = cms.bool(True),
217  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter'),
218  ClusterShapeCacheSrc = cms.InputTag('siPixelClusterShapeCache') # not really needed here since FilterPixelHits=False
219  )
220 )
221 #fastsim
222 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
223 from FastSimulation.Tracking.SeedingMigration import _hitSetProducerToFactoryPSet
224 _fastSim_pixelLessStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
225  trackingRegions = 'pixelLessStepTrackingRegions',
226  hitMasks = cms.InputTag('pixelLessStepMasks'),
227  seedFinderSelector = dict( MultiHitGeneratorFactory = _hitSetProducerToFactoryPSet(pixelLessStepHitTriplets).clone(
228  refitHits = False),
229  layerList = pixelLessStepSeedLayers.layerList.value()
230 ))
231 fastSim.toReplaceWith(pixelLessStepSeeds,_fastSim_pixelLessStepSeeds)
232 
233 vectorHits.toModify(pixelLessStepHitDoublets, produceSeedingHitSets=True, produceIntermediateHitDoublets=False)
234 vectorHits.toModify(pixelLessStepSeeds,
235  seedingHitSets = "pixelLessStepHitDoublets",
236  SeedComparitorPSet = dict(
237  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter'),
238  FilterAtHelixStage = cms.bool(False),
239  FilterStripHits = cms.bool(False),
240  )
241 )
242 
243 # QUALITY CUTS DURING TRACK BUILDING
245 _pixelLessStepTrajectoryFilterBase = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
246  maxLostHits = 0,
247  minimumNumberOfHits = 4,
248  minPt = 0.1
249 )
250 pixelLessStepTrajectoryFilter = _pixelLessStepTrajectoryFilterBase.clone(
251  seedPairPenalty = 1,
252 )
253 trackingLowPU.toReplaceWith(pixelLessStepTrajectoryFilter, _pixelLessStepTrajectoryFilterBase)
254 (pp_on_XeXe_2017 | pp_on_AA).toModify(pixelLessStepTrajectoryFilter, minPt=2.0)
255 
256 vectorHits.toReplaceWith(pixelLessStepTrajectoryFilter, _pixelLessStepTrajectoryFilterBase)
257 vectorHits.toModify(pixelLessStepTrajectoryFilter, minimumNumberOfHits = 4, maxLostHits = 1)
258 
259 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
260 pixelLessStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
261  ComponentName = 'pixelLessStepChi2Est',
262  nSigma = 3.0,
263  MaxChi2 = 16.0,
264  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight'))
265 )
266 trackingLowPU.toModify(pixelLessStepChi2Est,
267  clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutTiny')
268 )
269 
270 vectorHits.toModify(pixelLessStepChi2Est,
271  clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutNone'),
272  MaxChi2 = 30.0
273 )
274 
275 # TRACK BUILDING
277 pixelLessStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
278  trajectoryFilter = dict(refToPSet_ = 'pixelLessStepTrajectoryFilter'),
279  minNrOfHitsForRebuild = 4,
280  maxCand = 2,
281  alwaysUseInvalidHits = False,
282  estimator = 'pixelLessStepChi2Est',
283  maxDPhiForLooperReconstruction = 2.0,
284  maxPtForLooperReconstruction = 0.7,
285 )
286 trackingNoLoopers.toModify(pixelLessStepTrajectoryBuilder,
287  maxPtForLooperReconstruction = 0.0)
288 
289 # MAKING OF TRACK CANDIDATES
291 # Give handle for CKF for HI
292 _pixelLessStepTrackCandidatesCkf = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
293  src = 'pixelLessStepSeeds',
294  clustersToSkip = 'pixelLessStepClusters',
295  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
296  numHitsForSeedCleaner = 50,
297  #onlyPixelHitsForSeedCleaner = True,
298  TrajectoryBuilderPSet = dict(refToPSet_ = 'pixelLessStepTrajectoryBuilder'),
299  TrajectoryCleaner = 'pixelLessStepTrajectoryCleanerBySharedHits',
300 )
301 pixelLessStepTrackCandidates = _pixelLessStepTrackCandidatesCkf.clone()
302 
303 from Configuration.ProcessModifiers.trackingMkFitPixelLessStep_cff import trackingMkFitPixelLessStep
304 import RecoTracker.MkFit.mkFitSeedConverter_cfi as mkFitSeedConverter_cfi
305 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi as mkFitIterationConfigESProducer_cfi
306 import RecoTracker.MkFit.mkFitProducer_cfi as mkFitProducer_cfi
307 import RecoTracker.MkFit.mkFitOutputConverter_cfi as mkFitOutputConverter_cfi
308 pixelLessStepTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
309  seeds = 'pixelLessStepSeeds',
310 )
311 pixelLessStepTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
312  ComponentName = 'pixelLessStepTrackCandidatesMkFitConfig',
313  config = 'RecoTracker/MkFit/data/mkfit-phase1-pixelLessStep.json',
314 )
315 pixelLessStepTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
316  seeds = 'pixelLessStepTrackCandidatesMkFitSeeds',
317  config = ('', 'pixelLessStepTrackCandidatesMkFitConfig'),
318  clustersToSkip = 'pixelLessStepClusters',
319 )
320 trackingMkFitPixelLessStep.toReplaceWith(pixelLessStepTrackCandidates, mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
321  seeds = 'pixelLessStepSeeds',
322  mkFitSeeds = 'pixelLessStepTrackCandidatesMkFitSeeds',
323  tracks = 'pixelLessStepTrackCandidatesMkFit',
324 ))
325 
326 import FastSimulation.Tracking.TrackCandidateProducer_cfi
327 fastSim.toReplaceWith(pixelLessStepTrackCandidates,
328  FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
329  src = 'pixelLessStepSeeds',
330  MinNumberOfCrossedLayers = 6, # ?
331  hitMasks = cms.InputTag('pixelLessStepMasks')
332  )
333 )
334 
335 vectorHits.toModify(pixelLessStepTrackCandidates,
336  phase2clustersToSkip = 'pixelLessStepClusters',
337  clustersToSkip = ''
338 )
339 
340 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
341 pixelLessStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
342  ComponentName = 'pixelLessStepTrajectoryCleanerBySharedHits',
343  fractionShared = 0.11,
344  allowSharedFirstHit = True
345 )
346 trackingLowPU.toModify(pixelLessStepTrajectoryCleanerBySharedHits, fractionShared = 0.19)
347 
348 
349 # TRACK FITTING
351 pixelLessStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
352  src = 'pixelLessStepTrackCandidates',
353  AlgorithmName = 'pixelLessStep',
354  Fitter = 'FlexibleKFFittingSmoother'
355 )
356 fastSim.toModify(pixelLessStepTracks, TTRHBuilder = 'WithoutRefit')
357 
358 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
359 phase2_timing_layer.toModify(pixelLessStepTracks, TrajectoryInEvent = True)
360 
361 # TRACK SELECTION AND QUALITY FLAG SETTING.
364 pixelLessStepClassifier1 = TrackMVAClassifierPrompt.clone(
365  src = 'pixelLessStepTracks',
366  mva = dict(GBRForestLabel = 'MVASelectorIter5_13TeV'),
367  qualityCuts = [-0.4,0.0,0.4]
368 )
369 fastSim.toModify(pixelLessStepClassifier1, vertices = 'firstStepPrimaryVerticesBeforeMixing' )
370 
371 pixelLessStepClassifier2 = TrackMVAClassifierPrompt.clone(
372  src = 'pixelLessStepTracks',
373  mva = dict(GBRForestLabel = 'MVASelectorIter0_13TeV'),
374  qualityCuts = [-0.0,0.0,0.0]
375 )
376 fastSim.toModify(pixelLessStepClassifier2, vertices = 'firstStepPrimaryVerticesBeforeMixing' )
377 
379 pixelLessStep = ClassifierMerger.clone(
380  inputClassifiers=['pixelLessStepClassifier1','pixelLessStepClassifier2']
381 )
382 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
383 
384 trackingPhase1.toReplaceWith(pixelLessStep, pixelLessStepClassifier1.clone(
385  mva = dict(GBRForestLabel = 'MVASelectorPixelLessStep_Phase1'),
386  qualityCuts = [-0.4,0.0,0.4]
387 ))
388 
392 trackdnn.toReplaceWith(pixelLessStep, trackTfClassifier.clone(
393  src = 'pixelLessStepTracks',
394  qualityCuts = qualityCutDictionary.PixelLessStep.value()
395 ))
396 (trackdnn & fastSim).toModify(pixelLessStep,vertices = 'firstStepPrimaryVerticesBeforeMixing')
397 
398 pp_on_AA.toModify(pixelLessStep, qualityCuts = [-0.4,0.0,0.8])
399 
400 # For LowPU
401 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
402 pixelLessStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
403  src='pixelLessStepTracks',
404  useAnyMVA = cms.bool(False),
405  GBRForestLabel = cms.string('MVASelectorIter5'),
406  trackSelectors = cms.VPSet(
407  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
408  name = 'pixelLessStepLoose',
409  chi2n_par = 0.5,
410  res_par = ( 0.003, 0.001 ),
411  minNumberLayers = 4,
412  maxNumberLostLayers = 1,
413  minNumber3DLayers = 3,
414  d0_par1 = ( 1.3, 4.0 ),
415  dz_par1 = ( 1.3, 4.0 ),
416  d0_par2 = ( 1.3, 4.0 ),
417  dz_par2 = ( 1.3, 4.0 )
418  ),
419  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
420  name = 'pixelLessStepTight',
421  preFilterName = 'pixelLessStepLoose',
422  chi2n_par = 0.35,
423  res_par = ( 0.003, 0.001 ),
424  minNumberLayers = 4,
425  maxNumberLostLayers = 0,
426  minNumber3DLayers = 3,
427  d0_par1 = ( 1.1, 4.0 ),
428  dz_par1 = ( 1.1, 4.0 ),
429  d0_par2 = ( 1.1, 4.0 ),
430  dz_par2 = ( 1.1, 4.0 )
431  ),
432  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
433  name = 'QualityMasks',
434  preFilterName = 'pixelLessStepTight',
435  chi2n_par = 0.2,
436  res_par = ( 0.003, 0.001 ),
437  minNumberLayers = 4,
438  maxNumberLostLayers = 0,
439  minNumber3DLayers = 3,
440  d0_par1 = ( 0.9, 4.0 ),
441  dz_par1 = ( 0.9, 4.0 ),
442  d0_par2 = ( 0.9, 4.0 ),
443  dz_par2 = ( 0.9, 4.0 )
444  ),
445  ),
446  vertices = 'pixelVertices'#end of vpset
447 ) #end of clone
448 
449 vectorHits.toModify(pixelLessStepSelector,
450  GBRForestLabel = None,
451  useAnyMVA = None,
452  trackSelectors= cms.VPSet(
453  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
454  name = 'pixelLessStepLoose',
455  chi2n_par = 1.0,
456  res_par = ( 0.003, 0.001 ),
457  minNumberLayers = 0,
458  maxNumberLostLayers = 1,
459  minNumber3DLayers = 0,
460  d0_par1 = ( 0.9, 4.0 ),
461  dz_par1 = ( 0.9, 4.0 ),
462  d0_par2 = ( 1.0, 4.0 ),
463  dz_par2 = ( 1.0, 4.0 )
464  ),
465  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
466  name = 'pixelLessStepTight',
467  preFilterName = 'pixelLessStepLoose',
468  chi2n_par = 0.35,
469  res_par = ( 0.003, 0.001 ),
470  minNumberLayers = 4,
471  maxNumberLostLayers = 0,
472  minNumber3DLayers = 3,
473  d0_par1 = ( 1.1, 4.0 ),
474  dz_par1 = ( 1.1, 4.0 ),
475  d0_par2 = ( 1.1, 4.0 ),
476  dz_par2 = ( 1.1, 4.0 )
477  ),
478  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
479  name = 'QualityMasks',
480  preFilterName = 'pixelLessStepTight',
481  chi2n_par = 0.2,
482  res_par = ( 0.003, 0.001 ),
483  minNumberLayers = 1,
484  maxNumberLostLayers = 2,
485  minNumber3DLayers = 0,
486  d0_par1 = ( 100., 4.0 ),
487  dz_par1 = ( 100., 4.0 ),
488  d0_par2 = ( 100., 4.0 ),
489  dz_par2 = ( 100., 4.0 )
490  ),
491  ),
492  vertices = 'firstStepPrimaryVertices'
493 )
494 
495 vectorHits.toModify(pixelLessStepSelector.trackSelectors[2], name = 'pixelLessStep')
496 
497 
498 PixelLessStepTask = cms.Task(pixelLessStepClusters,
499  pixelLessStepSeedLayers,
500  pixelLessStepTrackingRegions,
501  pixelLessStepHitDoublets,
502  pixelLessStepHitTriplets,
503  pixelLessStepSeeds,
504  pixelLessStepTrackCandidates,
505  pixelLessStepTracks,
506  pixelLessStepClassifier1,pixelLessStepClassifier2,
507  pixelLessStep)
508 PixelLessStep = cms.Sequence(PixelLessStepTask)
509 
510 _PixelLessStepTask_trackingMkFit = PixelLessStepTask.copy()
511 _PixelLessStepTask_trackingMkFit.add(pixelLessStepTrackCandidatesMkFitSeeds, pixelLessStepTrackCandidatesMkFit, pixelLessStepTrackCandidatesMkFit)
512 trackingMkFitPixelLessStep.toReplaceWith(PixelLessStepTask, _PixelLessStepTask_trackingMkFit)
513 
514 _PixelLessStepTask_LowPU = PixelLessStepTask.copyAndExclude([pixelLessStepHitTriplets, pixelLessStepClassifier1, pixelLessStepClassifier2])
515 _PixelLessStepTask_LowPU.replace(pixelLessStep, pixelLessStepSelector)
516 trackingLowPU.toReplaceWith(PixelLessStepTask, _PixelLessStepTask_LowPU)
517 #fastsim
518 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi import maskProducerFromClusterRemover
519 pixelLessStepMasks = maskProducerFromClusterRemover(pixelLessStepClusters)
520 fastSim.toReplaceWith(PixelLessStepTask,
521  cms.Task(pixelLessStepMasks
522  ,pixelLessStepTrackingRegions
523  ,pixelLessStepSeeds
524  ,pixelLessStepTrackCandidates
525  ,pixelLessStepTracks
526  ,pixelLessStepClassifier1,pixelLessStepClassifier2
527  ,pixelLessStep
528  )
529 )
531 from RecoTracker.TkSeedGenerator.SeedingOTEDProducer_cfi import SeedingOTEDProducer as _SeedingOTEDProducer
532 pixelLessStepSeeds_vectorHits = _SeedingOTEDProducer.clone()
533 
534 _PixelLessStepTask_vectorHits = cms.Task(siPhase2VectorHits,
535  pixelLessStepClusters,
536  pixelLessStepSeeds,
537  pixelLessStepTrackCandidates,
538  pixelLessStepTracks,
539  pixelLessStepSelector)
540 _PixelLessStep_vectorHits = cms.Sequence(_PixelLessStepTask_vectorHits)
541 vectorHits.toReplaceWith(pixelLessStepSeeds,pixelLessStepSeeds_vectorHits)
542 vectorHits.toReplaceWith(PixelLessStepTask, _PixelLessStepTask_vectorHits)
543 vectorHits.toReplaceWith(PixelLessStep, _PixelLessStep_vectorHits)
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135