CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PostLS1_InitialStep_cff.py
Go to the documentation of this file.
2 
3 ### STEP 0 ###
4 
5 # hit building
8 
9 initialStepClusters = cms.EDProducer("TrackClusterRemover",
10  clusterLessSolution= cms.bool(True),
11  pixelClusters = cms.InputTag("siPixelClusters"),
12  stripClusters = cms.InputTag("siStripClusters"),
13  doStripChargeCheck = cms.bool(True),
14  stripRecHits = cms.string('siStripMatchedRecHits'),
15  Common = cms.PSet(
16  maxChi2 = cms.double(9.0),
17  minGoodStripCharge = cms.double(50.0)
18  )
19 )
20 
21 # SEEDING LAYERS
23 initialStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
24 initialStepSeedLayers.BPix.skipClusters = cms.InputTag('initialStepClusters')
25 initialStepSeedLayers.FPix.skipClusters = cms.InputTag('initialStepClusters')
26 
27 
28 # seeding
30 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
31 initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
32  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
33  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
34  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
35  ptMin = 0.6,
36  originRadius = 0.02,
37  nSigmaZ = 4.0
38  )
39  )
40  )
41 initialStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'initialStepSeedLayers'
42 
44 initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
45 
46 # building
47 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
48 initialStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
49  ComponentName = 'initialStepTrajectoryFilter',
50  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
51  minimumNumberOfHits = 3,
52  minPt = 0.2
53  )
54  )
55 
57 initialStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
58  ComponentName = cms.string('initialStepChi2Est'),
59  nSigma = cms.double(3.0),
60  MaxChi2 = cms.double(30.0)
61 )
62 
64 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
65  ComponentName = 'initialStepTrajectoryBuilder',
66  trajectoryFilterName = 'initialStepTrajectoryFilter',
67  alwaysUseInvalidHits = True,
68  clustersToSkip = cms.InputTag('initialStepClusters'),
69  maxCand = 6,
70  estimator = cms.string('initialStepChi2Est'),
71  maxDPhiForLooperReconstruction = cms.double(2.0),
72  maxPtForLooperReconstruction = cms.double(0.7)
73  )
74 
76 initialStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
77  src = cms.InputTag('initialStepSeeds'),
78  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
79  numHitsForSeedCleaner = cms.int32(50),
80  onlyPixelHitsForSeedCleaner = cms.bool(True),
81 
82  TrajectoryBuilder = 'initialStepTrajectoryBuilder',
83  doSeedingRegionRebuilding = True,
84  useHitsSplitting = True
85  )
86 
87 # fitting
89 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
90  src = 'initialStepTrackCandidates',
91  AlgorithmName = cms.string('iter0'),
92  Fitter = cms.string('FlexibleKFFittingSmoother')
93  )
94 
95 # Final selection
96 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
97 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
98  src='initialStepTracks',
99  trackSelectors= cms.VPSet(
100  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
101  name = 'initialStepLoose',
102  ), #end of pset
103  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
104  name = 'initialStepTight',
105  preFilterName = 'initialStepLoose',
106  ),
107  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
108  name = 'initialStep',
109  preFilterName = 'initialStepTight',
110  ),
111  ) #end of vpset
112  ) #end of clone
113 
114 # Final sequence
115 InitialStep = cms.Sequence(initialStepClusters*
116  initialStepSeedLayers*
117  initialStepSeeds*
118  initialStepTrackCandidates*
119  initialStepTracks*
120  initialStepSelector)