CMS 3D CMS Logo

HiRegitMuonPixelPairStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
8 # Are the following values set to the same in every iteration? If yes,
9 # why not making the change in HITrackingRegionProducer_cfi directly
10 # once for all?
11 hiRegitMuPixelPairStepTrackingRegions = HiTrackingRegionFactoryFromSTAMuonsEDProducer.clone(
12  MuonSrc = "standAloneMuons:UpdatedAtVtx", # this is the same as default, why repeat?
13  MuonTrackingRegionBuilder = dict(
14  vertexCollection = "hiSelectedPixelVertex",
15  UseVertex = True,
16  Phi_fixed = True,
17  Eta_fixed = True,
18  DeltaPhi = 0.3,
19  DeltaEta = 0.2,
20  # Ok, the following ones are specific to PixelPairStep
21  Pt_min = 1.0,
22  DeltaR = 0.01, # default = 0.2
23  DeltaZ = 0.09, # this give you the length
24  Rescale_Dz = 0. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
25  )
26 )
27 
28 
30 
31 # NEW CLUSTERS (remove previously used clusters)
32 hiRegitMuPixelPairStepClusters = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepClusters.clone(
33  trajectories = "hiRegitMuInitialStepTracks",
34  overrideTrkQuals = 'hiRegitMuInitialStepSelector:hiRegitMuInitialStep',
35  trackClassifier = '',
36  oldClusterRemovalInfo = "",
37  TrackQuality = 'tight'
38 )
39 
40 
41 # SEEDING LAYERS
42 hiRegitMuPixelPairStepSeedLayers = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepSeedLayers.clone(
43  BPix = dict(skipClusters = 'hiRegitMuPixelPairStepClusters'),
44  FPix = dict(skipClusters = 'hiRegitMuPixelPairStepClusters')
45 )
46 
47 # seeding
48 hiRegitMuPixelPairStepHitDoublets = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepHitDoublets.clone(
49  seedingLayers = "hiRegitMuPixelPairStepSeedLayers",
50  trackingRegions = "hiRegitMuPixelPairStepTrackingRegions",
51  clusterCheck = "hiRegitMuClusterCheck",
52 )
53 
54 hiRegitMuPixelPairStepSeeds = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepSeedsA.clone(
55  seedingHitSets = "hiRegitMuPixelPairStepHitDoublets"
56 )
57 
58 
59 # building: feed the new-named seeds
60 hiRegitMuPixelPairStepTrajectoryFilterBase = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrajectoryFilterBase.clone(
61  minPt = 0.8,
62  minimumNumberOfHits = 6,
63  minHitsMinPt = 4
64 )
65 hiRegitMuPixelPairStepTrajectoryFilter = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrajectoryFilter.clone(
66  filters = cms.VPSet(
67  cms.PSet( refToPSet_ = cms.string('hiRegitMuPixelPairStepTrajectoryFilterBase')),
68  cms.PSet( refToPSet_ = cms.string('pixelPairStepTrajectoryFilterShape')))
69 )
70 
71 hiRegitMuPixelPairStepTrajectoryBuilder = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrajectoryBuilder.clone(
72  trajectoryFilter = cms.PSet(
73  refToPSet_ = cms.string('hiRegitMuPixelPairStepTrajectoryFilter')
74  ),
75  minNrOfHitsForRebuild = 6 #change from default 4
76 )
77 
78 # trackign candidate
79 hiRegitMuPixelPairStepTrackCandidates = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrackCandidates.clone(
80  src = 'hiRegitMuPixelPairStepSeeds',
81  TrajectoryBuilder = 'hiRegitMuPixelPairStepTrajectoryBuilder',
82  clustersToSkip = "hiRegitMuPixelPairStepClusters",
83  maxNSeeds = 1000000
84 )
85 
86 # fitting: feed new-names
87 hiRegitMuPixelPairStepTracks = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTracks.clone(
88  AlgorithmName = 'hiRegitMuPixelPairStep',
89  src = 'hiRegitMuPixelPairStepTrackCandidates',
90  clustersToSkip = cms.InputTag('hiRegitMuPixelPairStepClusters'),
91 )
92 
93 
94 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
96 hiRegitMuPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
97  src ='hiRegitMuPixelPairStepTracks',
98  vertices = "hiSelectedPixelVertex",
99  useAnyMVA = True,
100  GBRForestLabel = 'HIMVASelectorIter6',
101  GBRForestVars = ['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'nhits', 'nlayers', 'eta'],
102  trackSelectors = cms.VPSet(
103  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
104  name = 'hiRegitMuPixelPairStepLoose',
105  min_nhits = 8
106  ),
107  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
108  name = 'hiRegitMuPixelPairStepTight',
109  preFilterName = 'hiRegitMuPixelPairStepLoose',
110  min_nhits = 8,
111  useMVA = True,
112  minMVA = -0.58
113  ),
114  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
115  name = 'hiRegitMuPixelPairStep',
116  preFilterName = 'hiRegitMuPixelPairStepTight',
117  min_nhits = 8,
118  useMVA = True,
119  minMVA = 0.77
120  ),
121  ) #end of vpset
122 )
123 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
124 trackingPhase1.toModify(hiRegitMuPixelPairStepSelector, useAnyMVA = False)
125 trackingPhase1.toModify(hiRegitMuPixelPairStepSelector, trackSelectors= cms.VPSet(
126  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
127  name = 'hiRegitMuPixelPairStepLoose',
128  min_nhits = 8
129  ),
130  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
131  name = 'hiRegitMuPixelPairStepTight',
132  preFilterName = 'hiRegitMuPixelPairStepLoose',
133  min_nhits = 8,
134  useMVA = False,
135  minMVA = -0.58
136  ),
137  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
138  name = 'hiRegitMuPixelPairStep',
139  preFilterName = 'hiRegitMuPixelPairStepTight',
140  min_nhits = 8,
141  useMVA = False,
142  minMVA = 0.77
143  ),
144  ) #end of vpset
145 )
146 
147 hiRegitMuonPixelPairStepTask = cms.Task(hiRegitMuPixelPairStepClusters,
148  hiRegitMuPixelPairStepSeedLayers,
149  hiRegitMuPixelPairStepTrackingRegions,
150  hiRegitMuPixelPairStepHitDoublets,
151  hiRegitMuPixelPairStepSeeds,
152  hiRegitMuPixelPairStepTrackCandidates,
153  hiRegitMuPixelPairStepTracks,
154  hiRegitMuPixelPairStepSelector)
155 hiRegitMuonPixelPairStep = cms.Sequence(hiRegitMuonPixelPairStepTask)
hiMultiTrackSelector_cfi
PixelPairStep_cff
HITrackingRegionProducer_cfi
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...