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