CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
37 import RecoPixelVertexing.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 RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
65 hiLowPtTripletStepTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
66  doublets = "hiLowPtTripletStepTracksHitDoublets",
67  #maxElement = 5000000,
68  SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
69  produceSeedingHitSets = True,
70 )
71 
72 from RecoPixelVertexing.PixelTriplets.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 RecoPixelVertexing.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 RecoPixelVertexing.PixelLowPtUtilities.TrackSeeds_cfi
116 hiLowPtTripletStepSeeds = RecoPixelVertexing.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  MeasurementTrackerName = '',
140  trajectoryFilter = dict(refToPSet_ = 'hiLowPtTripletStepTrajectoryFilter'),
141  maxCand = 3,
142  estimator = 'hiLowPtTripletStepChi2Est',
143  maxDPhiForLooperReconstruction = cms.double(2.0),
144  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
145  # of the outermost Tracker barrel layer (with B=3.8T)
146  maxPtForLooperReconstruction = cms.double(0.7)
147 )
148 
149 # MAKING OF TRACK CANDIDATES
151 hiLowPtTripletStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
152  src = 'hiLowPtTripletStepSeeds',
153  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
154  numHitsForSeedCleaner = cms.int32(50),
155  onlyPixelHitsForSeedCleaner = cms.bool(True),
156  TrajectoryBuilderPSet = dict(refToPSet_ = 'hiLowPtTripletStepTrajectoryBuilder'),
157  clustersToSkip = cms.InputTag('hiLowPtTripletStepClusters'),
158  doSeedingRegionRebuilding = True,
159  useHitsSplitting = True
160 )
161 
162 # TRACK FITTING
164 hiLowPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
165  src = 'hiLowPtTripletStepTrackCandidates',
166  AlgorithmName = 'lowPtTripletStep',
167  Fitter='FlexibleKFFittingSmoother'
168 )
169 
170 
171 
172 # Final selection
174 hiLowPtTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
175  src = 'hiLowPtTripletStepTracks',
176  useAnyMVA = True,
177  GBRForestLabel = 'HIMVASelectorIter5',
178  GBRForestVars = ['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'relpterr', 'nhits', 'nlayers', 'eta'],
179  trackSelectors= cms.VPSet(
180  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
181  name = 'hiLowPtTripletStepLoose',
182  useMVA = False
183  ), #end of pset
184  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
185  name = 'hiLowPtTripletStepTight',
186  preFilterName = 'hiLowPtTripletStepLoose',
187  useMVA = True,
188  minMVA = -0.58
189  ),
190  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
191  name = 'hiLowPtTripletStep',
192  preFilterName = 'hiLowPtTripletStepTight',
193  useMVA = True,
194  minMVA = 0.35
195  ),
196  ) #end of vpset
197 ) #end of clone
198 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
199 trackingPhase1.toModify(hiLowPtTripletStepSelector, useAnyMVA = False)
200 trackingPhase1.toModify(hiLowPtTripletStepSelector, trackSelectors= cms.VPSet(
201  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
202  name = 'hiLowPtTripletStepLoose',
203  useMVA = False
204  ), #end of pset
205  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
206  name = 'hiLowPtTripletStepTight',
207  preFilterName = 'hiLowPtTripletStepLoose',
208  useMVA = False,
209  minMVA = -0.58
210  ),
211  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
212  name = 'hiLowPtTripletStep',
213  preFilterName = 'hiLowPtTripletStepTight',
214  useMVA = False,
215  minMVA = 0.35
216  ),
217  ) #end of vpset
218 )
219 
220 
222 hiLowPtTripletStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
223  TrackProducers = ['hiLowPtTripletStepTracks'],
224  hasSelector = [1],
225  selectedTrackQuals = ["hiLowPtTripletStepSelector:hiLowPtTripletStep"],
226  copyExtras = True,
227  makeReKeyedSeeds = cms.untracked.bool(False),
228  #writeOnlyTrkQuals = True
229 )
230 
231 # Final sequence
232 
233 hiLowPtTripletStepTask = cms.Task(hiLowPtTripletStepClusters,
234  hiLowPtTripletStepSeedLayers,
235  hiLowPtTripletStepTrackingRegions,
236  hiLowPtTripletStepTracksHitDoublets,
237  hiLowPtTripletStepTracksHitTriplets,
238  pixelFitterByHelixProjections,
239  hiLowPtTripletStepPixelTracksFilter,
240  hiLowPtTripletStepPixelTracks,hiLowPtTripletStepSeeds,
241  hiLowPtTripletStepTrackCandidates,
242  hiLowPtTripletStepTracks,
243  hiLowPtTripletStepSelector,
244  hiLowPtTripletStepQual
245  )
246 hiLowPtTripletStep = cms.Sequence(hiLowPtTripletStepTask)
247 hiLowPtTripletStepTask_Phase1 = hiLowPtTripletStepTask.copy()
248 hiLowPtTripletStepTask_Phase1.replace(hiLowPtTripletStepTracksHitDoublets, hiLowPtTripletStepTracksHitDoubletsCA)
249 hiLowPtTripletStepTask_Phase1.replace(hiLowPtTripletStepTracksHitTriplets, hiLowPtTripletStepTracksHitTripletsCA)
250 trackingPhase1.toReplaceWith(hiLowPtTripletStepTask, hiLowPtTripletStepTask_Phase1)
COSMIC RUN SETTING.
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...