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  MeasurementTrackerName = '',
126  trajectoryFilter = dict(refToPSet_ = 'hiHighPtTripletStepTrajectoryFilter'),
127  maxCand = 3,#3 for pp
128  estimator = 'hiHighPtTripletStepChi2Est',
129  maxDPhiForLooperReconstruction = cms.double(2.0),#2.0 for pp
130  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
131  # of the outermost Tracker barrel layer (B=3.8T)
132  maxPtForLooperReconstruction = cms.double(0.7),# 0.7 for pp
133  alwaysUseInvalidHits = False
134 )
135 
136 # MAKING OF TRACK CANDIDATES
137 
138 # Trajectory cleaner in default
139 
141 hiHighPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
142  src = 'hiHighPtTripletStepSeeds',
143 
144  numHitsForSeedCleaner = cms.int32(50),
145  onlyPixelHitsForSeedCleaner = cms.bool(True),
146  TrajectoryBuilderPSet = dict(refToPSet_ = 'hiHighPtTripletStepTrajectoryBuilder'),
147  TrajectoryBuilder = 'hiHighPtTripletStepTrajectoryBuilder',
148  clustersToSkip = cms.InputTag('hiHighPtTripletStepClusters'),
149  doSeedingRegionRebuilding = True,
150  useHitsSplitting = True
151 )
152 
153 
154 # TRACK FITTING
156 hiHighPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
157  src = 'hiHighPtTripletStepTrackCandidates',
158  AlgorithmName = 'highPtTripletStep',
159  Fitter = 'FlexibleKFFittingSmoother'
160 )
161 
162 # Final selection
164 hiHighPtTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
165  src = 'hiHighPtTripletStepTracks',
166  useAnyMVA = True,
167  GBRForestLabel = 'HIMVASelectorIter9',#FIXME MVA for new iteration
168  GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
169  trackSelectors = cms.VPSet(
170  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
171  name = 'hiHighPtTripletStepLoose',
172  applyAdaptedPVCuts = False,
173  useMVA = False,
174  ), #end of pset
175  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
176  name = 'hiHighPtTripletStepTight',
177  preFilterName = 'hiHighPtTripletStepLoose',
178  applyAdaptedPVCuts = False,
179  useMVA = True,
180  minMVA = -0.2
181  ),
182  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
183  name = 'hiHighPtTripletStep',
184  preFilterName = 'hiHighPtTripletStepTight',
185  applyAdaptedPVCuts = False,
186  useMVA = True,
187  minMVA = -0.09
188  ),
189  ) #end of vpset
190 ) #end of clone
191 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
192 trackingPhase1.toModify(hiHighPtTripletStepSelector, useAnyMVA = False)
193 trackingPhase1.toModify(hiHighPtTripletStepSelector, trackSelectors= cms.VPSet(
194  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
195  name = 'hiHighPtTripletStepLoose',
196  applyAdaptedPVCuts = False,
197  useMVA = False,
198  ), #end of pset
199  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
200  name = 'hiHighPtTripletStepTight',
201  preFilterName = 'hiHighPtTripletStepLoose',
202  applyAdaptedPVCuts = False,
203  useMVA = False,
204  minMVA = -0.2
205  ),
206  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
207  name = 'hiHighPtTripletStep',
208  preFilterName = 'hiHighPtTripletStepTight',
209  applyAdaptedPVCuts = False,
210  useMVA = False,
211  minMVA = -0.09
212  ),
213  ) #end of vpset
214 )
215 
217 hiHighPtTripletStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
218  TrackProducers = ['hiHighPtTripletStepTracks'],
219  hasSelector = [1],
220  selectedTrackQuals = ["hiHighPtTripletStepSelector:hiHighPtTripletStep"],
221  copyExtras = True,
222  makeReKeyedSeeds = cms.untracked.bool(False),
223 )
224 
225 
226 hiHighPtTripletStepTask = cms.Task(hiHighPtTripletStepClusters,
227  hiHighPtTripletStepSeedLayers,
228  hiHighPtTripletStepTrackingRegions,
229  hiHighPtTripletStepTracksHitDoubletsCA,
230  hiHighPtTripletStepTracksHitTripletsCA,
231  pixelFitterByHelixProjections,
232  hiHighPtTripletStepPixelTracksFilter,
233  hiHighPtTripletStepPixelTracks,
234  hiHighPtTripletStepSeeds,
235  hiHighPtTripletStepTrackCandidates,
236  hiHighPtTripletStepTracks,
237  hiHighPtTripletStepSelector,
238  hiHighPtTripletStepQual)
239 hiHighPtTripletStep = cms.Sequence(hiHighPtTripletStepTask)
240 
TrajectoryFilter_cff
GroupedCkfTrajectoryBuilder_cfi
hiMultiTrackSelector_cfi
ClusterShapeHitFilterESProducer_cfi
HITrackingRegionProducer_cfi
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...
trackListMerger_cfi
TrackProducer_cfi
globalTrackingRegionWithVertices_cfi
pixelFitterByHelixProjections_cfi
HighPtTripletStep_cff
trackCleaner_cfi
HIPixelTrackFilter_cff
CkfTrackCandidates_cfi
Chi2MeasurementEstimator_cfi