CMS 3D CMS Logo

hiLowPtTripletStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 # NEW CLUSTERS (remove previously used clusters)
5 hiLowPtTripletStepClusters = cms.EDProducer("HITrackClusterRemover",
6  clusterLessSolution= cms.bool(True),
7  oldClusterRemovalInfo = cms.InputTag("hiDetachedTripletStepClusters"),
8  trajectories = cms.InputTag("hiDetachedTripletStepTracks"),
9  overrideTrkQuals = cms.InputTag("hiDetachedTripletStepSelector","hiDetachedTripletStep"),
10  TrackQuality = cms.string('highPurity'),
11  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
12  pixelClusters = cms.InputTag("siPixelClusters"),
13  stripClusters = cms.InputTag("siStripClusters"),
14  Common = cms.PSet(
15  maxChi2 = cms.double(9.0)
16  ),
17  Strip = cms.PSet(
18  #Yen-Jie's mod to preserve merged clusters
19  maxSize = cms.uint32(2),
20  maxChi2 = cms.double(9.0)
21  )
22  )
23 
24 
25 # SEEDING LAYERS
27 hiLowPtTripletStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
28  BPix = dict(skipClusters = cms.InputTag('hiLowPtTripletStepClusters')),
29  FPix = dict(skipClusters = cms.InputTag('hiLowPtTripletStepClusters'))
30 )
31 
32 # SEEDS
33 from RecoTracker.TkTrackingRegions.globalTrackingRegionWithVertices_cfi import globalTrackingRegionWithVertices as _globalTrackingRegionWithVertices
34 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
35 from RecoTracker.PixelSeeding.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
37 import RecoTracker.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
42 
43 hiLowPtTripletStepTrackingRegions = _globalTrackingRegionWithVertices.clone(RegionPSet=dict(
44  precise = True,
45  useMultipleScattering = False,
46  useFakeVertices = False,
47  beamSpot = "offlineBeamSpot",
48  useFixedError = False,
49  nSigmaZ = 4.0,
50  sigmaZVertex = 4.0,
51  fixedError = 0.2,
52  VertexCollection = "hiSelectedPixelVertex",
53  ptMin = 0.4,
54  useFoundVertices = True,
55  originRadius = 0.02
56 ))
57 hiLowPtTripletStepTracksHitDoublets = _hitPairEDProducer.clone(
58  clusterCheck = "",
59  seedingLayers = "hiLowPtTripletStepSeedLayers",
60  trackingRegions = "hiLowPtTripletStepTrackingRegions",
61  maxElement = 50000000,
62  produceIntermediateHitDoublets = True,
63 )
64 import RecoTracker.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
65 hiLowPtTripletStepTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
66  doublets = "hiLowPtTripletStepTracksHitDoublets",
67  #maxElement = 5000000,
68  SeedComparitorPSet = RecoTracker.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
69  produceSeedingHitSets = True,
70 )
71 
72 from RecoTracker.PixelSeeding.caHitTripletEDProducer_cfi import caHitTripletEDProducer as _caHitTripletEDProducer
73 hiLowPtTripletStepTracksHitDoubletsCA = hiLowPtTripletStepTracksHitDoublets.clone(
74  layerPairs = [0,1]
75 )
76 hiLowPtTripletStepTracksHitTripletsCA = _caHitTripletEDProducer.clone(
77  doublets = "hiLowPtTripletStepTracksHitDoubletsCA",
78  extraHitRPhitolerance = hiLowPtTripletStepTracksHitTriplets.extraHitRPhitolerance,
79  SeedComparitorPSet = hiLowPtTripletStepTracksHitTriplets.SeedComparitorPSet,
80  maxChi2 = dict(
81  pt1 = 0.8, pt2 = 2,
82  value1 = 70 , value2 = 8,
83  ),
84  useBendingCorrection = True,
85  CAThetaCut = 0.002,
86  CAPhiCut = 0.05,
87 )
88 
89 hiLowPtTripletStepPixelTracksFilter = hiFilter.clone(
90  nSigmaLipMaxTolerance = 4.0,
91  nSigmaTipMaxTolerance = 4.0,
92  lipMax = 0,
93  ptMin = 0.4,
94 )
95 
96 import RecoTracker.PixelTrackFitting.pixelTracks_cfi as _mod
97 
98 hiLowPtTripletStepPixelTracks = _mod.pixelTracks.clone(
99  passLabel = 'Pixel primary tracks with vertex constraint',
100  # Ordered Hits
101  SeedingHitSets = "hiLowPtTripletStepTracksHitTriplets",
102  # Fitter
103  Fitter = "pixelFitterByHelixProjections",
104  # Filter
105  Filter = "hiLowPtTripletStepPixelTracksFilter",
106  # Cleaner
107  Cleaner = "trackCleaner"
108 )
109 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
110 trackingPhase1.toModify(hiLowPtTripletStepPixelTracks,
111  SeedingHitSets = "hiLowPtTripletStepTracksHitTripletsCA"
112 )
113 
114 
115 import RecoTracker.PixelLowPtUtilities.TrackSeeds_cfi
116 hiLowPtTripletStepSeeds = RecoTracker.PixelLowPtUtilities.TrackSeeds_cfi.pixelTrackSeeds.clone(
117  InputCollection = 'hiLowPtTripletStepPixelTracks'
118 )
119 
120 
121 # QUALITY CUTS DURING TRACK BUILDING
123 hiLowPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
124  maxLostHits = 1,
125  minimumNumberOfHits = 6,
126  minPt = 0.4
127 )
128 
130 hiLowPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
131  ComponentName = 'hiLowPtTripletStepChi2Est',
132  nSigma = 3.0,
133  MaxChi2 = 9.0
134 )
135 
136 # TRACK BUILDING
138 hiLowPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
139  trajectoryFilter = dict(refToPSet_ = 'hiLowPtTripletStepTrajectoryFilter'),
140  maxCand = 3,
141  estimator = 'hiLowPtTripletStepChi2Est',
142  maxDPhiForLooperReconstruction = 2.0,
143  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
144  # of the outermost Tracker barrel layer (with B=3.8T)
145  maxPtForLooperReconstruction = 0.7,
146 )
147 
148 # MAKING OF TRACK CANDIDATES
150 hiLowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
151  src = 'hiLowPtTripletStepSeeds',
152 
153  numHitsForSeedCleaner = 50,
154  onlyPixelHitsForSeedCleaner = True,
155  TrajectoryBuilderPSet = dict(refToPSet_ = 'hiLowPtTripletStepTrajectoryBuilder'),
156  clustersToSkip = 'hiLowPtTripletStepClusters',
157  doSeedingRegionRebuilding = True,
158  useHitsSplitting = True
159 )
160 
161 # TRACK FITTING
163 hiLowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
164  src = 'hiLowPtTripletStepTrackCandidates',
165  AlgorithmName = 'lowPtTripletStep',
166  Fitter='FlexibleKFFittingSmoother'
167 )
168 
169 
170 
171 # Final selection
173 hiLowPtTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
174  src = 'hiLowPtTripletStepTracks',
175  useAnyMVA = True,
176  GBRForestLabel = 'HIMVASelectorIter5',
177  GBRForestVars = ['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'relpterr', 'nhits', 'nlayers', 'eta'],
178  trackSelectors= cms.VPSet(
179  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
180  name = 'hiLowPtTripletStepLoose',
181  useMVA = False
182  ), #end of pset
183  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
184  name = 'hiLowPtTripletStepTight',
185  preFilterName = 'hiLowPtTripletStepLoose',
186  useMVA = True,
187  minMVA = -0.58
188  ),
189  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
190  name = 'hiLowPtTripletStep',
191  preFilterName = 'hiLowPtTripletStepTight',
192  useMVA = True,
193  minMVA = 0.35
194  ),
195  ) #end of vpset
196 ) #end of clone
197 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
198 trackingPhase1.toModify(hiLowPtTripletStepSelector, useAnyMVA = False)
199 trackingPhase1.toModify(hiLowPtTripletStepSelector, trackSelectors= cms.VPSet(
200  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
201  name = 'hiLowPtTripletStepLoose',
202  useMVA = False
203  ), #end of pset
204  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
205  name = 'hiLowPtTripletStepTight',
206  preFilterName = 'hiLowPtTripletStepLoose',
207  useMVA = False,
208  minMVA = -0.58
209  ),
210  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
211  name = 'hiLowPtTripletStep',
212  preFilterName = 'hiLowPtTripletStepTight',
213  useMVA = False,
214  minMVA = 0.35
215  ),
216  ) #end of vpset
217 )
218 
219 
221 hiLowPtTripletStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
222  TrackProducers = ['hiLowPtTripletStepTracks'],
223  hasSelector = [1],
224  selectedTrackQuals = ["hiLowPtTripletStepSelector:hiLowPtTripletStep"],
225  copyExtras = True,
226  makeReKeyedSeeds = cms.untracked.bool(False),
227  #writeOnlyTrkQuals = True
228 )
229 
230 # Final sequence
231 
232 hiLowPtTripletStepTask = cms.Task(hiLowPtTripletStepClusters,
233  hiLowPtTripletStepSeedLayers,
234  hiLowPtTripletStepTrackingRegions,
235  hiLowPtTripletStepTracksHitDoublets,
236  hiLowPtTripletStepTracksHitTriplets,
237  pixelFitterByHelixProjections,
238  hiLowPtTripletStepPixelTracksFilter,
239  hiLowPtTripletStepPixelTracks,hiLowPtTripletStepSeeds,
240  hiLowPtTripletStepTrackCandidates,
241  hiLowPtTripletStepTracks,
242  hiLowPtTripletStepSelector,
243  hiLowPtTripletStepQual
244  )
245 hiLowPtTripletStep = cms.Sequence(hiLowPtTripletStepTask)
246 hiLowPtTripletStepTask_Phase1 = hiLowPtTripletStepTask.copy()
247 hiLowPtTripletStepTask_Phase1.replace(hiLowPtTripletStepTracksHitDoublets, hiLowPtTripletStepTracksHitDoubletsCA)
248 hiLowPtTripletStepTask_Phase1.replace(hiLowPtTripletStepTracksHitTriplets, hiLowPtTripletStepTracksHitTripletsCA)
249 trackingPhase1.toReplaceWith(hiLowPtTripletStepTask, hiLowPtTripletStepTask_Phase1)
TRIGGER SELECTION #####.
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...