CMS 3D CMS Logo

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