CMS 3D CMS Logo

hiHighPtTripletStep_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 hiHighPtTripletStepClusters = cms.EDProducer("HITrackClusterRemover",
7  clusterLessSolution = cms.bool(True),
8  trajectories = cms.InputTag("hiLowPtQuadStepTracks"),
9  overrideTrkQuals = cms.InputTag("hiLowPtQuadStepSelector","hiLowPtQuadStep"),
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 3 layers layerlist
26 hiHighPtTripletStepSeedLayers = highPtTripletStepSeedLayers.clone(
27  BPix = dict(skipClusters = 'hiHighPtTripletStepClusters'),
28  FPix = dict(skipClusters = 'hiHighPtTripletStepClusters')
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 RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
40 
41 hiHighPtTripletStepTrackingRegions = _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.8,#0.6 for pp
52  useFoundVertices = True,
53  originRadius = 0.02 #0.02 for pp
54 ))
55 hiHighPtTripletStepTracksHitDoubletsCA = _hitPairEDProducer.clone(
56  clusterCheck = "",
57  seedingLayers = "hiHighPtTripletStepSeedLayers",
58  trackingRegions = "hiHighPtTripletStepTrackingRegions",
59  maxElement = 50000000,
60  produceIntermediateHitDoublets = True,
61  layerPairs = [0,1]
62 )
63 
64 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi import caHitTripletEDProducer as _caHitTripletEDProducer
65 hiHighPtTripletStepTracksHitTripletsCA = _caHitTripletEDProducer.clone(
66  doublets = "hiHighPtTripletStepTracksHitDoubletsCA",
67  extraHitRPhitolerance = 0.0,
68  SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
69  maxChi2 = dict(
70  pt1 = 0.8, pt2 = 8,
71  value1 = 100, value2 = 6,
72  ),
73  useBendingCorrection = True,
74  CAThetaCut = 0.004,
75  CAPhiCut = 0.07,
76  CAHardPtCut = 0.3,
77 )
78 
79 hiHighPtTripletStepPixelTracksFilter = hiFilter.clone(
80  nSigmaTipMaxTolerance = 0,
81  lipMax = 1.0,
82  tipMax = 1.0,
83  ptMin = 1.0, #seeding region is 0.6
84 )
85 
86 import RecoPixelVertexing.PixelTrackFitting.pixelTracks_cfi as _mod
87 
88 hiHighPtTripletStepPixelTracks = _mod.pixelTracks.clone(
89  passLabel = 'Pixel detached tracks with vertex constraint',
90  # Ordered Hits
91  SeedingHitSets = "hiHighPtTripletStepTracksHitTripletsCA",
92  # Fitter
93  Fitter = "pixelFitterByHelixProjections",
94  # Filter
95  Filter = "hiHighPtTripletStepPixelTracksFilter",
96  # Cleaner
97  Cleaner = "trackCleaner"
98 )
99 
100 import RecoPixelVertexing.PixelLowPtUtilities.TrackSeeds_cfi
101 hiHighPtTripletStepSeeds = RecoPixelVertexing.PixelLowPtUtilities.TrackSeeds_cfi.pixelTrackSeeds.clone(
102  InputCollection = 'hiHighPtTripletStepPixelTracks'
103 )
104 
105 # QUALITY CUTS DURING TRACK BUILDING
107 hiHighPtTripletStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
108  #maxLostHits = 1,
109  minimumNumberOfHits = 3,#3 for pp
110  minPt = 0.2,# 0.2 for pp
111  #constantValueForLostHitsFractionFilter = 0.701
112 )
113 
115 hiHighPtTripletStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
116  ComponentName = 'hiHighPtTripletStepChi2Est',
117  nSigma = 3.0,
118  MaxChi2 = 9.0# 30 for pp
119 )
120 
121 
122 # TRACK BUILDING
124 hiHighPtTripletStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
125  trajectoryFilter = dict(refToPSet_ = 'hiHighPtTripletStepTrajectoryFilter'),
126  maxCand = 3, # 3 for pp
127  estimator = 'hiHighPtTripletStepChi2Est',
128  maxDPhiForLooperReconstruction = 2.0, # 2.0 for pp
129  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
130  # of the outermost Tracker barrel layer (B=3.8T)
131  maxPtForLooperReconstruction = 0.7, # 0.7 for pp
132  alwaysUseInvalidHits = False
133 )
134 
135 # MAKING OF TRACK CANDIDATES
136 
137 # Trajectory cleaner in default
138 
140 hiHighPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
141  src = 'hiHighPtTripletStepSeeds',
142 
143  numHitsForSeedCleaner = 50,
144  onlyPixelHitsForSeedCleaner = True,
145  TrajectoryBuilderPSet = dict(refToPSet_ = 'hiHighPtTripletStepTrajectoryBuilder'),
146  clustersToSkip = 'hiHighPtTripletStepClusters',
147  doSeedingRegionRebuilding = True,
148  useHitsSplitting = True
149 )
150 
151 
152 # TRACK FITTING
154 hiHighPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
155  src = 'hiHighPtTripletStepTrackCandidates',
156  AlgorithmName = 'highPtTripletStep',
157  Fitter = 'FlexibleKFFittingSmoother'
158 )
159 
160 # Final selection
162 hiHighPtTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
163  src = 'hiHighPtTripletStepTracks',
164  useAnyMVA = True,
165  GBRForestLabel = 'HIMVASelectorIter9',#FIXME MVA for new iteration
166  GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
167  trackSelectors = cms.VPSet(
168  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
169  name = 'hiHighPtTripletStepLoose',
170  applyAdaptedPVCuts = False,
171  useMVA = False,
172  ), #end of pset
173  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
174  name = 'hiHighPtTripletStepTight',
175  preFilterName = 'hiHighPtTripletStepLoose',
176  applyAdaptedPVCuts = False,
177  useMVA = True,
178  minMVA = -0.2
179  ),
180  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
181  name = 'hiHighPtTripletStep',
182  preFilterName = 'hiHighPtTripletStepTight',
183  applyAdaptedPVCuts = False,
184  useMVA = True,
185  minMVA = -0.09
186  ),
187  ) #end of vpset
188 ) #end of clone
189 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
190 trackingPhase1.toModify(hiHighPtTripletStepSelector, useAnyMVA = False)
191 trackingPhase1.toModify(hiHighPtTripletStepSelector, trackSelectors= cms.VPSet(
192  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
193  name = 'hiHighPtTripletStepLoose',
194  applyAdaptedPVCuts = False,
195  useMVA = False,
196  ), #end of pset
197  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
198  name = 'hiHighPtTripletStepTight',
199  preFilterName = 'hiHighPtTripletStepLoose',
200  applyAdaptedPVCuts = False,
201  useMVA = False,
202  minMVA = -0.2
203  ),
204  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
205  name = 'hiHighPtTripletStep',
206  preFilterName = 'hiHighPtTripletStepTight',
207  applyAdaptedPVCuts = False,
208  useMVA = False,
209  minMVA = -0.09
210  ),
211  ) #end of vpset
212 )
213 
215 hiHighPtTripletStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
216  TrackProducers = ['hiHighPtTripletStepTracks'],
217  hasSelector = [1],
218  selectedTrackQuals = ["hiHighPtTripletStepSelector:hiHighPtTripletStep"],
219  copyExtras = True,
220  makeReKeyedSeeds = cms.untracked.bool(False),
221 )
222 
223 
224 hiHighPtTripletStepTask = cms.Task(hiHighPtTripletStepClusters,
225  hiHighPtTripletStepSeedLayers,
226  hiHighPtTripletStepTrackingRegions,
227  hiHighPtTripletStepTracksHitDoubletsCA,
228  hiHighPtTripletStepTracksHitTripletsCA,
229  pixelFitterByHelixProjections,
230  hiHighPtTripletStepPixelTracksFilter,
231  hiHighPtTripletStepPixelTracks,
232  hiHighPtTripletStepSeeds,
233  hiHighPtTripletStepTrackCandidates,
234  hiHighPtTripletStepTracks,
235  hiHighPtTripletStepSelector,
236  hiHighPtTripletStepQual)
237 hiHighPtTripletStep = cms.Sequence(hiHighPtTripletStepTask)
238 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...