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)
5 lowPtTripletStepClusters = trackClusterRemover.clone(
6  maxChi2 = cms.double(9.0),
7  trajectories = cms.InputTag("lowPtQuadStepTracks"),
8  pixelClusters = cms.InputTag("siPixelClusters"),
9  stripClusters = cms.InputTag("siStripClusters"),
10  overrideTrkQuals = cms.InputTag('lowPtQuadStepSelector','lowPtQuadStep'),
11  TrackQuality = cms.string('highPurity'),
12  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
13 )
14 
15 # SEEDING LAYERS
17 lowPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
18  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
19  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
20  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
21  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
22  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
23  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
24  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg')
25  )
26 lowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
27 lowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
28 
29 # SEEDS
31 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
32 lowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
33  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
34  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
35  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
36  ptMin = 0.45,
37  originRadius = 0.015,
38  nSigmaZ = 4.0
39  )
40  )
41  )
42 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtTripletStepSeedLayers'
43 
45 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
46 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
47 lowPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
48 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
49 
50 # QUALITY CUTS DURING TRACK BUILDING
52 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
53  minimumNumberOfHits = 3,
54  minPt = 0.075
55  )
56 
58 # Composite filter
59 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
60  filters = [cms.PSet(refToPSet_ = cms.string('lowPtTripletStepStandardTrajectoryFilter')),
61  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
62  )
63 
65 lowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
66  ComponentName = cms.string('lowPtTripletStepChi2Est'),
67  nSigma = cms.double(3.0),
68  MaxChi2 = cms.double(9.0)
69 )
70 
71 # TRACK BUILDING
73 lowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
74  MeasurementTrackerName = '',
75  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryFilter')),
76  clustersToSkip = cms.InputTag('lowPtTripletStepClusters'),
77  maxCand = 4,
78  estimator = cms.string('lowPtTripletStepChi2Est'),
79  maxDPhiForLooperReconstruction = cms.double(2.0),
80  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
81  # of the outermost Tracker barrel layer (with B=3.8T)
82  maxPtForLooperReconstruction = cms.double(0.7)
83  )
84 
85 # MAKING OF TRACK CANDIDATES
87 lowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
88  src = cms.InputTag('lowPtTripletStepSeeds'),
89  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
90  numHitsForSeedCleaner = cms.int32(50),
91  onlyPixelHitsForSeedCleaner = cms.bool(True),
92  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryBuilder')),
93  doSeedingRegionRebuilding = True,
94  useHitsSplitting = True
95 )
96 
97 # TRACK FITTING
99 lowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
100  src = 'lowPtTripletStepTrackCandidates',
101  AlgorithmName = cms.string('lowPtTripletStep'),
102  Fitter = cms.string('FlexibleKFFittingSmoother'),
103  TTRHBuilder=cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight'))
104  )
105 
106 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
107 lowPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
108  ComponentName = cms.string('lowPtTripletStepTrajectoryCleanerBySharedHits'),
109  fractionShared = cms.double(0.09),
110  allowSharedFirstHit = cms.bool(True)
111  )
112 lowPtTripletStepTrackCandidates.TrajectoryCleaner = 'lowPtTripletStepTrajectoryCleanerBySharedHits'
113 
114 # Final selection
115 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
116 lowPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
117  src='lowPtTripletStepTracks',
118  trackSelectors= cms.VPSet(
119  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
120  name = 'lowPtTripletStepLoose',
121  chi2n_par = 1.2,
122  res_par = ( 0.003, 0.002 ),
123  minNumberLayers = 3,
124  maxNumberLostLayers = 2,
125  minNumber3DLayers = 3,
126  d0_par1 = ( 0.7, 4.0 ),
127  dz_par1 = ( 0.6, 4.0 ),
128  d0_par2 = ( 0.5, 4.0 ),
129  dz_par2 = ( 0.5, 4.0 )
130  ), #end of pset
131  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
132  name = 'lowPtTripletStepTight',
133  preFilterName = 'lowPtTripletStepLoose',
134  chi2n_par = 0.7,
135  res_par = ( 0.003, 0.002 ),
136  minNumberLayers = 3,
137  maxNumberLostLayers = 2,
138  minNumber3DLayers = 3,
139  d0_par1 = ( 0.6, 4.0 ),
140  dz_par1 = ( 0.5, 4.0 ),
141  d0_par2 = ( 0.4, 4.0 ),
142  dz_par2 = ( 0.4, 4.0 )
143  ),
144  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
145  name = 'lowPtTripletStep',
146  preFilterName = 'lowPtTripletStepTight',
147  chi2n_par = 0.4,
148  res_par = ( 0.003, 0.001 ),
149  minNumberLayers = 3,
150  maxNumberLostLayers = 2,
151  minNumber3DLayers = 3,
152  d0_par1 = ( 0.5, 4.0 ),
153  dz_par1 = ( 0.4, 4.0 ),
154  d0_par2 = ( 0.3, 4.0 ),
155  dz_par2 = ( 0.35, 4.0 )
156  ),
157  ) #end of vpset
158  ) #end of clone
159 
160 # Final sequence
161 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
162  lowPtTripletStepSeedLayers*
163  lowPtTripletStepSeeds*
164  lowPtTripletStepTrackCandidates*
165  lowPtTripletStepTracks*
166  lowPtTripletStepSelector)