CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 RecoPixelVertexing.PixelTriplets.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 RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
65 from RecoPixelVertexing.PixelTriplets.caHitQuadrupletEDProducer_cfi import caHitQuadrupletEDProducer as _caHitQuadrupletEDProducer
66 hiLowPtQuadStepTracksHitQuadrupletsCA = _caHitQuadrupletEDProducer.clone(
67  doublets = "hiLowPtQuadStepTracksHitDoubletsCA",
68  extraHitRPhitolerance = 0.0,
69  SeedComparitorPSet = RecoPixelVertexing.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 RecoPixelVertexing.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 RecoPixelVertexing.PixelLowPtUtilities.TrackSeeds_cfi
105 hiLowPtQuadStepSeeds = RecoPixelVertexing.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  MeasurementTrackerName = '',
130  trajectoryFilter = dict(refToPSet_ = 'hiLowPtQuadStepTrajectoryFilter'),
131  maxCand = 4,#4 for pp
132  estimator = 'hiLowPtQuadStepChi2Est',
133  maxDPhiForLooperReconstruction = cms.double(2.0),#2.0 for pp
134  # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
135  # of the outermost Tracker barrel layer (B=3.8T)
136  maxPtForLooperReconstruction = cms.double(0.7),# 0.7 for pp
137  alwaysUseInvalidHits = False
138 )
139 
140 # MAKING OF TRACK CANDIDATES
141 
142 # Trajectory cleaner in default
143 
145 hiLowPtQuadStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
146  src = 'hiLowPtQuadStepSeeds',
147  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
148  numHitsForSeedCleaner = cms.int32(50),
149  onlyPixelHitsForSeedCleaner = cms.bool(True),
150  TrajectoryBuilderPSet = dict(refToPSet_ = 'hiLowPtQuadStepTrajectoryBuilder'),
151  TrajectoryBuilder = 'hiLowPtQuadStepTrajectoryBuilder',
152  clustersToSkip = cms.InputTag('hiLowPtQuadStepClusters'),
153  doSeedingRegionRebuilding = True,
154  useHitsSplitting = True
155 )
156 
157 
158 # TRACK FITTING
160 hiLowPtQuadStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
161  src = 'hiLowPtQuadStepTrackCandidates',
162  AlgorithmName = 'lowPtQuadStep',
163  Fitter = 'FlexibleKFFittingSmoother'
164 )
165 
166 # Final selection
168 hiLowPtQuadStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
169  src ='hiLowPtQuadStepTracks',
170  useAnyMVA = True,
171  GBRForestLabel = 'HIMVASelectorIter8',#FIXME MVA for new iteration
172  GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
173  trackSelectors = cms.VPSet(
174  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
175  name = 'hiLowPtQuadStepLoose',
176  applyAdaptedPVCuts = False,
177  useMVA = False,
178  ), #end of pset
179  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
180  name = 'hiLowPtQuadStepTight',
181  preFilterName = 'hiLowPtQuadStepLoose',
182  applyAdaptedPVCuts = False,
183  useMVA = True,
184  minMVA = -0.2
185  ),
186  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
187  name = 'hiLowPtQuadStep',
188  preFilterName = 'hiLowPtQuadStepTight',
189  applyAdaptedPVCuts = False,
190  useMVA = True,
191  minMVA = -0.09
192  ),
193  ) #end of vpset
194 ) #end of clone
195 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
196 trackingPhase1.toModify(hiLowPtQuadStepSelector, useAnyMVA = False)
197 trackingPhase1.toModify(hiLowPtQuadStepSelector, trackSelectors = cms.VPSet(
198  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
199  name = 'hiLowPtQuadStepLoose',
200  applyAdaptedPVCuts = False,
201  useMVA = False,
202  ), #end of pset
203  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
204  name = 'hiLowPtQuadStepTight',
205  preFilterName = 'hiLowPtQuadStepLoose',
206  applyAdaptedPVCuts = False,
207  useMVA = False,
208  minMVA = -0.2
209  ),
210  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
211  name = 'hiLowPtQuadStep',
212  preFilterName = 'hiLowPtQuadStepTight',
213  applyAdaptedPVCuts = False,
214  useMVA = False,
215  minMVA = -0.09
216  ),
217  ) #end of vpset
218 )
219 
221 hiLowPtQuadStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
222  TrackProducers = ['hiLowPtQuadStepTracks'],
223  hasSelector = [1],
224  selectedTrackQuals = ["hiLowPtQuadStepSelector:hiLowPtQuadStep"],
225  copyExtras = True,
226  makeReKeyedSeeds = cms.untracked.bool(False),
227 )
228 
229 
230 hiLowPtQuadStepTask = cms.Task(hiLowPtQuadStepClusters,
231  hiLowPtQuadStepSeedLayers,
232  hiLowPtQuadStepTrackingRegions,
233  hiLowPtQuadStepTracksHitDoubletsCA,
234  hiLowPtQuadStepTracksHitQuadrupletsCA,
235  pixelFitterByHelixProjections,
236  hiLowPtQuadStepPixelTracksFilter,
237  hiLowPtQuadStepPixelTracks,
238  hiLowPtQuadStepSeeds,
239  hiLowPtQuadStepTrackCandidates,
240  hiLowPtQuadStepTracks,
241  hiLowPtQuadStepSelector,
242  hiLowPtQuadStepQual)
243 hiLowPtQuadStep = cms.Sequence(hiLowPtQuadStepTask)
244 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...