CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunI_LowPtTripletStep_cff.py
Go to the documentation of this file.
2 
3 # NEW CLUSTERS (remove previously used clusters)
4 lowPtTripletStepClusters = cms.EDProducer("TrackClusterRemover",
5  clusterLessSolution= cms.bool(True),
6  trajectories = cms.InputTag("initialStepTracks"),
7  overrideTrkQuals = cms.InputTag('initialStepSelector','initialStep'),
8  TrackQuality = cms.string('highPurity'),
9  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
10  pixelClusters = cms.InputTag("siPixelClusters"),
11  stripClusters = cms.InputTag("siStripClusters"),
12  Common = cms.PSet(
13  maxChi2 = cms.double(9.0)
14  )
15 )
16 
17 # SEEDING LAYERS
19 lowPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
20 lowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
21 lowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
22 
23 # SEEDS
25 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
26 lowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
27  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
28  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
29  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
30  ptMin = 0.2,
31  originRadius = 0.02,
32  nSigmaZ = 4.0
33  )
34  )
35  )
36 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtTripletStepSeedLayers'
37 
39 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
40 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
41 
42 
43 # QUALITY CUTS DURING TRACK BUILDING
45 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
46  minimumNumberOfHits = 3,
47  minPt = 0.075
48  )
49 
51 # Composite filter
52 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
53  filters = [cms.PSet(refToPSet_ = cms.string('lowPtTripletStepStandardTrajectoryFilter')),
54  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
55  )
56 
58 lowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
59  ComponentName = cms.string('lowPtTripletStepChi2Est'),
60  nSigma = cms.double(3.0),
61  MaxChi2 = cms.double(9.0)
62 )
63 
64 # TRACK BUILDING
66 lowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
67  MeasurementTrackerName = '',
68  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryFilter')),
69  maxCand = 4,
70  estimator = cms.string('lowPtTripletStepChi2Est'),
71  maxDPhiForLooperReconstruction = cms.double(2.0),
72  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
73  # of the outermost Tracker barrel layer (with B=3.8T)
74  maxPtForLooperReconstruction = cms.double(0.7)
75  )
76 
77 # MAKING OF TRACK CANDIDATES
79 lowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
80  src = cms.InputTag('lowPtTripletStepSeeds'),
81  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
82  numHitsForSeedCleaner = cms.int32(50),
83  onlyPixelHitsForSeedCleaner = cms.bool(True),
84 
85  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('lowPtTripletStepTrajectoryBuilder')),
86  clustersToSkip = cms.InputTag('lowPtTripletStepClusters'),
87  doSeedingRegionRebuilding = True,
88  useHitsSplitting = True
89 )
90 
91 # TRACK FITTING
93 lowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
94  src = 'lowPtTripletStepTrackCandidates',
95  AlgorithmName = cms.string('iter1'),
96  Fitter = cms.string('FlexibleKFFittingSmoother')
97  )
98 
99 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits
100 lowPtTripletStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
101  ComponentName = cms.string('lowPtTripletStepTrajectoryCleanerBySharedHits'),
102  fractionShared = cms.double(0.16),
103  allowSharedFirstHit = cms.bool(True)
104  )
105 lowPtTripletStepTrackCandidates.TrajectoryCleaner = 'lowPtTripletStepTrajectoryCleanerBySharedHits'
106 
107 # Final selection
108 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
109 lowPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
110  src='lowPtTripletStepTracks',
111  useAnyMVA = cms.bool(True),
112  GBRForestLabel = cms.string('MVASelectorIter1'),
113  trackSelectors= cms.VPSet(
114  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
115  name = 'lowPtTripletStepLoose',
116  ), #end of pset
117  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
118  name = 'lowPtTripletStepTight',
119  preFilterName = 'lowPtTripletStepLoose',
120  ),
121  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
122  name = 'lowPtTripletStep',
123  preFilterName = 'lowPtTripletStepTight',
124  ),
125  ) #end of vpset
126  ) #end of clone
127 
128 # Final sequence
129 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
130  lowPtTripletStepSeedLayers*
131  lowPtTripletStepSeeds*
132  lowPtTripletStepTrackCandidates*
133  lowPtTripletStepTracks*
134  lowPtTripletStepSelector)
135