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 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
32 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
33 initialStepSeeds.ClusterCheckPSet.doClusterCheck = cms.bool(False)
34 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(0)
35 
36 # building
38 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
39  minimumNumberOfHits = 3,
40  minPt = 0.2
41  )
42 
44 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
45  ComponentName = cms.string('initialStepChi2Est'),
46  nSigma = cms.double(3.0),
47  MaxChi2 = cms.double(30.0)
48 )
49 
51 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
52  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilter')),
53  alwaysUseInvalidHits = True,
54  maxCand = 6,
55  estimator = cms.string('initialStepChi2Est'),
56  maxDPhiForLooperReconstruction = cms.double(2.0),
57  maxPtForLooperReconstruction = cms.double(0.7)
58  )
59 
61 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
62  src = cms.InputTag('initialStepSeeds'),
63  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
64  numHitsForSeedCleaner = cms.int32(50),
65  onlyPixelHitsForSeedCleaner = cms.bool(True),
66  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
67  doSeedingRegionRebuilding = True,
68  useHitsSplitting = True
69  )
70 
71 # fitting
73 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
74  src = 'initialStepTrackCandidates',
75  AlgorithmName = cms.string('initialStep'),
76  Fitter = cms.string('FlexibleKFFittingSmoother'),
77  TTRHBuilder=cms.string('WithTrackAngle'), clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutTight'))
78 )
79 
80 # Final selection
81 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
82 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
83  src='initialStepTracks',
84  trackSelectors= cms.VPSet(
85  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
86  name = 'initialStepLoose',
87  chi2n_par = 2.0,
88  res_par = ( 0.003, 0.002 ),
89  minNumberLayers = 3,
90  maxNumberLostLayers = 3,
91  minNumber3DLayers = 3,
92  d0_par1 = ( 0.7, 4.0 ),
93  dz_par1 = ( 0.8, 4.0 ),
94  d0_par2 = ( 0.4, 4.0 ),
95  dz_par2 = ( 0.6, 4.0 )
96  ), #end of pset
97  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
98  name = 'initialStepTight',
99  preFilterName = 'initialStepLoose',
100  chi2n_par = 1.0,
101  res_par = ( 0.003, 0.002 ),
102  minNumberLayers = 3,
103  maxNumberLostLayers = 2,
104  minNumber3DLayers = 3,
105  d0_par1 = ( 0.6, 4.0 ),
106  dz_par1 = ( 0.7, 4.0 ),
107  d0_par2 = ( 0.35, 4.0 ),
108  dz_par2 = ( 0.5, 4.0 )
109  ),
110  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
111  name = 'initialStep',
112  preFilterName = 'initialStepTight',
113  chi2n_par = 0.7,
114  res_par = ( 0.003, 0.001 ),
115  minNumberLayers = 3,
116  maxNumberLostLayers = 2,
117  minNumber3DLayers = 3,
118  d0_par1 = ( 0.5, 4.0 ),
119  dz_par1 = ( 0.7, 4.0 ),
120  d0_par2 = ( 0.25, 4.0 ),
121  dz_par2 = ( 0.4, 4.0 )
122  ),
123  ) #end of vpset
124  ) #end of clone
125 
126 # Final sequence
127 InitialStep = cms.Sequence(initialStepSeeds*
128  initialStepTrackCandidates*
129  initialStepTracks*
130  initialStepSelector)