CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU140_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("lowPtQuadStepTracks"),
7  overrideTrkQuals = cms.InputTag('lowPtQuadStepSelector','lowPtQuadStep'),
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  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
21  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
22  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
23  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
24  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
25  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
26  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg')
27  )
28 lowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
29 lowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
30 
31 # SEEDS
33 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
34 lowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
35  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
36  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
37  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
38  ptMin = 0.45,
39  originRadius = 0.015,
40  nSigmaZ = 4.0
41  )
42  )
43  )
44 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtTripletStepSeedLayers'
45 
47 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
48 lowPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
49 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
50 
51 # QUALITY CUTS DURING TRACK BUILDING
52 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
53 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
54  ComponentName = 'lowPtTripletStepStandardTrajectoryFilter',
55  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
56  minimumNumberOfHits = 3,
57  minPt = 0.075
58  )
59  )
60 
62 # Composite filter
64 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.CompositeTrajectoryFilterESProducer_cfi.compositeTrajectoryFilterESProducer.clone(
65  ComponentName = cms.string('lowPtTripletStepTrajectoryFilter'),
66  filterNames = cms.vstring('lowPtTripletStepStandardTrajectoryFilter',
67  'clusterShapeTrajectoryFilter')
68  )
69 
71 lowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
72  ComponentName = cms.string('lowPtTripletStepChi2Est'),
73  nSigma = cms.double(3.0),
74  MaxChi2 = cms.double(9.0)
75 )
76 
77 # TRACK BUILDING
79 lowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
80  ComponentName = 'lowPtTripletStepTrajectoryBuilder',
81  MeasurementTrackerName = '',
82  trajectoryFilterName = 'lowPtTripletStepTrajectoryFilter',
83  clustersToSkip = cms.InputTag('lowPtTripletStepClusters'),
84  maxCand = 4,
85  estimator = cms.string('lowPtTripletStepChi2Est'),
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 lowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
95  src = cms.InputTag('lowPtTripletStepSeeds'),
96  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
97  numHitsForSeedCleaner = cms.int32(50),
98  onlyPixelHitsForSeedCleaner = cms.bool(True),
99  TrajectoryBuilder = 'lowPtTripletStepTrajectoryBuilder',
100  doSeedingRegionRebuilding = True,
101  useHitsSplitting = True
102 )
103 
104 # TRACK FITTING
106 lowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
107  src = 'lowPtTripletStepTrackCandidates',
108  AlgorithmName = cms.string('iter3'),
109  Fitter = cms.string('FlexibleKFFittingSmoother'),
110  TTRHBuilder=cms.string('WithTrackAngle')
111  )
112 
113 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
114 lowPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
115  ComponentName = cms.string('lowPtTripletStepTrajectoryCleanerBySharedHits'),
116  fractionShared = cms.double(0.09),
117  allowSharedFirstHit = cms.bool(True)
118  )
119 lowPtTripletStepTrackCandidates.TrajectoryCleaner = 'lowPtTripletStepTrajectoryCleanerBySharedHits'
120 
121 # Final selection
122 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
123 lowPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
124  src='lowPtTripletStepTracks',
125  trackSelectors= cms.VPSet(
126  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
127  name = 'lowPtTripletStepLoose',
128  chi2n_par = 1.2,
129  res_par = ( 0.003, 0.002 ),
130  minNumberLayers = 3,
131  maxNumberLostLayers = 2,
132  minNumber3DLayers = 3,
133  d0_par1 = ( 0.7, 4.0 ),
134  dz_par1 = ( 0.6, 4.0 ),
135  d0_par2 = ( 0.5, 4.0 ),
136  dz_par2 = ( 0.5, 4.0 )
137  ), #end of pset
138  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
139  name = 'lowPtTripletStepTight',
140  preFilterName = 'lowPtTripletStepLoose',
141  chi2n_par = 0.7,
142  res_par = ( 0.003, 0.002 ),
143  minNumberLayers = 3,
144  maxNumberLostLayers = 2,
145  minNumber3DLayers = 3,
146  d0_par1 = ( 0.6, 4.0 ),
147  dz_par1 = ( 0.5, 4.0 ),
148  d0_par2 = ( 0.4, 4.0 ),
149  dz_par2 = ( 0.4, 4.0 )
150  ),
151  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
152  name = 'lowPtTripletStep',
153  preFilterName = 'lowPtTripletStepTight',
154  chi2n_par = 0.4,
155  res_par = ( 0.003, 0.001 ),
156  minNumberLayers = 3,
157  maxNumberLostLayers = 2,
158  minNumber3DLayers = 3,
159  d0_par1 = ( 0.5, 4.0 ),
160  dz_par1 = ( 0.4, 4.0 ),
161  d0_par2 = ( 0.3, 4.0 ),
162  dz_par2 = ( 0.35, 4.0 )
163  ),
164  ) #end of vpset
165  ) #end of clone
166 
167 # Final sequence
168 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
169  lowPtTripletStepSeedLayers*
170  lowPtTripletStepSeeds*
171  lowPtTripletStepTrackCandidates*
172  lowPtTripletStepTracks*
173  lowPtTripletStepSelector)