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 
52 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
53 highPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
54 highPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
55 highPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
56 
57 # QUALITY CUTS DURING TRACK BUILDING
59 highPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
60  minimumNumberOfHits = 3,
61  minPt = 0.2
62  )
63 
65 highPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
66  ComponentName = cms.string('highPtTripletStepChi2Est'),
67  nSigma = cms.double(3.0),
68  MaxChi2 = cms.double(30.0)
69 )
70 
71 # TRACK BUILDING
73 highPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
74  MeasurementTrackerName = '',
75  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('highPtTripletStepTrajectoryFilter')),
76  clustersToSkip = cms.InputTag('highPtTripletStepClusters'),
77  maxCand = 4,
78  estimator = cms.string('highPtTripletStepChi2Est'),
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 highPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
88  src = cms.InputTag('highPtTripletStepSeeds'),
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('highPtTripletStepTrajectoryBuilder')),
93  doSeedingRegionRebuilding = True,
94  useHitsSplitting = True
95 )
96 
97 # TRACK FITTING
99 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
100  src = 'highPtTripletStepTrackCandidates',
101  # Algorithm name changed from highPtTripletStep (was iter1) to lowPtTripletStep in order
102  # to keep backward compatibility as detachedQuadStep would be unknown.
103  # In the future, a new enum or alias may be added to support iteration name aliases.
104  AlgorithmName = cms.string('lowPtTripletStep'),
105  Fitter = cms.string('FlexibleKFFittingSmoother'),
106  TTRHBuilder=cms.string('WithTrackAngle'), minGoodCharge = cms.double(2069)
107  )
108 
109 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
110 highPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
111  ComponentName = cms.string('highPtTripletStepTrajectoryCleanerBySharedHits'),
112  fractionShared = cms.double(0.16),
113  allowSharedFirstHit = cms.bool(True)
114  )
115 highPtTripletStepTrackCandidates.TrajectoryCleaner = 'highPtTripletStepTrajectoryCleanerBySharedHits'
116 
117 # Final selection
118 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
119 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
120  src='highPtTripletStepTracks',
121  trackSelectors= cms.VPSet(
122  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
123  name = 'highPtTripletStepLoose',
124  chi2n_par = 2.0,
125  res_par = ( 0.003, 0.002 ),
126  minNumberLayers = 3,
127  maxNumberLostLayers = 3,
128  minNumber3DLayers = 3,
129  d0_par1 = ( 0.7, 4.0 ),
130  dz_par1 = ( 0.8, 4.0 ),
131  d0_par2 = ( 0.4, 4.0 ),
132  dz_par2 = ( 0.6, 4.0 )
133  ), #end of pset
134  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
135  name = 'highPtTripletStepTight',
136  preFilterName = 'highPtTripletStepLoose',
137  chi2n_par = 1.0,
138  res_par = ( 0.003, 0.002 ),
139  minNumberLayers = 3,
140  maxNumberLostLayers = 2,
141  minNumber3DLayers = 3,
142  d0_par1 = ( 0.6, 4.0 ),
143  dz_par1 = ( 0.7, 4.0 ),
144  d0_par2 = ( 0.35, 4.0 ),
145  dz_par2 = ( 0.5, 4.0 )
146  ),
147  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
148  name = 'highPtTripletStep',
149  preFilterName = 'highPtTripletStepTight',
150  chi2n_par = 0.7,
151  res_par = ( 0.003, 0.001 ),
152  minNumberLayers = 3,
153  maxNumberLostLayers = 2,
154  minNumber3DLayers = 3,
155  d0_par1 = ( 0.5, 4.0 ),
156  dz_par1 = ( 0.7, 4.0 ),
157  d0_par2 = ( 0.25, 4.0 ),
158  dz_par2 = ( 0.4, 4.0 )
159  ),
160  ) #end of vpset
161  ) #end of clone
162 
163 # Final sequence
164 HighPtTripletStep = cms.Sequence(highPtTripletStepClusters*
165  highPtTripletStepSeedLayers*
166  highPtTripletStepSeeds*
167  highPtTripletStepTrackCandidates*
168  highPtTripletStepTracks*
169  highPtTripletStepSelector)