CMS 3D CMS Logo

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