CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunI_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.6,
17  originRadius = 0.02,
18  nSigmaZ = 4.0
19  )
20  )
21  )
23 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
24 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
25 
26 # building
28 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
29  minimumNumberOfHits = 3,
30  minPt = 0.2
31  )
32 
34 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
35  ComponentName = cms.string('initialStepChi2Est'),
36  nSigma = cms.double(3.0),
37  MaxChi2 = cms.double(30.0)
38 )
39 
41 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
42  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilter')),
43  alwaysUseInvalidHits = True,
44  maxCand = 6,
45  estimator = cms.string('initialStepChi2Est'),
46  maxDPhiForLooperReconstruction = cms.double(2.0),
47  maxPtForLooperReconstruction = cms.double(0.7)
48  )
49 
51 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
52  src = cms.InputTag('initialStepSeeds'),
53  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
54  numHitsForSeedCleaner = cms.int32(50),
55  onlyPixelHitsForSeedCleaner = cms.bool(True),
56 
57  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
58  doSeedingRegionRebuilding = True,
59  useHitsSplitting = True
60  )
61 
62 # fitting
64 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
65  src = 'initialStepTrackCandidates',
66  AlgorithmName = cms.string('initialStep'),
67  Fitter = cms.string('FlexibleKFFittingSmoother')
68  )
69 
70 # Final selection
71 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
72 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
73  src='initialStepTracks',
74  useAnyMVA = cms.bool(True),
75  GBRForestLabel = cms.string('MVASelectorIter0'),
76  trackSelectors= cms.VPSet(
77  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
78  name = 'initialStepLoose',
79  ), #end of pset
80  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
81  name = 'initialStepTight',
82  preFilterName = 'initialStepLoose',
83  ),
84  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
85  name = 'initialStep',
86  preFilterName = 'initialStepTight',
87  ),
88  ) #end of vpset
89  ) #end of clone
90 
91 # Final sequence
92 InitialStep = cms.Sequence(initialStepSeeds*
93  initialStepTrackCandidates*
94  initialStepTracks*
95  initialStepSelector)
96