CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU70_LowPtQuadStep_cff.py
Go to the documentation of this file.
2 
3 # NEW CLUSTERS (remove previously used clusters)
5 lowPtQuadStepClusters = trackClusterRemover.clone(
6  maxChi2 = cms.double(9.0),
7  trajectories = cms.InputTag("highPtTripletStepTracks"),
8  pixelClusters = cms.InputTag("siPixelClusters"),
9  stripClusters = cms.InputTag("siStripClusters"),
10  overrideTrkQuals = cms.InputTag('highPtTripletStepSelector','highPtTripletStep'),
11  TrackQuality = cms.string('highPurity'),
12  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
13 )
14 
15 # SEEDING LAYERS
17 lowPtQuadStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
18  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
19  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
20  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
21  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
22  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
23  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
24  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg')
25  )
26 lowPtQuadStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtQuadStepClusters')
27 lowPtQuadStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtQuadStepClusters')
28 
29 # SEEDS
31 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
32 from RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff import PixelSeedMergerQuadruplets
33 lowPtQuadStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
34  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
35  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
36  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
37  ptMin = 0.2,
38  originRadius = 0.02,
39  nSigmaZ = 4.0
40  )
41  ),
42  SeedMergerPSet = cms.PSet(
43  layerList = PixelSeedMergerQuadruplets,
44  addRemainingTriplets = cms.bool(False),
45  mergeTriplets = cms.bool(True),
46  ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
47  )
48 )
49 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtQuadStepSeedLayers'
50 
52 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
53 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
54 lowPtQuadStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
55 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
56 
57 # QUALITY CUTS DURING TRACK BUILDING
59 lowPtQuadStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
60  minimumNumberOfHits = 3,
61  minPt = 0.075
62  )
63 
65 # Composite filter
66 lowPtQuadStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
67  filters = [cms.PSet(refToPSet_ = cms.string('lowPtQuadStepStandardTrajectoryFilter')),
68  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
69  )
70 
72 lowPtQuadStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
73  ComponentName = cms.string('lowPtQuadStepChi2Est'),
74  nSigma = cms.double(3.0),
75  MaxChi2 = cms.double(25.0)
76 )
77 
78 # TRACK BUILDING
80 lowPtQuadStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
81  MeasurementTrackerName = '',
82  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtQuadStepTrajectoryFilter')),
83  clustersToSkip = cms.InputTag('lowPtQuadStepClusters'),
84  maxCand = 4,
85  estimator = cms.string('lowPtQuadStepChi2Est'),
86  maxDPhiForLooperReconstruction = cms.double(2.0),
87  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
88  # of the outermost Tracker barrel layer (with B=3.8T)
89  maxPtForLooperReconstruction = cms.double(0.7)
90  )
91 
92 # MAKING OF TRACK CANDIDATES
94 lowPtQuadStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
95  src = cms.InputTag('lowPtQuadStepSeeds'),
96  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
97  numHitsForSeedCleaner = cms.int32(50),
98  onlyPixelHitsForSeedCleaner = cms.bool(True),
99  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtQuadStepTrajectoryBuilder')),
100  doSeedingRegionRebuilding = True,
101  useHitsSplitting = True
102 )
103 
104 # TRACK FITTING
106 lowPtQuadStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
107  src = 'lowPtQuadStepTrackCandidates',
108  # Algorithm name changed from lowPtQuadStep (was iter2) to pixelPairStep in order
109  # to keep backward compatibility as detachedQuadStep would be unknown.
110  # In the future, a new enum or alias may be added to support iteration name aliases.
111  AlgorithmName = cms.string('pixelPairStep'),
112  Fitter = cms.string('FlexibleKFFittingSmoother'),
113  TTRHBuilder=cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight'))
114  )
115 
116 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
117 lowPtQuadStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
118  ComponentName = cms.string('lowPtQuadStepTrajectoryCleanerBySharedHits'),
119  fractionShared = cms.double(0.095),
120  allowSharedFirstHit = cms.bool(True)
121  )
122 lowPtQuadStepTrackCandidates.TrajectoryCleaner = 'lowPtQuadStepTrajectoryCleanerBySharedHits'
123 
124 # Final selection
125 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
126 lowPtQuadStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
127  src='lowPtQuadStepTracks',
128  trackSelectors= cms.VPSet(
129  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
130  name = 'lowPtQuadStepLoose',
131  chi2n_par = 2.0,
132  res_par = ( 0.003, 0.002 ),
133  minNumberLayers = 3,
134  maxNumberLostLayers = 2,
135  minNumber3DLayers = 3,
136  d0_par1 = ( 0.8, 4.0 ),
137  dz_par1 = ( 0.7, 4.0 ),
138  d0_par2 = ( 0.5, 4.0 ),
139  dz_par2 = ( 0.5, 4.0 )
140  ), #end of pset
141  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
142  name = 'lowPtQuadStepTight',
143  preFilterName = 'lowPtQuadStepLoose',
144  chi2n_par = 1.3,
145  res_par = ( 0.003, 0.002 ),
146  minNumberLayers = 3,
147  maxNumberLostLayers = 2,
148  minNumber3DLayers = 3,
149  d0_par1 = ( 0.7, 4.0 ),
150  dz_par1 = ( 0.6, 4.0 ),
151  d0_par2 = ( 0.4, 4.0 ),
152  dz_par2 = ( 0.4, 4.0 )
153  ),
154  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
155  name = 'lowPtQuadStep',
156  preFilterName = 'lowPtQuadStepTight',
157  chi2n_par = 1.0,
158  res_par = ( 0.003, 0.001 ),
159  minNumberLayers = 3,
160  maxNumberLostLayers = 2,
161  minNumber3DLayers = 3,
162  d0_par1 = ( 0.6, 4.0 ),
163  dz_par1 = ( 0.5, 4.0 ),
164  d0_par2 = ( 0.3, 4.0 ),
165  dz_par2 = ( 0.4, 4.0 )
166  ),
167  ) #end of vpset
168  ) #end of clone
169 
170 # Final sequence
171 LowPtQuadStep = cms.Sequence(lowPtQuadStepClusters*
172  lowPtQuadStepSeedLayers*
173  lowPtQuadStepSeeds*
174  lowPtQuadStepTrackCandidates*
175  lowPtQuadStepTracks*
176  lowPtQuadStepSelector)