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.
1 import FWCore.ParameterSet.Config as cms
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.8,
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  minNrOfHitsForRebuild = 1,
61  alwaysUseInvalidHits = True,
62  maxCand = 7,
63  estimator = cms.string('initialStepChi2Est'),
64  maxDPhiForLooperReconstruction = cms.double(2.0),
65  maxPtForLooperReconstruction = cms.double(0.7)
66  )
67 
69 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
70  src = cms.InputTag('initialStepSeeds'),
71  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
72  numHitsForSeedCleaner = cms.int32(50),
73  onlyPixelHitsForSeedCleaner = cms.bool(True),
74  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
75  doSeedingRegionRebuilding = True,
76  useHitsSplitting = True
77  )
78 
79 # fitting
81 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
82  src = 'initialStepTrackCandidates',
83  AlgorithmName = cms.string('initialStep'),
84  Fitter = cms.string('FlexibleKFFittingSmoother'),
85  TTRHBuilder=cms.string('WithTrackAngle')
86 )
87 
88 # Final selection
89 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
90 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
91  src='initialStepTracks',
92  trackSelectors= cms.VPSet(
93  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
94  name = 'initialStepLoose',
95  chi2n_par = 2.0,
96  res_par = ( 0.003, 0.002 ),
97  minNumberLayers = 3,
98  maxNumberLostLayers = 3,
99  minNumber3DLayers = 3,
100  d0_par1 = ( 0.8, 4.0 ),
101  dz_par1 = ( 0.9, 4.0 ),
102  d0_par2 = ( 0.6, 4.0 ),
103  dz_par2 = ( 0.8, 4.0 )
104  ), #end of pset
105  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
106  name = 'initialStepTight',
107  preFilterName = 'initialStepLoose',
108  chi2n_par = 1.4,
109  res_par = ( 0.003, 0.002 ),
110  minNumberLayers = 3,
111  maxNumberLostLayers = 2,
112  minNumber3DLayers = 3,
113  d0_par1 = ( 0.7, 4.0 ),
114  dz_par1 = ( 0.8, 4.0 ),
115  d0_par2 = ( 0.5, 4.0 ),
116  dz_par2 = ( 0.7, 4.0 )
117  ),
118  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
119  name = 'initialStep',
120  preFilterName = 'initialStepTight',
121  chi2n_par = 1.0,
122  res_par = ( 0.003, 0.001 ),
123  minNumberLayers = 3,
124  maxNumberLostLayers = 2,
125  minNumber3DLayers = 3,
126  d0_par1 = ( 0.6, 4.0 ),
127  dz_par1 = ( 0.7, 4.0 ),
128  d0_par2 = ( 0.45, 4.0 ),
129  dz_par2 = ( 0.55, 4.0 )
130  ),
131  ) #end of vpset
132  ) #end of clone
133 
134 # Final sequence
135 InitialStep = cms.Sequence(initialStepSeedLayers*
136  initialStepSeeds*
137  initialStepTrackCandidates*
138  initialStepTracks*
139  initialStepSelector)