CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU70_HighPtTripletStep_cff.py
Go to the documentation of this file.
1 ### who is using this python file ?
2 ### I found it obsolete, at least in terms of the TrackClusterRemover setting
3 ### now, it is ok, but ....
4 import FWCore.ParameterSet.Config as cms
5 
6 # NEW CLUSTERS (remove previously used clusters)
8 highPtTripletStepClusters = trackClusterRemover.clone(
9  maxChi2 = cms.double(9.0),
10  trajectories = cms.InputTag("initialStepTracks"),
11  pixelClusters = cms.InputTag("siPixelClusters"),
12  stripClusters = cms.InputTag("siStripClusters"),
13  overrideTrkQuals = cms.InputTag('initialStepSelector','initialStep'),
14  TrackQuality = cms.string('highPurity'),
15  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
16 )
17 
18 # SEEDING LAYERS
20 highPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
21  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
22  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
23  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
24  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
25  'BPix1+BPix3+FPix1_pos', 'BPix1+BPix3+FPix1_neg',
26  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
27  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
28  'BPix1+BPix2+FPix2_pos', 'BPix1+BPix2+FPix2_neg',
29  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg',
30  'BPix1+FPix2_pos+FPix3_pos', 'BPix1+FPix2_neg+FPix3_neg',
31  'BPix1+FPix1_pos+FPix3_pos', 'BPix1+FPix1_neg+FPix3_neg')
32  )
33 highPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('highPtTripletStepClusters')
34 highPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('highPtTripletStepClusters')
35 
36 # SEEDS
38 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
39 highPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
40  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
41  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
42  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
43  ptMin = 0.7,
44  originRadius = 0.02,
45  nSigmaZ = 4.0
46  )
47  )
48  )
49 highPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'highPtTripletStepSeedLayers'
50 highPtTripletStepSeeds.SeedCreatorPSet.magneticField = ''
51 highPtTripletStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
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  maxCand = 4,
79  estimator = cms.string('highPtTripletStepChi2Est'),
80  maxDPhiForLooperReconstruction = cms.double(2.0),
81  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
82  # of the outermost Tracker barrel layer (with B=3.8T)
83  maxPtForLooperReconstruction = cms.double(0.7)
84  )
85 
86 # MAKING OF TRACK CANDIDATES
88 highPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
89  src = cms.InputTag('highPtTripletStepSeeds'),
90  clustersToSkip = cms.InputTag('highPtTripletStepClusters'),
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  # Algorithm name changed from highPtTripletStep (was iter1) to lowPtTripletStep in order
104  # to keep backward compatibility as detachedQuadStep would be unknown.
105  # In the future, a new enum or alias may be added to support iteration name aliases.
106  AlgorithmName = cms.string('lowPtTripletStep'),
107  Fitter = cms.string('FlexibleKFFittingSmoother'),
108  TTRHBuilder=cms.string('WithTrackAngle')
109  )
110 
111 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
112 highPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
113  ComponentName = cms.string('highPtTripletStepTrajectoryCleanerBySharedHits'),
114  fractionShared = cms.double(0.16),
115  allowSharedFirstHit = cms.bool(True)
116  )
117 highPtTripletStepTrackCandidates.TrajectoryCleaner = 'highPtTripletStepTrajectoryCleanerBySharedHits'
118 
119 # Final selection
120 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
121 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
122  src='highPtTripletStepTracks',
123  trackSelectors= cms.VPSet(
124  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
125  name = 'highPtTripletStepLoose',
126  chi2n_par = 2.0,
127  res_par = ( 0.003, 0.002 ),
128  minNumberLayers = 3,
129  maxNumberLostLayers = 3,
130  minNumber3DLayers = 3,
131  d0_par1 = ( 0.7, 4.0 ),
132  dz_par1 = ( 0.8, 4.0 ),
133  d0_par2 = ( 0.4, 4.0 ),
134  dz_par2 = ( 0.6, 4.0 )
135  ), #end of pset
136  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
137  name = 'highPtTripletStepTight',
138  preFilterName = 'highPtTripletStepLoose',
139  chi2n_par = 1.0,
140  res_par = ( 0.003, 0.002 ),
141  minNumberLayers = 3,
142  maxNumberLostLayers = 2,
143  minNumber3DLayers = 3,
144  d0_par1 = ( 0.6, 4.0 ),
145  dz_par1 = ( 0.7, 4.0 ),
146  d0_par2 = ( 0.35, 4.0 ),
147  dz_par2 = ( 0.5, 4.0 )
148  ),
149  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
150  name = 'highPtTripletStep',
151  preFilterName = 'highPtTripletStepTight',
152  chi2n_par = 0.7,
153  res_par = ( 0.003, 0.001 ),
154  minNumberLayers = 3,
155  maxNumberLostLayers = 2,
156  minNumber3DLayers = 3,
157  d0_par1 = ( 0.5, 4.0 ),
158  dz_par1 = ( 0.7, 4.0 ),
159  d0_par2 = ( 0.25, 4.0 ),
160  dz_par2 = ( 0.4, 4.0 )
161  ),
162  ) #end of vpset
163  ) #end of clone
164 
165 # Final sequence
166 HighPtTripletStep = cms.Sequence(highPtTripletStepClusters*
167  highPtTripletStepSeedLayers*
168  highPtTripletStepSeeds*
169  highPtTripletStepTrackCandidates*
170  highPtTripletStepTracks*
171  highPtTripletStepSelector)