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 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
58 lowPtQuadStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
59 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
60 
61 # QUALITY CUTS DURING TRACK BUILDING
62 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
63 lowPtQuadStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
64  ComponentName = 'lowPtQuadStepStandardTrajectoryFilter',
65  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
66  minimumNumberOfHits = 3,
67  minPt = 0.075
68  )
69  )
70 
72 # Composite filter
74 lowPtQuadStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.CompositeTrajectoryFilterESProducer_cfi.compositeTrajectoryFilterESProducer.clone(
75  ComponentName = cms.string('lowPtQuadStepTrajectoryFilter'),
76  filterNames = cms.vstring('lowPtQuadStepStandardTrajectoryFilter',
77  'clusterShapeTrajectoryFilter')
78  )
79 
81 lowPtQuadStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
82  ComponentName = cms.string('lowPtQuadStepChi2Est'),
83  nSigma = cms.double(3.0),
84  MaxChi2 = cms.double(25.0)
85 )
86 
87 # TRACK BUILDING
89 lowPtQuadStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
90  ComponentName = 'lowPtQuadStepTrajectoryBuilder',
91  MeasurementTrackerName = '',
92  trajectoryFilterName = 'lowPtQuadStepTrajectoryFilter',
93  clustersToSkip = cms.InputTag('lowPtQuadStepClusters'),
94  maxCand = 4,
95  estimator = cms.string('lowPtQuadStepChi2Est'),
96  maxDPhiForLooperReconstruction = cms.double(2.0),
97  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
98  # of the outermost Tracker barrel layer (with B=3.8T)
99  maxPtForLooperReconstruction = cms.double(0.7)
100  )
101 
102 # MAKING OF TRACK CANDIDATES
104 lowPtQuadStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
105  src = cms.InputTag('lowPtQuadStepSeeds'),
106  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
107  numHitsForSeedCleaner = cms.int32(50),
108  onlyPixelHitsForSeedCleaner = cms.bool(True),
109  TrajectoryBuilder = 'lowPtQuadStepTrajectoryBuilder',
110  doSeedingRegionRebuilding = True,
111  useHitsSplitting = True
112 )
113 
114 # TRACK FITTING
116 lowPtQuadStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
117  src = 'lowPtQuadStepTrackCandidates',
118  AlgorithmName = cms.string('iter2'),
119  Fitter = cms.string('FlexibleKFFittingSmoother'),
120  TTRHBuilder=cms.string('WithTrackAngle')
121  )
122 
123 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
124 lowPtQuadStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
125  ComponentName = cms.string('lowPtQuadStepTrajectoryCleanerBySharedHits'),
126  fractionShared = cms.double(0.095),
127  allowSharedFirstHit = cms.bool(True)
128  )
129 lowPtQuadStepTrackCandidates.TrajectoryCleaner = 'lowPtQuadStepTrajectoryCleanerBySharedHits'
130 
131 # Final selection
132 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
133 lowPtQuadStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
134  src='lowPtQuadStepTracks',
135  trackSelectors= cms.VPSet(
136  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
137  name = 'lowPtQuadStepLoose',
138  chi2n_par = 2.0,
139  res_par = ( 0.003, 0.002 ),
140  minNumberLayers = 3,
141  maxNumberLostLayers = 2,
142  minNumber3DLayers = 3,
143  d0_par1 = ( 0.8, 4.0 ),
144  dz_par1 = ( 0.7, 4.0 ),
145  d0_par2 = ( 0.5, 4.0 ),
146  dz_par2 = ( 0.5, 4.0 )
147  ), #end of pset
148  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
149  name = 'lowPtQuadStepTight',
150  preFilterName = 'lowPtQuadStepLoose',
151  chi2n_par = 1.3,
152  res_par = ( 0.003, 0.002 ),
153  minNumberLayers = 3,
154  maxNumberLostLayers = 2,
155  minNumber3DLayers = 3,
156  d0_par1 = ( 0.7, 4.0 ),
157  dz_par1 = ( 0.6, 4.0 ),
158  d0_par2 = ( 0.4, 4.0 ),
159  dz_par2 = ( 0.4, 4.0 )
160  ),
161  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
162  name = 'lowPtQuadStep',
163  preFilterName = 'lowPtQuadStepTight',
164  chi2n_par = 1.0,
165  res_par = ( 0.003, 0.001 ),
166  minNumberLayers = 3,
167  maxNumberLostLayers = 2,
168  minNumber3DLayers = 3,
169  d0_par1 = ( 0.6, 4.0 ),
170  dz_par1 = ( 0.5, 4.0 ),
171  d0_par2 = ( 0.3, 4.0 ),
172  dz_par2 = ( 0.4, 4.0 )
173  ),
174  ) #end of vpset
175  ) #end of clone
176 
177 # Final sequence
178 LowPtQuadStep = cms.Sequence(lowPtQuadStepClusters*
179  lowPtQuadStepSeedLayers*
180  lowPtQuadStepSeeds*
181  lowPtQuadStepTrackCandidates*
182  lowPtQuadStepTracks*
183  lowPtQuadStepSelector)