CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LowPU_InitialStep_cff.py
Go to the documentation of this file.
2 
3 ### STEP 0 ###
4 
5 # hit building
8 
9 # seeding
11 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
12 initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
13  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
14  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
15  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
16  ptMin = 0.35,
17  originRadius = 0.03,
18  nSigmaZ = 4.0
19  )
20  )
21  )
23 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
24 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
25 
26 # building
28 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
29  minimumNumberOfHits = 3,
30  minPt = 0.05
31  )
32 
34 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
35  ComponentName = cms.string('initialStepChi2Est'),
36  nSigma = cms.double(3.0),
37  MaxChi2 = cms.double(36.0)
38 )
39 
41 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
42  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilter')),
43  alwaysUseInvalidHits = True,
44  maxCand = 6,
45  estimator = cms.string('initialStepChi2Est'),
46  maxDPhiForLooperReconstruction = cms.double(2.0),
47  maxPtForLooperReconstruction = cms.double(0.7)
48  )
49 
51 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
52  src = cms.InputTag('initialStepSeeds'),
53  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
54  numHitsForSeedCleaner = cms.int32(50),
55  onlyPixelHitsForSeedCleaner = cms.bool(True),
56  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
57  doSeedingRegionRebuilding = True,
58  useHitsSplitting = True
59  )
60 
61 # fitting
63 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
64  src = 'initialStepTrackCandidates',
65  AlgorithmName = cms.string('initialStep'),
66  Fitter = cms.string('FlexibleKFFittingSmoother')
67  )
68 
69 # Final selection
70 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
71 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
72  src='initialStepTracks',
73  trackSelectors= cms.VPSet(
74  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
75  name = 'initialStepLoose',
76  chi2n_par = 2.0,
77  res_par = ( 0.003, 0.002 ),
78  minNumberLayers = 3,
79  maxNumberLostLayers = 3,
80  minNumber3DLayers = 3,
81  d0_par1 = ( 0.7, 4.0 ),
82  dz_par1 = ( 0.8, 4.0 ),
83  d0_par2 = ( 0.4, 4.0 ),
84  dz_par2 = ( 0.6, 4.0 )
85  ), #end of pset
86  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
87  name = 'initialStepTight',
88  preFilterName = 'initialStepLoose',
89  chi2n_par = 1.0,
90  res_par = ( 0.003, 0.002 ),
91  minNumberLayers = 3,
92  maxNumberLostLayers = 2,
93  minNumber3DLayers = 3,
94  d0_par1 = ( 0.65, 4.0 ),
95  dz_par1 = ( 0.7, 4.0 ),
96  d0_par2 = ( 0.35, 4.0 ),
97  dz_par2 = ( 0.5, 4.0 )
98  ),
99  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
100  name = 'initialStep',
101  preFilterName = 'initialStepTight',
102  chi2n_par = 0.6,
103  res_par = ( 0.003, 0.001 ),
104  minNumberLayers = 3,
105  maxNumberLostLayers = 2,
106  minNumber3DLayers = 3,
107  d0_par1 = ( 0.65, 4.0 ),
108  dz_par1 = ( 0.7, 4.0 ),
109  d0_par2 = ( 0.25, 4.0 ),
110  dz_par2 = ( 0.45, 4.0 )
111  ),
112  ) #end of vpset
113  ) #end of clone
114 
115 # Final sequence
116 InitialStep = cms.Sequence(initialStepSeeds*
117  initialStepTrackCandidates*
118  initialStepTracks*
119  initialStepSelector)