CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Phase1PU70_InitialStep_cff.py
Go to the documentation of this file.
2 
3 ### STEP 0 ###
4 
5 # hit building
8 
9 # SEEDING LAYERS
11 initialStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
12 
13 # seeding
15 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
17 initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
18  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
19  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
20  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
21  ptMin = 0.7,
22  originRadius = 0.02,
23  nSigmaZ = 4.0
24  )
25  ),
26  SeedMergerPSet = cms.PSet(
27  layerList = cms.PSet(refToPSet_ = cms.string("PixelSeedMergerQuadruplets")),
28  addRemainingTriplets = cms.bool(False),
29  mergeTriplets = cms.bool(True),
30  ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
31  )
32 )
33 initialStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'initialStepSeedLayers'
34 initialStepSeeds.SeedCreatorPSet.magneticField = ''
35 initialStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
36 
38 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
39 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
40 initialStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
41 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
42 
43 # building
45 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
46  minimumNumberOfHits = 3,
47  minPt = 0.2
48  )
49 
51 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
52  ComponentName = cms.string('initialStepChi2Est'),
53  nSigma = cms.double(3.0),
54  MaxChi2 = cms.double(30.0)
55 )
56 
58 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
59  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilter')),
60  alwaysUseInvalidHits = True,
61  maxCand = 6,
62  estimator = cms.string('initialStepChi2Est'),
63  maxDPhiForLooperReconstruction = cms.double(2.0),
64  maxPtForLooperReconstruction = cms.double(0.7)
65  )
66 
68 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
69  src = cms.InputTag('initialStepSeeds'),
70  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
71  numHitsForSeedCleaner = cms.int32(50),
72  onlyPixelHitsForSeedCleaner = cms.bool(True),
73  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
74  doSeedingRegionRebuilding = True,
75  useHitsSplitting = True
76  )
77 
78 # fitting
80 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
81  src = 'initialStepTrackCandidates',
82  AlgorithmName = cms.string('initialStep'),
83  Fitter = cms.string('FlexibleKFFittingSmoother'),
84  TTRHBuilder=cms.string('WithTrackAngle')
85 )
86 
87 # Final selection
88 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
89 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
90  src='initialStepTracks',
91  trackSelectors= cms.VPSet(
92  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
93  name = 'initialStepLoose',
94  chi2n_par = 2.0,
95  res_par = ( 0.003, 0.002 ),
96  minNumberLayers = 3,
97  maxNumberLostLayers = 3,
98  minNumber3DLayers = 3,
99  d0_par1 = ( 0.7, 4.0 ),
100  dz_par1 = ( 0.8, 4.0 ),
101  d0_par2 = ( 0.4, 4.0 ),
102  dz_par2 = ( 0.6, 4.0 )
103  ), #end of pset
104  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
105  name = 'initialStepTight',
106  preFilterName = 'initialStepLoose',
107  chi2n_par = 1.0,
108  res_par = ( 0.003, 0.002 ),
109  minNumberLayers = 3,
110  maxNumberLostLayers = 2,
111  minNumber3DLayers = 3,
112  d0_par1 = ( 0.6, 4.0 ),
113  dz_par1 = ( 0.7, 4.0 ),
114  d0_par2 = ( 0.35, 4.0 ),
115  dz_par2 = ( 0.5, 4.0 )
116  ),
117  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
118  name = 'initialStep',
119  preFilterName = 'initialStepTight',
120  chi2n_par = 0.7,
121  res_par = ( 0.003, 0.001 ),
122  minNumberLayers = 3,
123  maxNumberLostLayers = 2,
124  minNumber3DLayers = 3,
125  d0_par1 = ( 0.5, 4.0 ),
126  dz_par1 = ( 0.7, 4.0 ),
127  d0_par2 = ( 0.25, 4.0 ),
128  dz_par2 = ( 0.4, 4.0 )
129  ),
130  ) #end of vpset
131  ) #end of clone
132 
133 # Final sequence
134 InitialStep = cms.Sequence(initialStepSeedLayers*
135  initialStepSeeds*
136  initialStepTrackCandidates*
137  initialStepTracks*
138  initialStepSelector)