CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU140_LowPtQuadStep_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 lowPtQuadStepClusters = trackClusterRemover.clone(
9  maxChi2 = cms.double(9.0),
10  trajectories = cms.InputTag("highPtTripletStepTracks"),
11  pixelClusters = cms.InputTag("siPixelClusters"),
12  stripClusters = cms.InputTag("siStripClusters"),
13  oldClusterRemovalInfo = cms.InputTag("highPtTripletStepClusters"),
14  overrideTrkQuals = cms.InputTag('highPtTripletStepSelector','highPtTripletStep'),
15  TrackQuality = cms.string('highPurity'),
16  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
17 )
18 
19 # SEEDING LAYERS
21 lowPtQuadStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
22  layerList = cms.vstring('BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
23  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
24  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
25  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+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  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg')
29  )
30 lowPtQuadStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtQuadStepClusters')
31 lowPtQuadStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtQuadStepClusters')
32 
33 # SEEDS
35 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
37 lowPtQuadStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
38  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
39  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
40  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
41  ptMin = 0.35,
42  originRadius = 0.02,
43  nSigmaZ = 4.0
44  )
45  ),
46  SeedMergerPSet = cms.PSet(
47  layerList = cms.PSet(refToPSet_ = cms.string("PixelSeedMergerQuadruplets")),
48  addRemainingTriplets = cms.bool(False),
49  mergeTriplets = cms.bool(True),
50  ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
51  )
52 )
53 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtQuadStepSeedLayers'
54 
56 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
57 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
58 lowPtQuadStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
59 lowPtQuadStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
60 lowPtQuadStepSeeds.SeedCreatorPSet.magneticField = ''
61 lowPtQuadStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
62 
63 # QUALITY CUTS DURING TRACK BUILDING
65 lowPtQuadStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
66  minimumNumberOfHits = 3,
67  minPt = 0.075
68  )
69 
71 # Composite filter
72 lowPtQuadStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
73  filters = [cms.PSet(refToPSet_ = cms.string('lowPtQuadStepStandardTrajectoryFilter')),
74  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
75  )
76 
78 lowPtQuadStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
79  ComponentName = cms.string('lowPtQuadStepChi2Est'),
80  nSigma = cms.double(3.0),
81  MaxChi2 = cms.double(25.0)
82 )
83 
84 # TRACK BUILDING
86 lowPtQuadStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
87  MeasurementTrackerName = '',
88  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtQuadStepTrajectoryFilter')),
89  maxCand = 4,
90  estimator = cms.string('lowPtQuadStepChi2Est'),
91  maxDPhiForLooperReconstruction = cms.double(2.0),
92  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
93  # of the outermost Tracker barrel layer (with B=3.8T)
94  maxPtForLooperReconstruction = cms.double(0.7)
95  )
96 
97 # MAKING OF TRACK CANDIDATES
99 lowPtQuadStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
100  src = cms.InputTag('lowPtQuadStepSeeds'),
101  clustersToSkip = cms.InputTag('lowPtQuadStepClusters'),
102  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
103  numHitsForSeedCleaner = cms.int32(50),
104  onlyPixelHitsForSeedCleaner = cms.bool(True),
105  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtQuadStepTrajectoryBuilder')),
106  doSeedingRegionRebuilding = True,
107  useHitsSplitting = True
108 )
109 
110 # TRACK FITTING
112 lowPtQuadStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
113  src = 'lowPtQuadStepTrackCandidates',
114  # Algorithm name changed from lowPtQuadStep (was iter2) to pixelPairStep in order
115  # to keep backward compatibility as detachedQuadStep would be unknown.
116  # In the future, a new enum or alias may be added to support iteration name aliases.
117  AlgorithmName = cms.string('pixelPairStep'),
118  Fitter = cms.string('FlexibleKFFittingSmoother'),
119  TTRHBuilder=cms.string('WithTrackAngle')
120  )
121 
122 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
123 lowPtQuadStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
124  ComponentName = cms.string('lowPtQuadStepTrajectoryCleanerBySharedHits'),
125  fractionShared = cms.double(0.095),
126  allowSharedFirstHit = cms.bool(True)
127  )
128 lowPtQuadStepTrackCandidates.TrajectoryCleaner = 'lowPtQuadStepTrajectoryCleanerBySharedHits'
129 
130 # Final selection
131 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
132 lowPtQuadStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
133  src='lowPtQuadStepTracks',
134  trackSelectors= cms.VPSet(
135  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
136  name = 'lowPtQuadStepLoose',
137  chi2n_par = 2.0,
138  res_par = ( 0.003, 0.002 ),
139  minNumberLayers = 3,
140  maxNumberLostLayers = 2,
141  minNumber3DLayers = 3,
142  d0_par1 = ( 0.8, 4.0 ),
143  dz_par1 = ( 0.7, 4.0 ),
144  d0_par2 = ( 0.5, 4.0 ),
145  dz_par2 = ( 0.5, 4.0 )
146  ), #end of pset
147  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
148  name = 'lowPtQuadStepTight',
149  preFilterName = 'lowPtQuadStepLoose',
150  chi2n_par = 1.3,
151  res_par = ( 0.003, 0.002 ),
152  minNumberLayers = 3,
153  maxNumberLostLayers = 2,
154  minNumber3DLayers = 3,
155  d0_par1 = ( 0.7, 4.0 ),
156  dz_par1 = ( 0.6, 4.0 ),
157  d0_par2 = ( 0.4, 4.0 ),
158  dz_par2 = ( 0.4, 4.0 )
159  ),
160  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
161  name = 'lowPtQuadStep',
162  preFilterName = 'lowPtQuadStepTight',
163  chi2n_par = 1.0,
164  res_par = ( 0.003, 0.001 ),
165  minNumberLayers = 3,
166  maxNumberLostLayers = 2,
167  minNumber3DLayers = 3,
168  d0_par1 = ( 0.6, 4.0 ),
169  dz_par1 = ( 0.5, 4.0 ),
170  d0_par2 = ( 0.3, 4.0 ),
171  dz_par2 = ( 0.4, 4.0 )
172  ),
173  ) #end of vpset
174  ) #end of clone
175 
176 # Final sequence
177 LowPtQuadStep = cms.Sequence(lowPtQuadStepClusters*
178  lowPtQuadStepSeedLayers*
179  lowPtQuadStepSeeds*
180  lowPtQuadStepTrackCandidates*
181  lowPtQuadStepTracks*
182  lowPtQuadStepSelector)