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 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
24 
25 # building
26 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
27 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
28  ComponentName = 'initialStepTrajectoryFilter',
29  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
30  minimumNumberOfHits = 3,
31  minPt = 0.05
32  )
33  )
34 
36 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
37  ComponentName = cms.string('initialStepChi2Est'),
38  nSigma = cms.double(3.0),
39  MaxChi2 = cms.double(36.0)
40 )
41 
43 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
44  ComponentName = 'initialStepTrajectoryBuilder',
45  trajectoryFilterName = 'initialStepTrajectoryFilter',
46  alwaysUseInvalidHits = True,
47  maxCand = 6,
48  estimator = cms.string('initialStepChi2Est'),
49  maxDPhiForLooperReconstruction = cms.double(2.0),
50  maxPtForLooperReconstruction = cms.double(0.7)
51  )
52 
54 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
55  src = cms.InputTag('initialStepSeeds'),
56  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
57  numHitsForSeedCleaner = cms.int32(50),
58  onlyPixelHitsForSeedCleaner = cms.bool(True),
59  TrajectoryBuilder = 'initialStepTrajectoryBuilder',
60  doSeedingRegionRebuilding = True,
61  useHitsSplitting = True
62  )
63 
64 # fitting
66 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
67  src = 'initialStepTrackCandidates',
68  AlgorithmName = cms.string('iter0'),
69  Fitter = cms.string('FlexibleKFFittingSmoother')
70  )
71 
72 # Final selection
73 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
74 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
75  src='initialStepTracks',
76  trackSelectors= cms.VPSet(
77  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
78  name = 'initialStepLoose',
79  chi2n_par = 2.0,
80  res_par = ( 0.003, 0.002 ),
81  minNumberLayers = 3,
82  maxNumberLostLayers = 3,
83  minNumber3DLayers = 3,
84  d0_par1 = ( 0.7, 4.0 ),
85  dz_par1 = ( 0.8, 4.0 ),
86  d0_par2 = ( 0.4, 4.0 ),
87  dz_par2 = ( 0.6, 4.0 )
88  ), #end of pset
89  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
90  name = 'initialStepTight',
91  preFilterName = 'initialStepLoose',
92  chi2n_par = 1.0,
93  res_par = ( 0.003, 0.002 ),
94  minNumberLayers = 3,
95  maxNumberLostLayers = 2,
96  minNumber3DLayers = 3,
97  d0_par1 = ( 0.65, 4.0 ),
98  dz_par1 = ( 0.7, 4.0 ),
99  d0_par2 = ( 0.35, 4.0 ),
100  dz_par2 = ( 0.5, 4.0 )
101  ),
102  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
103  name = 'initialStep',
104  preFilterName = 'initialStepTight',
105  chi2n_par = 0.6,
106  res_par = ( 0.003, 0.001 ),
107  minNumberLayers = 3,
108  maxNumberLostLayers = 2,
109  minNumber3DLayers = 3,
110  d0_par1 = ( 0.65, 4.0 ),
111  dz_par1 = ( 0.7, 4.0 ),
112  d0_par2 = ( 0.25, 4.0 ),
113  dz_par2 = ( 0.45, 4.0 )
114  ),
115  ) #end of vpset
116  ) #end of clone
117 
118 # Final sequence
119 InitialStep = cms.Sequence(initialStepSeeds*
120  initialStepTrackCandidates*
121  initialStepTracks*
122  initialStepSelector)