CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU140_HighPtTripletStep_cff.py
Go to the documentation of this file.
2 
3 # NEW CLUSTERS (remove previously used clusters)
4 highPtTripletStepClusters = 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  doStripChargeCheck = cms.bool(True),
13  stripRecHits = cms.string('siStripMatchedRecHits'),
14  Common = cms.PSet(
15  maxChi2 = cms.double(9.0),
16  minGoodStripCharge = cms.double(50.0)
17  )
18 )
19 
20 # SEEDING LAYERS
22 highPtTripletStepSeedLayers = 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  'BPix1+BPix3+FPix1_pos', 'BPix1+BPix3+FPix1_neg',
28  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
29  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
30  'BPix1+BPix2+FPix2_pos', 'BPix1+BPix2+FPix2_neg',
31  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg',
32  'BPix1+FPix2_pos+FPix3_pos', 'BPix1+FPix2_neg+FPix3_neg',
33  'BPix1+FPix1_pos+FPix3_pos', 'BPix1+FPix1_neg+FPix3_neg')
34  )
35 highPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('highPtTripletStepClusters')
36 highPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('highPtTripletStepClusters')
37 
38 # SEEDS
40 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
41 highPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
42  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
43  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
44  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
45  ptMin = 0.9,
46  originRadius = 0.02,
47  nSigmaZ = 4.0
48  )
49  )
50  )
51 highPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'highPtTripletStepSeedLayers'
52 
54 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
55 highPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
56 highPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
57 highPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
58 
59 # QUALITY CUTS DURING TRACK BUILDING
61 highPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
62  minimumNumberOfHits = 3,
63  minPt = 0.2
64  )
65 
67 highPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
68  ComponentName = cms.string('highPtTripletStepChi2Est'),
69  nSigma = cms.double(3.0),
70  MaxChi2 = cms.double(30.0)
71 )
72 
73 # TRACK BUILDING
75 highPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
76  MeasurementTrackerName = '',
77  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('highPtTripletStepTrajectoryFilter')),
78  clustersToSkip = cms.InputTag('highPtTripletStepClusters'),
79  maxCand = 4,
80  estimator = cms.string('highPtTripletStepChi2Est'),
81  maxDPhiForLooperReconstruction = cms.double(2.0),
82  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
83  # of the outermost Tracker barrel layer (with B=3.8T)
84  maxPtForLooperReconstruction = cms.double(0.7)
85  )
86 
87 # MAKING OF TRACK CANDIDATES
89 highPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
90  src = cms.InputTag('highPtTripletStepSeeds'),
91  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
92  numHitsForSeedCleaner = cms.int32(50),
93  onlyPixelHitsForSeedCleaner = cms.bool(True),
94  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('highPtTripletStepTrajectoryBuilder')),
95  doSeedingRegionRebuilding = True,
96  useHitsSplitting = True
97 )
98 
99 # TRACK FITTING
101 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
102  src = 'highPtTripletStepTrackCandidates',
103  AlgorithmName = cms.string('iter1'),
104  Fitter = cms.string('FlexibleKFFittingSmoother'),
105  TTRHBuilder=cms.string('WithTrackAngle')
106  )
107 
108 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
109 highPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
110  ComponentName = cms.string('highPtTripletStepTrajectoryCleanerBySharedHits'),
111  fractionShared = cms.double(0.16),
112  allowSharedFirstHit = cms.bool(True)
113  )
114 highPtTripletStepTrackCandidates.TrajectoryCleaner = 'highPtTripletStepTrajectoryCleanerBySharedHits'
115 
116 # Final selection
117 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
118 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
119  src='highPtTripletStepTracks',
120  trackSelectors= cms.VPSet(
121  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
122  name = 'highPtTripletStepLoose',
123  chi2n_par = 2.0,
124  res_par = ( 0.003, 0.002 ),
125  minNumberLayers = 3,
126  maxNumberLostLayers = 3,
127  minNumber3DLayers = 3,
128  d0_par1 = ( 0.7, 4.0 ),
129  dz_par1 = ( 0.8, 4.0 ),
130  d0_par2 = ( 0.4, 4.0 ),
131  dz_par2 = ( 0.6, 4.0 )
132  ), #end of pset
133  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
134  name = 'highPtTripletStepTight',
135  preFilterName = 'highPtTripletStepLoose',
136  chi2n_par = 1.0,
137  res_par = ( 0.003, 0.002 ),
138  minNumberLayers = 3,
139  maxNumberLostLayers = 2,
140  minNumber3DLayers = 3,
141  d0_par1 = ( 0.6, 4.0 ),
142  dz_par1 = ( 0.7, 4.0 ),
143  d0_par2 = ( 0.35, 4.0 ),
144  dz_par2 = ( 0.5, 4.0 )
145  ),
146  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
147  name = 'highPtTripletStep',
148  preFilterName = 'highPtTripletStepTight',
149  chi2n_par = 0.7,
150  res_par = ( 0.003, 0.001 ),
151  minNumberLayers = 3,
152  maxNumberLostLayers = 2,
153  minNumber3DLayers = 3,
154  d0_par1 = ( 0.5, 4.0 ),
155  dz_par1 = ( 0.7, 4.0 ),
156  d0_par2 = ( 0.25, 4.0 ),
157  dz_par2 = ( 0.4, 4.0 )
158  ),
159  ) #end of vpset
160  ) #end of clone
161 
162 # Final sequence
163 HighPtTripletStep = cms.Sequence(highPtTripletStepClusters*
164  highPtTripletStepSeedLayers*
165  highPtTripletStepSeeds*
166  highPtTripletStepTrackCandidates*
167  highPtTripletStepTracks*
168  highPtTripletStepSelector)