CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU140_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 from RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff import PixelSeedMergerQuadruplets
13 initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
14  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
15  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
16  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
17  ptMin = 0.8,
18  originRadius = 0.02,
19  nSigmaZ = 4.0
20  )
21  ),
22  SeedMergerPSet = cms.PSet(
23  layerList = PixelSeedMergerQuadruplets,
24  addRemainingTriplets = cms.bool(False),
25  mergeTriplets = cms.bool(True),
26  ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
27  )
28 )
29 
31 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
32 initialStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
33 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
34 
35 # building
36 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
37 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
38  ComponentName = 'initialStepTrajectoryFilter',
39  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
40  minimumNumberOfHits = 3,
41  minPt = 0.2
42  )
43  )
44 
46 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
47  ComponentName = cms.string('initialStepChi2Est'),
48  nSigma = cms.double(3.0),
49  MaxChi2 = cms.double(30.0)
50 )
51 
53 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
54  ComponentName = 'initialStepTrajectoryBuilder',
55  trajectoryFilterName = 'initialStepTrajectoryFilter',
56  alwaysUseInvalidHits = True,
57  maxCand = 6,
58  estimator = cms.string('initialStepChi2Est'),
59  maxDPhiForLooperReconstruction = cms.double(2.0),
60  maxPtForLooperReconstruction = cms.double(0.7)
61  )
62 
64 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
65  src = cms.InputTag('initialStepSeeds'),
66  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
67  numHitsForSeedCleaner = cms.int32(50),
68  onlyPixelHitsForSeedCleaner = cms.bool(True),
69  TrajectoryBuilder = 'initialStepTrajectoryBuilder',
70  doSeedingRegionRebuilding = True,
71  useHitsSplitting = True
72  )
73 
74 # fitting
76 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
77  src = 'initialStepTrackCandidates',
78  AlgorithmName = cms.string('iter0'),
79  Fitter = cms.string('FlexibleKFFittingSmoother'),
80  TTRHBuilder=cms.string('WithTrackAngle')
81 )
82 
83 # Final selection
84 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
85 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
86  src='initialStepTracks',
87  trackSelectors= cms.VPSet(
88  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
89  name = 'initialStepLoose',
90  chi2n_par = 2.0,
91  res_par = ( 0.003, 0.002 ),
92  minNumberLayers = 3,
93  maxNumberLostLayers = 3,
94  minNumber3DLayers = 3,
95  d0_par1 = ( 0.7, 4.0 ),
96  dz_par1 = ( 0.8, 4.0 ),
97  d0_par2 = ( 0.4, 4.0 ),
98  dz_par2 = ( 0.6, 4.0 )
99  ), #end of pset
100  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
101  name = 'initialStepTight',
102  preFilterName = 'initialStepLoose',
103  chi2n_par = 1.0,
104  res_par = ( 0.003, 0.002 ),
105  minNumberLayers = 3,
106  maxNumberLostLayers = 2,
107  minNumber3DLayers = 3,
108  d0_par1 = ( 0.6, 4.0 ),
109  dz_par1 = ( 0.7, 4.0 ),
110  d0_par2 = ( 0.35, 4.0 ),
111  dz_par2 = ( 0.5, 4.0 )
112  ),
113  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
114  name = 'initialStep',
115  preFilterName = 'initialStepTight',
116  chi2n_par = 0.7,
117  res_par = ( 0.003, 0.001 ),
118  minNumberLayers = 3,
119  maxNumberLostLayers = 2,
120  minNumber3DLayers = 3,
121  d0_par1 = ( 0.5, 4.0 ),
122  dz_par1 = ( 0.7, 4.0 ),
123  d0_par2 = ( 0.25, 4.0 ),
124  dz_par2 = ( 0.4, 4.0 )
125  ),
126  ) #end of vpset
127  ) #end of clone
128 
129 # Final sequence
130 InitialStep = cms.Sequence(initialStepSeeds*
131  initialStepTrackCandidates*
132  initialStepTracks*
133  initialStepSelector)