CMS 3D CMS Logo

hiLowPtQuadStep_cff.py
Go to the documentation of this file.
1 from __future__ import absolute_import
3 from .HIPixelTripletSeeds_cff import *
4 from .HIPixel3PrimTracks_cfi import *
5 
6 hiLowPtQuadStepClusters = cms.EDProducer("HITrackClusterRemover",
7  clusterLessSolution = cms.bool(True),
8  trajectories = cms.InputTag("hiGlobalPrimTracks"),
9  overrideTrkQuals = cms.InputTag('hiInitialStepSelector','hiInitialStep'),
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 # SEEDING LAYERS
25 # Using 4 layers layerlist
26 hiLowPtQuadStepSeedLayers = hiPixelLayerQuadruplets.clone(
27  BPix = dict(skipClusters = cms.InputTag('hiLowPtQuadStepClusters')),
28  FPix = dict(skipClusters = cms.InputTag('hiLowPtQuadStepClusters'))
29 )
30 
31 # SEEDS
32 from RecoTracker.TkTrackingRegions.globalTrackingRegionWithVertices_cfi import globalTrackingRegionWithVertices as _globalTrackingRegionWithVertices
33 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
34 from RecoTracker.PixelSeeding.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
40 
41 hiLowPtQuadStepTrackingRegions = _globalTrackingRegionWithVertices.clone(RegionPSet=dict(
42  precise = True,
43  useMultipleScattering = False,
44  useFakeVertices = False,
45  beamSpot = "offlineBeamSpot",
46  useFixedError = True,
47  nSigmaZ = 4.0,
48  sigmaZVertex = 4.0,
49  fixedError = 0.5,
50  VertexCollection = "hiSelectedPixelVertex",
51  ptMin = 0.3,#0.2 for pp
52  useFoundVertices = True,
53  originRadius = 0.02 #0.02 for pp
54 ))
55 hiLowPtQuadStepTracksHitDoubletsCA = _hitPairEDProducer.clone(
56  clusterCheck = "",
57  seedingLayers = "hiLowPtQuadStepSeedLayers",
58  trackingRegions = "hiLowPtQuadStepTrackingRegions",
59  maxElement = 50000000,
60  produceIntermediateHitDoublets = True,
61  layerPairs = [0,1,2]
62 )
63 
64 import RecoTracker.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
65 from RecoTracker.PixelSeeding.caHitQuadrupletEDProducer_cfi import caHitQuadrupletEDProducer as _caHitQuadrupletEDProducer
66 hiLowPtQuadStepTracksHitQuadrupletsCA = _caHitQuadrupletEDProducer.clone(
67  doublets = "hiLowPtQuadStepTracksHitDoubletsCA",
68  extraHitRPhitolerance = 0.0,
69  SeedComparitorPSet = RecoTracker.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
70  maxChi2 = dict(
71  pt1 = 0.7, pt2 = 2,
72  value1 = 1000, value2 = 150,
73  ),
74  useBendingCorrection = True,
75  fitFastCircle = True,
76  fitFastCircleChi2Cut = True,
77  CAThetaCut = 0.0017,
78  CAPhiCut = 0.3,
79 )
80 
81 
82 hiLowPtQuadStepPixelTracksFilter = hiFilter.clone(
83  nSigmaTipMaxTolerance = 0,
84  lipMax = 1.0,
85  tipMax = 1.0,
86  ptMin = 0.4, #seeding region is 0.3
87 )
88 
89 import RecoTracker.PixelTrackFitting.pixelTracks_cfi as _mod
90 
91 hiLowPtQuadStepPixelTracks = _mod.pixelTracks.clone(
92  passLabel = 'Pixel detached tracks with vertex constraint',
93  # Ordered Hits
94  SeedingHitSets = "hiLowPtQuadStepTracksHitQuadrupletsCA",
95  # Fitter
96  Fitter = "pixelFitterByHelixProjections",
97  # Filter
98  Filter = "hiLowPtQuadStepPixelTracksFilter",
99  # Cleaner
100  Cleaner = "trackCleaner"
101 )
102 
103 
104 import RecoTracker.PixelLowPtUtilities.TrackSeeds_cfi
105 hiLowPtQuadStepSeeds = RecoTracker.PixelLowPtUtilities.TrackSeeds_cfi.pixelTrackSeeds.clone(
106  InputCollection = 'hiLowPtQuadStepPixelTracks'
107 )
108 
109 # QUALITY CUTS DURING TRACK BUILDING
111 hiLowPtQuadStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
112  #maxLostHits = 1,
113  minimumNumberOfHits = 3,#3 for pp
114  minPt = 0.075,# 0.075 for pp
115  #constantValueForLostHitsFractionFilter = 0.701
116 )
117 
119 hiLowPtQuadStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
120  ComponentName = 'hiLowPtQuadStepChi2Est',
121  nSigma = 3.0,
122  MaxChi2 = 9.0
123 )
124 
125 
126 # TRACK BUILDING
128 hiLowPtQuadStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
129  trajectoryFilter = dict(refToPSet_ = 'hiLowPtQuadStepTrajectoryFilter'),
130  maxCand = 4, # 4 for pp
131  estimator = 'hiLowPtQuadStepChi2Est',
132  maxDPhiForLooperReconstruction = 2.0, # 2.0 for pp
133  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
134  # of the outermost Tracker barrel layer (B=3.8T)
135  maxPtForLooperReconstruction = 0.7, # 0.7 for pp
136  alwaysUseInvalidHits = False
137 )
138 
139 # MAKING OF TRACK CANDIDATES
140 
141 # Trajectory cleaner in default
142 
144 hiLowPtQuadStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
145  src = 'hiLowPtQuadStepSeeds',
146 
147  numHitsForSeedCleaner = 50,
148  onlyPixelHitsForSeedCleaner = True,
149  TrajectoryBuilderPSet = dict(refToPSet_ = 'hiLowPtQuadStepTrajectoryBuilder'),
150  clustersToSkip = 'hiLowPtQuadStepClusters',
151  doSeedingRegionRebuilding = True,
152  useHitsSplitting = True
153 )
154 
155 
156 # TRACK FITTING
158 hiLowPtQuadStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
159  src = 'hiLowPtQuadStepTrackCandidates',
160  AlgorithmName = 'lowPtQuadStep',
161  Fitter = 'FlexibleKFFittingSmoother'
162 )
163 
164 # Final selection
166 hiLowPtQuadStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
167  src ='hiLowPtQuadStepTracks',
168  useAnyMVA = True,
169  GBRForestLabel = 'HIMVASelectorIter8',#FIXME MVA for new iteration
170  GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
171  trackSelectors = cms.VPSet(
172  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
173  name = 'hiLowPtQuadStepLoose',
174  applyAdaptedPVCuts = False,
175  useMVA = False,
176  ), #end of pset
177  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
178  name = 'hiLowPtQuadStepTight',
179  preFilterName = 'hiLowPtQuadStepLoose',
180  applyAdaptedPVCuts = False,
181  useMVA = True,
182  minMVA = -0.2
183  ),
184  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
185  name = 'hiLowPtQuadStep',
186  preFilterName = 'hiLowPtQuadStepTight',
187  applyAdaptedPVCuts = False,
188  useMVA = True,
189  minMVA = -0.09
190  ),
191  ) #end of vpset
192 ) #end of clone
193 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
194 trackingPhase1.toModify(hiLowPtQuadStepSelector, useAnyMVA = False)
195 trackingPhase1.toModify(hiLowPtQuadStepSelector, trackSelectors = cms.VPSet(
196  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
197  name = 'hiLowPtQuadStepLoose',
198  applyAdaptedPVCuts = False,
199  useMVA = False,
200  ), #end of pset
201  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
202  name = 'hiLowPtQuadStepTight',
203  preFilterName = 'hiLowPtQuadStepLoose',
204  applyAdaptedPVCuts = False,
205  useMVA = False,
206  minMVA = -0.2
207  ),
208  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
209  name = 'hiLowPtQuadStep',
210  preFilterName = 'hiLowPtQuadStepTight',
211  applyAdaptedPVCuts = False,
212  useMVA = False,
213  minMVA = -0.09
214  ),
215  ) #end of vpset
216 )
217 
219 hiLowPtQuadStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
220  TrackProducers = ['hiLowPtQuadStepTracks'],
221  hasSelector = [1],
222  selectedTrackQuals = ["hiLowPtQuadStepSelector:hiLowPtQuadStep"],
223  copyExtras = True,
224  makeReKeyedSeeds = cms.untracked.bool(False),
225 )
226 
227 
228 hiLowPtQuadStepTask = cms.Task(hiLowPtQuadStepClusters,
229  hiLowPtQuadStepSeedLayers,
230  hiLowPtQuadStepTrackingRegions,
231  hiLowPtQuadStepTracksHitDoubletsCA,
232  hiLowPtQuadStepTracksHitQuadrupletsCA,
233  pixelFitterByHelixProjections,
234  hiLowPtQuadStepPixelTracksFilter,
235  hiLowPtQuadStepPixelTracks,
236  hiLowPtQuadStepSeeds,
237  hiLowPtQuadStepTrackCandidates,
238  hiLowPtQuadStepTracks,
239  hiLowPtQuadStepSelector,
240  hiLowPtQuadStepQual)
241 hiLowPtQuadStep = cms.Sequence(hiLowPtQuadStepTask)
242 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...