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 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
24 
25 # building
26 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
27 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
28  ComponentName = 'initialStepTrajectoryFilter',
29  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
30  minimumNumberOfHits = 3,
31  minPt = 0.2
32  )
33  )
34 
36 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
37  ComponentName = cms.string('initialStepChi2Est'),
38  nSigma = cms.double(3.0),
39  MaxChi2 = cms.double(30.0)
40 )
41 
43 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
44  ComponentName = 'initialStepTrajectoryBuilder',
45  trajectoryFilterName = 'initialStepTrajectoryFilter',
46  alwaysUseInvalidHits = True,
47  maxCand = 6,
48  estimator = cms.string('initialStepChi2Est'),
49  maxDPhiForLooperReconstruction = cms.double(2.0),
50  maxPtForLooperReconstruction = cms.double(0.7)
51  )
52 
54 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
55  src = cms.InputTag('initialStepSeeds'),
56  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
57  numHitsForSeedCleaner = cms.int32(50),
58  onlyPixelHitsForSeedCleaner = cms.bool(True),
59 
60  TrajectoryBuilder = 'initialStepTrajectoryBuilder',
61  doSeedingRegionRebuilding = True,
62  useHitsSplitting = True
63  )
64 
65 # fitting
67 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
68  src = 'initialStepTrackCandidates',
69  AlgorithmName = cms.string('iter0'),
70  Fitter = cms.string('FlexibleKFFittingSmoother')
71  )
72 
73 # Final selection
74 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
75 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
76  src='initialStepTracks',
77  useAnyMVA = cms.bool(True),
78  GBRForestLabel = cms.string('MVASelectorIter0'),
79  trackSelectors= cms.VPSet(
80  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
81  name = 'initialStepLoose',
82  ), #end of pset
83  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
84  name = 'initialStepTight',
85  preFilterName = 'initialStepLoose',
86  ),
87  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
88  name = 'initialStep',
89  preFilterName = 'initialStepTight',
90  ),
91  ) #end of vpset
92  ) #end of clone
93 
94 # Final sequence
95 InitialStep = cms.Sequence(initialStepSeeds*
96  initialStepTrackCandidates*
97  initialStepTracks*
98  initialStepSelector)
99