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 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
40 
41 
42 # QUALITY CUTS DURING TRACK BUILDING
43 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
44 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
45  ComponentName = 'lowPtTripletStepStandardTrajectoryFilter',
46  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
47  minimumNumberOfHits = 3,
48  minPt = 0.05
49  )
50  )
51 
53 # Composite filter
55 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.CompositeTrajectoryFilterESProducer_cfi.compositeTrajectoryFilterESProducer.clone(
56  ComponentName = cms.string('lowPtTripletStepTrajectoryFilter'),
57  filterNames = cms.vstring('lowPtTripletStepStandardTrajectoryFilter',
58  'clusterShapeTrajectoryFilter')
59  )
60 
62 lowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
63  ComponentName = cms.string('lowPtTripletStepChi2Est'),
64  nSigma = cms.double(3.0),
65  MaxChi2 = cms.double(49.0)
66 )
67 
68 # TRACK BUILDING
70 lowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
71  ComponentName = 'lowPtTripletStepTrajectoryBuilder',
72  MeasurementTrackerName = '',
73  trajectoryFilterName = 'lowPtTripletStepTrajectoryFilter',
74  clustersToSkip = cms.InputTag('lowPtTripletStepClusters'),
75  maxCand = 6,
76  estimator = cms.string('lowPtTripletStepChi2Est'),
77  maxDPhiForLooperReconstruction = cms.double(2.0),
78  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
79  # of the outermost Tracker barrel layer (with B=3.8T)
80  maxPtForLooperReconstruction = cms.double(0.7)
81  )
82 
83 # MAKING OF TRACK CANDIDATES
85 lowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
86  src = cms.InputTag('lowPtTripletStepSeeds'),
87  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
88  numHitsForSeedCleaner = cms.int32(50),
89  onlyPixelHitsForSeedCleaner = cms.bool(True),
90 
91  TrajectoryBuilder = 'lowPtTripletStepTrajectoryBuilder',
92  doSeedingRegionRebuilding = True,
93  useHitsSplitting = True
94 )
95 
96 # TRACK FITTING
98 lowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
99  src = 'lowPtTripletStepTrackCandidates',
100  AlgorithmName = cms.string('iter1'),
101  Fitter = cms.string('FlexibleKFFittingSmoother')
102  )
103 
104 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
105 lowPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
106  ComponentName = cms.string('lowPtTripletStepTrajectoryCleanerBySharedHits'),
107  fractionShared = cms.double(0.16),
108  allowSharedFirstHit = cms.bool(True)
109  )
110 lowPtTripletStepTrackCandidates.TrajectoryCleaner = 'lowPtTripletStepTrajectoryCleanerBySharedHits'
111 
112 # Final selection
113 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
114 lowPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
115  src='lowPtTripletStepTracks',
116  trackSelectors= cms.VPSet(
117  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
118  name = 'lowPtTripletStepLoose',
119  chi2n_par = 3.5,
120  res_par = ( 0.003, 0.002 ),
121  minNumberLayers = 3,
122  maxNumberLostLayers = 2,
123  minNumber3DLayers = 3,
124  d0_par1 = ( 0.9, 4.0 ),
125  dz_par1 = ( 0.7, 4.0 ),
126  d0_par2 = ( 0.5, 4.0 ),
127  dz_par2 = ( 0.5, 4.0 )
128  ), #end of pset
129  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
130  name = 'lowPtTripletStepTight',
131  preFilterName = 'lowPtTripletStepLoose',
132  chi2n_par = 1.3,
133  res_par = ( 0.003, 0.002 ),
134  minNumberLayers = 3,
135  maxNumberLostLayers = 2,
136  minNumber3DLayers = 3,
137  d0_par1 = ( 0.75, 4.0 ),
138  dz_par1 = ( 0.6, 4.0 ),
139  d0_par2 = ( 0.4, 4.0 ),
140  dz_par2 = ( 0.4, 4.0 )
141  ),
142  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
143  name = 'lowPtTripletStep',
144  preFilterName = 'lowPtTripletStepTight',
145  chi2n_par = 1.0,
146  res_par = ( 0.003, 0.001 ),
147  minNumberLayers = 3,
148  maxNumberLostLayers = 2,
149  minNumber3DLayers = 3,
150  d0_par1 = ( 0.7, 4.0 ),
151  dz_par1 = ( 0.55, 4.0 ),
152  d0_par2 = ( 0.3, 4.0 ),
153  dz_par2 = ( 0.35, 4.0 )
154  ),
155  ) #end of vpset
156  ) #end of clone
157 
158 # Final sequence
159 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
160  lowPtTripletStepSeedLayers*
161  lowPtTripletStepSeeds*
162  lowPtTripletStepTrackCandidates*
163  lowPtTripletStepTracks*
164  lowPtTripletStepSelector)