CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PostLS1_MixedTripletStep_cff.py
Go to the documentation of this file.
2 
3 ###############################################################
4 # Large impact parameter Tracking using mixed-triplet seeding #
5 ###############################################################
6 
7 mixedTripletStepClusters = cms.EDProducer("TrackClusterRemover",
8  clusterLessSolution = cms.bool(True),
9  oldClusterRemovalInfo = cms.InputTag("detachedTripletStepClusters"),
10  trajectories = cms.InputTag("detachedTripletStepTracks"),
11  overrideTrkQuals = cms.InputTag('detachedTripletStep'),
12  TrackQuality = cms.string('highPurity'),
13  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
14  pixelClusters = cms.InputTag("siPixelClusters"),
15  stripClusters = cms.InputTag("siStripClusters"),
16  Common = cms.PSet(
17  maxChi2 = cms.double(9.0)
18  )
19 )
20 
21 # SEEDING LAYERS
22 mixedTripletStepSeedLayersA = cms.EDProducer("SeedingLayersEDProducer",
23  layerList = cms.vstring('BPix1+BPix2+BPix3',
24  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
25  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
26  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
27  'FPix1_pos+FPix2_pos+TEC1_pos', 'FPix1_neg+FPix2_neg+TEC1_neg',
28  'FPix2_pos+TEC2_pos+TEC3_pos', 'FPix2_neg+TEC2_neg+TEC3_neg'),
29  BPix = cms.PSet(
30  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedTriplets'),
31  HitProducer = cms.string('siPixelRecHits'),
32  skipClusters = cms.InputTag('mixedTripletStepClusters')
33  ),
34  FPix = cms.PSet(
35  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedTriplets'),
36  HitProducer = cms.string('siPixelRecHits'),
37  skipClusters = cms.InputTag('mixedTripletStepClusters')
38  ),
39  TEC = cms.PSet(
40  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
41  useRingSlector = cms.bool(True),
42  TTRHBuilder = cms.string('WithTrackAngle'),
43  minRing = cms.int32(1),
44  maxRing = cms.int32(1),
45  skipClusters = cms.InputTag('mixedTripletStepClusters')
46  )
47 )
48 
49 # SEEDS
51 PixelTripletLargeTipGenerator.extraHitRZtolerance = 0.0
52 PixelTripletLargeTipGenerator.extraHitRPhitolerance = 0.0
54 mixedTripletStepSeedsA = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone()
55 mixedTripletStepSeedsA.OrderedHitsFactoryPSet.SeedingLayers = 'mixedTripletStepSeedLayersA'
56 mixedTripletStepSeedsA.OrderedHitsFactoryPSet.GeneratorPSet = cms.PSet(PixelTripletLargeTipGenerator)
57 mixedTripletStepSeedsA.SeedCreatorPSet.ComponentName = 'SeedFromConsecutiveHitsTripletOnlyCreator'
58 mixedTripletStepSeedsA.RegionFactoryPSet.RegionPSet.ptMin = 0.4
59 mixedTripletStepSeedsA.RegionFactoryPSet.RegionPSet.originHalfLength = 15.0
60 mixedTripletStepSeedsA.RegionFactoryPSet.RegionPSet.originRadius = 1.5
61 
62 mixedTripletStepSeedsA.SeedComparitorPSet = cms.PSet(
63  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
64  FilterAtHelixStage = cms.bool(False),
65  FilterPixelHits = cms.bool(True),
66  FilterStripHits = cms.bool(True),
67  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
68  )
69 
70 # SEEDING LAYERS
71 mixedTripletStepSeedLayersB = cms.EDProducer("SeedingLayersEDProducer",
72  layerList = cms.vstring('BPix2+BPix3+TIB1', 'BPix2+BPix3+TIB2'),
73  BPix = cms.PSet(
74  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedTriplets'),
75  HitProducer = cms.string('siPixelRecHits'),
76  skipClusters = cms.InputTag('mixedTripletStepClusters')
77  ),
78  TIB = cms.PSet(
79  matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
80  TTRHBuilder = cms.string('WithTrackAngle'),
81  skipClusters = cms.InputTag('mixedTripletStepClusters')
82  )
83 )
84 
85 # SEEDS
87 PixelTripletLargeTipGenerator.extraHitRZtolerance = 0.0
88 PixelTripletLargeTipGenerator.extraHitRPhitolerance = 0.0
90 mixedTripletStepSeedsB = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone()
91 mixedTripletStepSeedsB.OrderedHitsFactoryPSet.SeedingLayers = 'mixedTripletStepSeedLayersB'
92 mixedTripletStepSeedsB.OrderedHitsFactoryPSet.GeneratorPSet = cms.PSet(PixelTripletLargeTipGenerator)
93 mixedTripletStepSeedsB.SeedCreatorPSet.ComponentName = 'SeedFromConsecutiveHitsTripletOnlyCreator'
94 mixedTripletStepSeedsB.RegionFactoryPSet.RegionPSet.ptMin = 0.6
95 mixedTripletStepSeedsB.RegionFactoryPSet.RegionPSet.originHalfLength = 10.0
96 mixedTripletStepSeedsB.RegionFactoryPSet.RegionPSet.originRadius = 1.5
97 
98 mixedTripletStepSeedsB.SeedComparitorPSet = cms.PSet(
99  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
100  FilterAtHelixStage = cms.bool(False),
101  FilterPixelHits = cms.bool(True),
102  FilterStripHits = cms.bool(True),
103  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
104  )
105 
107 mixedTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalCombinedSeeds_cfi.globalCombinedSeeds.clone()
108 mixedTripletStepSeeds.seedCollections = cms.VInputTag(
109  cms.InputTag('mixedTripletStepSeedsA'),
110  cms.InputTag('mixedTripletStepSeedsB'),
111  )
112 
113 # QUALITY CUTS DURING TRACK BUILDING
114 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
115 mixedTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
116  ComponentName = 'mixedTripletStepTrajectoryFilter',
117  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
118  maxLostHits = 0,
119  minimumNumberOfHits = 3,
120  minPt = 0.1
121  )
122  )
123 
124 # Propagator taking into account momentum uncertainty in multiple scattering calculation.
126 mixedTripletStepPropagator = TrackingTools.MaterialEffects.MaterialPropagator_cfi.MaterialPropagator.clone(
127  ComponentName = 'mixedTripletStepPropagator',
128  ptMin = 0.1
129  )
131 mixedTripletStepPropagatorOpposite = TrackingTools.MaterialEffects.OppositeMaterialPropagator_cfi.OppositeMaterialPropagator.clone(
132  ComponentName = 'mixedTripletStepPropagatorOpposite',
133  ptMin = 0.1
134  )
135 
137 mixedTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
138  ComponentName = cms.string('mixedTripletStepChi2Est'),
139  nSigma = cms.double(3.0),
140  MaxChi2 = cms.double(16.0)
141 )
142 
143 # TRACK BUILDING
145 mixedTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
146  ComponentName = 'mixedTripletStepTrajectoryBuilder',
147  MeasurementTrackerName = '',
148  trajectoryFilterName = 'mixedTripletStepTrajectoryFilter',
149  propagatorAlong = cms.string('mixedTripletStepPropagator'),
150  propagatorOpposite = cms.string('mixedTripletStepPropagatorOpposite'),
151  clustersToSkip = cms.InputTag('mixedTripletStepClusters'),
152  maxCand = 2,
153  estimator = cms.string('mixedTripletStepChi2Est'),
154  maxDPhiForLooperReconstruction = cms.double(2.0),
155  maxPtForLooperReconstruction = cms.double(0.7)
156  )
157 
158 # MAKING OF TRACK CANDIDATES
160 mixedTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
161  src = cms.InputTag('mixedTripletStepSeeds'),
162  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
163  numHitsForSeedCleaner = cms.int32(50),
164  #onlyPixelHitsForSeedCleaner = cms.bool(True),
165 
166  TrajectoryBuilder = 'mixedTripletStepTrajectoryBuilder',
167  doSeedingRegionRebuilding = True,
168  useHitsSplitting = True
169 )
170 
171 
172 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
173 mixedTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
174  ComponentName = cms.string('mixedTripletStepTrajectoryCleanerBySharedHits'),
175  fractionShared = cms.double(0.11),
176  allowSharedFirstHit = cms.bool(True)
177  )
178 mixedTripletStepTrackCandidates.TrajectoryCleaner = 'mixedTripletStepTrajectoryCleanerBySharedHits'
179 
180 
181 # TRACK FITTING
183 mixedTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
184  AlgorithmName = cms.string('iter4'),
185  src = 'mixedTripletStepTrackCandidates',
186  Fitter = cms.string('FlexibleKFFittingSmoother')
187 )
188 
189 # TRACK SELECTION AND QUALITY FLAG SETTING.
190 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
191 mixedTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
192  src='mixedTripletStepTracks',
193  trackSelectors= cms.VPSet(
194  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
195  name = 'mixedTripletStepVtxLoose',
196  chi2n_par = 1.0,
197  res_par = ( 0.003, 0.001 ),
198  minNumberLayers = 3,
199  maxNumberLostLayers = 1,
200  minNumber3DLayers = 2,
201  d0_par1 = ( 1.2, 3.0 ),
202  dz_par1 = ( 1.2, 3.0 ),
203  d0_par2 = ( 1.3, 3.0 ),
204  dz_par2 = ( 1.3, 3.0 )
205  ),
206  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
207  name = 'mixedTripletStepTrkLoose',
208  chi2n_par = 0.6,
209  res_par = ( 0.003, 0.001 ),
210  minNumberLayers = 4,
211  maxNumberLostLayers = 1,
212  minNumber3DLayers = 3,
213  d0_par1 = ( 1.1, 4.0 ),
214  dz_par1 = ( 1.1, 4.0 ),
215  d0_par2 = ( 1.1, 4.0 ),
216  dz_par2 = ( 1.1, 4.0 )
217  ),
218  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
219  name = 'mixedTripletStepVtxTight',
220  preFilterName = 'mixedTripletStepVtxLoose',
221  chi2n_par = 0.6,
222  res_par = ( 0.003, 0.001 ),
223  minNumberLayers = 3,
224  maxNumberLostLayers = 1,
225  minNumber3DLayers = 3,
226  d0_par1 = ( 1.1, 3.0 ),
227  dz_par1 = ( 1.1, 3.0 ),
228  d0_par2 = ( 1.2, 3.0 ),
229  dz_par2 = ( 1.2, 3.0 )
230  ),
231  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
232  name = 'mixedTripletStepTrkTight',
233  preFilterName = 'mixedTripletStepTrkLoose',
234  chi2n_par = 0.4,
235  res_par = ( 0.003, 0.001 ),
236  minNumberLayers = 5,
237  maxNumberLostLayers = 1,
238  minNumber3DLayers = 4,
239  d0_par1 = ( 1.0, 4.0 ),
240  dz_par1 = ( 1.0, 4.0 ),
241  d0_par2 = ( 1.0, 4.0 ),
242  dz_par2 = ( 1.0, 4.0 )
243  ),
244  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
245  name = 'mixedTripletStepVtx',
246  preFilterName = 'mixedTripletStepVtxTight',
247  chi2n_par = 0.4,
248  res_par = ( 0.003, 0.001 ),
249  minNumberLayers = 3,
250  maxNumberLostLayers = 1,
251  minNumber3DLayers = 3,
252  max_minMissHitOutOrIn = 1,
253  max_lostHitFraction = 1.0,
254  d0_par1 = ( 1.0, 3.0 ),
255  dz_par1 = ( 1.0, 3.0 ),
256  d0_par2 = ( 1.1, 3.0 ),
257  dz_par2 = ( 1.1, 3.0 )
258  ),
259  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
260  name = 'mixedTripletStepTrk',
261  preFilterName = 'mixedTripletStepTrkTight',
262  chi2n_par = 0.25,
263  res_par = ( 0.003, 0.001 ),
264  minNumberLayers = 5,
265  maxNumberLostLayers = 0,
266  minNumber3DLayers = 4,
267  max_minMissHitOutOrIn = 1,
268  max_lostHitFraction = 1.0,
269  d0_par1 = ( 0.8, 4.0 ),
270  dz_par1 = ( 0.8, 4.0 ),
271  d0_par2 = ( 0.8, 4.0 ),
272  dz_par2 = ( 0.8, 4.0 )
273  )
274  ) #end of vpset
275  ) #end of clone
276 
277 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
278 mixedTripletStep = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
279  TrackProducers = cms.VInputTag(cms.InputTag('mixedTripletStepTracks'),
280  cms.InputTag('mixedTripletStepTracks')),
281  hasSelector=cms.vint32(1,1),
282  shareFrac=cms.double(0.11),
283  indivShareFrac=cms.vdouble(0.11,0.11),
284  selectedTrackQuals = cms.VInputTag(cms.InputTag("mixedTripletStepSelector","mixedTripletStepVtx"),
285  cms.InputTag("mixedTripletStepSelector","mixedTripletStepTrk")),
286  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1), pQual=cms.bool(True) )),
287  writeOnlyTrkQuals=cms.bool(True)
288 )
289 
290 
291 MixedTripletStep = cms.Sequence(mixedTripletStepClusters*
292  mixedTripletStepSeedLayersA*
293  mixedTripletStepSeedsA*
294  mixedTripletStepSeedLayersB*
295  mixedTripletStepSeedsB*
296  mixedTripletStepSeeds*
297  mixedTripletStepTrackCandidates*
298  mixedTripletStepTracks*
299  mixedTripletStepSelector*
300  mixedTripletStep)