CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LowPtTripletStep_cff.py
Go to the documentation of this file.
2 
3 # NEW CLUSTERS (remove previously used clusters)
5 lowPtTripletStepClusters = trackClusterRemover.clone(
6  maxChi2 = cms.double(9.0),
7  trajectories = cms.InputTag("detachedTripletStepTracks"),
8  pixelClusters = cms.InputTag("siPixelClusters"),
9  stripClusters = cms.InputTag("siStripClusters"),
10  oldClusterRemovalInfo = cms.InputTag("detachedTripletStepClusters"),
11  overrideTrkQuals = cms.InputTag('detachedTripletStep'),
12  TrackQuality = cms.string('highPurity'),
13  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
14 )
15 
16 # SEEDING LAYERS
18 lowPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
19 lowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
20 lowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('lowPtTripletStepClusters')
21 
22 # SEEDS
24 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
25 lowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
26  RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
27  ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
28  RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
29  ptMin = 0.2,
30  originRadius = 0.02,
31  nSigmaZ = 4.0
32  )
33  )
34  )
35 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'lowPtTripletStepSeedLayers'
36 
38 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
39 lowPtTripletStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor
40 
41 
42 # QUALITY CUTS DURING TRACK BUILDING
44 lowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
45  minimumNumberOfHits = 3,
46  minPt = 0.075
47  )
48 
50 # Composite filter
51 lowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
52  filters = [cms.PSet(refToPSet_ = cms.string('lowPtTripletStepStandardTrajectoryFilter')),
53  cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
54  )
55 
56 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimatorESProducer_cfi
57 lowPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimatorESProducer_cfi.Chi2ChargeMeasurementEstimator.clone(
58  ComponentName = cms.string('lowPtTripletStepChi2Est'),
59  nSigma = cms.double(3.0),
60  MaxChi2 = cms.double(9.0),
61  minGoodStripCharge = cms.double(2069),
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('lowPtTripletStep'),
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_13TeV_v0'),
113  trackSelectors= cms.VPSet(
114  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
115  name = 'lowPtTripletStepLoose',
116  useMVA = cms.bool(True),
117  minMVA = cms.double(-0.6),
118  chi2n_par = cms.double(9999),
119  ), #end of pset
120  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
121  name = 'lowPtTripletStepTight',
122  preFilterName = 'lowPtTripletStepLoose',
123  ),
124  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
125  name = 'lowPtTripletStep',
126  preFilterName = 'lowPtTripletStepLoose',
127  useMVA = cms.bool(True),
128  minMVA = cms.double(0.4),
129  qualityBit = cms.string('highPurity'),
130  keepAllTracks = cms.bool(True),
131  chi2n_par = cms.double(9999),
132  ),
133  ) #end of vpset
134  ) #end of clone
135 
136 # Final sequence
137 LowPtTripletStep = cms.Sequence(lowPtTripletStepClusters*
138  lowPtTripletStepSeedLayers*
139  lowPtTripletStepSeeds*
140  lowPtTripletStepTrackCandidates*
141  lowPtTripletStepTracks*
142  lowPtTripletStepSelector)