CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LowPU_LowPtTripletStep_cff.py
Go to the documentation of this file.
2 
3 # NEW CLUSTERS (remove previously used clusters)
4 lowPtTripletStepClusters = cms.EDProducer("TrackClusterRemover",
5  clusterLessSolution= cms.bool(True),
6  trajectories = cms.InputTag("initialStepTracks"),
7  overrideTrkQuals = cms.InputTag('initialStepSelector','initialStep'),
8  TrackQuality = cms.string('highPurity'),
9  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
10  pixelClusters = cms.InputTag("siPixelClusters"),
11  stripClusters = cms.InputTag("siStripClusters"),
12  Common = cms.PSet(
13  maxChi2 = cms.double(9.0)
14  )
15 )
16 
17 # SEEDING LAYERS
19 lowPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
20 lowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
21 lowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
22 
23 # SEEDS
25 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
26 lowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
27  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
28  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
29  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
30  ptMin = 0.1,
31  originRadius = 0.015,
32  nSigmaZ = 4.0
33  )
34  )
35  )
36 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtTripletStepSeedLayers'
37 
39 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
40 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
41 
42 
43 # QUALITY CUTS DURING TRACK BUILDING
45 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
46  minimumNumberOfHits = 3,
47  minPt = 0.05
48  )
49 
51 # Composite filter
52 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
53  filters = [cms.PSet(refToPSet_ = cms.string('lowPtTripletStepStandardTrajectoryFilter')),
54  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
55  )
56 
58 lowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
59  ComponentName = cms.string('lowPtTripletStepChi2Est'),
60  nSigma = cms.double(3.0),
61  MaxChi2 = cms.double(49.0)
62 )
63 
64 # TRACK BUILDING
66 lowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
67  MeasurementTrackerName = '',
68  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryFilter')),
69  clustersToSkip = cms.InputTag('lowPtTripletStepClusters'),
70  maxCand = 6,
71  estimator = cms.string('lowPtTripletStepChi2Est'),
72  maxDPhiForLooperReconstruction = cms.double(2.0),
73  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
74  # of the outermost Tracker barrel layer (with B=3.8T)
75  maxPtForLooperReconstruction = cms.double(0.7)
76  )
77 
78 # MAKING OF TRACK CANDIDATES
80 lowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
81  src = cms.InputTag('lowPtTripletStepSeeds'),
82  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
83  numHitsForSeedCleaner = cms.int32(50),
84  onlyPixelHitsForSeedCleaner = cms.bool(True),
85 
86  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryBuilder')),
87  doSeedingRegionRebuilding = True,
88  useHitsSplitting = True
89 )
90 
91 # TRACK FITTING
93 lowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
94  src = 'lowPtTripletStepTrackCandidates',
95  AlgorithmName = cms.string('iter1'),
96  Fitter = cms.string('FlexibleKFFittingSmoother')
97  )
98 
99 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
100 lowPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
101  ComponentName = cms.string('lowPtTripletStepTrajectoryCleanerBySharedHits'),
102  fractionShared = cms.double(0.16),
103  allowSharedFirstHit = cms.bool(True)
104  )
105 lowPtTripletStepTrackCandidates.TrajectoryCleaner = 'lowPtTripletStepTrajectoryCleanerBySharedHits'
106 
107 # Final selection
108 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
109 lowPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
110  src='lowPtTripletStepTracks',
111  trackSelectors= cms.VPSet(
112  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
113  name = 'lowPtTripletStepLoose',
114  chi2n_par = 3.5,
115  res_par = ( 0.003, 0.002 ),
116  minNumberLayers = 3,
117  maxNumberLostLayers = 2,
118  minNumber3DLayers = 3,
119  d0_par1 = ( 0.9, 4.0 ),
120  dz_par1 = ( 0.7, 4.0 ),
121  d0_par2 = ( 0.5, 4.0 ),
122  dz_par2 = ( 0.5, 4.0 )
123  ), #end of pset
124  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
125  name = 'lowPtTripletStepTight',
126  preFilterName = 'lowPtTripletStepLoose',
127  chi2n_par = 1.3,
128  res_par = ( 0.003, 0.002 ),
129  minNumberLayers = 3,
130  maxNumberLostLayers = 2,
131  minNumber3DLayers = 3,
132  d0_par1 = ( 0.75, 4.0 ),
133  dz_par1 = ( 0.6, 4.0 ),
134  d0_par2 = ( 0.4, 4.0 ),
135  dz_par2 = ( 0.4, 4.0 )
136  ),
137  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
138  name = 'lowPtTripletStep',
139  preFilterName = 'lowPtTripletStepTight',
140  chi2n_par = 1.0,
141  res_par = ( 0.003, 0.001 ),
142  minNumberLayers = 3,
143  maxNumberLostLayers = 2,
144  minNumber3DLayers = 3,
145  d0_par1 = ( 0.7, 4.0 ),
146  dz_par1 = ( 0.55, 4.0 ),
147  d0_par2 = ( 0.3, 4.0 ),
148  dz_par2 = ( 0.35, 4.0 )
149  ),
150  ) #end of vpset
151  ) #end of clone
152 
153 # Final sequence
154 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
155  lowPtTripletStepSeedLayers*
156  lowPtTripletStepSeeds*
157  lowPtTripletStepTrackCandidates*
158  lowPtTripletStepTracks*
159  lowPtTripletStepSelector)