test
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.
1 import FWCore.ParameterSet.Config as cms
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 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = 100000
26 
27 # building
29 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
30  minimumNumberOfHits = 3,
31  minPt = 0.2
32  )
33 
35 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
36  ComponentName = cms.string('initialStepChi2Est'),
37  nSigma = cms.double(3.0),
38  MaxChi2 = cms.double(30.0),
39  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone')),
40 )
41 
43 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
44  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryFilter')),
45  alwaysUseInvalidHits = True,
46  maxCand = 5,
47  estimator = cms.string('initialStepChi2Est'),
48  maxDPhiForLooperReconstruction = cms.double(2.0),
49  maxPtForLooperReconstruction = cms.double(0.7)
50  )
51 
53 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
54  src = cms.InputTag('initialStepSeeds'),
55  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
56  numHitsForSeedCleaner = cms.int32(50),
57  onlyPixelHitsForSeedCleaner = cms.bool(True),
58 
59  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('initialStepTrajectoryBuilder')),
60  doSeedingRegionRebuilding = True,
61  useHitsSplitting = True
62  )
63 
64 # fitting
66 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
67  src = 'initialStepTrackCandidates',
68  AlgorithmName = cms.string('initialStep'),
69  Fitter = cms.string('FlexibleKFFittingSmoother')
70  )
71 
72 # Final selection
73 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
74 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
75  src='initialStepTracks',
76  useAnyMVA = cms.bool(False),
77  GBRForestLabel = cms.string('MVASelectorIter0'),
78  trackSelectors= cms.VPSet(
79  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
80  name = 'initialStepLoose',
81  ), #end of pset
82  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
83  name = 'initialStepTight',
84  preFilterName = 'initialStepLoose',
85  ),
86  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
87  name = 'QualityMasks',
88  preFilterName = 'initialStepTight',
89  ),
90  ), #end of vpset
91  vertices = cms.InputTag("pixelVertices")
92  ) #end of clone
93 
94 # Final sequence
95 InitialStep = cms.Sequence(initialStepSeeds*
96  initialStepTrackCandidates*
97  initialStepTracks*
98  initialStepSelector)
99