CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonPixelPairStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ###################################################################################
4 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
5 ################################### 2nd step: pixel pairs
6 
8 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.vertexCollection = cms.InputTag("hiSelectedVertex")
9 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonSrc= cms.InputTag("standAloneMuons","UpdatedAtVtx")
10 
11 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseVertex = True
12 
13 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Phi_fixed = True
14 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Eta_fixed = True
15 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaPhi = 0.3
16 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaEta = 0.2
17 
18 ###################################
20 
21 # NEW CLUSTERS (remove previously used clusters)
22 hiRegitMuPixelPairStepClusters = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepClusters.clone(
23  trajectories = cms.InputTag("hiRegitMuInitialStepTracks"),
24  overrideTrkQuals = cms.InputTag('hiRegitMuInitialStepSelector','hiRegitMuInitialStep'),
25  trackClassifier = cms.InputTag(''),
26  oldClusterRemovalInfo = cms.InputTag(""),
27  TrackQuality = cms.string('tight')
28 )
29 
30 
31 # SEEDING LAYERS
32 hiRegitMuPixelPairStepSeedLayers = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepSeedLayers.clone()
33 hiRegitMuPixelPairStepSeedLayers.BPix.skipClusters = cms.InputTag('hiRegitMuPixelPairStepClusters')
34 hiRegitMuPixelPairStepSeedLayers.FPix.skipClusters = cms.InputTag('hiRegitMuPixelPairStepClusters')
35 
36 
37 
38 # seeding
39 hiRegitMuPixelPairStepSeeds = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepSeeds.clone()
40 hiRegitMuPixelPairStepSeeds.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
41 hiRegitMuPixelPairStepSeeds.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
42 hiRegitMuPixelPairStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 1.0
43 hiRegitMuPixelPairStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.01 # default = 0.2
44 hiRegitMuPixelPairStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 0.09 # this give you the length
45 hiRegitMuPixelPairStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 0. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
46 hiRegitMuPixelPairStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuPixelPairStepSeedLayers'
47 
48 
49 # building: feed the new-named seeds
50 hiRegitMuPixelPairStepTrajectoryFilterBase = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrajectoryFilterBase.clone()
51 hiRegitMuPixelPairStepTrajectoryFilterBase.minPt = 0.8
52 hiRegitMuPixelPairStepTrajectoryFilterBase.minimumNumberOfHits = 6
53 hiRegitMuPixelPairStepTrajectoryFilterBase.minHitsMinPt = 4
54 
55 hiRegitMuPixelPairStepTrajectoryFilter = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrajectoryFilter.clone()
56 hiRegitMuPixelPairStepTrajectoryFilter.filters = cms.VPSet(
57  cms.PSet( refToPSet_ = cms.string('hiRegitMuPixelPairStepTrajectoryFilterBase')),
58  cms.PSet( refToPSet_ = cms.string('pixelPairStepTrajectoryFilterShape')))
59 
60 
61 hiRegitMuPixelPairStepTrajectoryBuilder = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrajectoryBuilder.clone(
62  trajectoryFilter = cms.PSet(
63  refToPSet_ = cms.string('hiRegitMuPixelPairStepTrajectoryFilter')
64  ),
65  minNrOfHitsForRebuild = 6 #change from default 4
66 )
67 
68 # trackign candidate
69 hiRegitMuPixelPairStepTrackCandidates = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTrackCandidates.clone(
70  src = cms.InputTag('hiRegitMuPixelPairStepSeeds'),
71  TrajectoryBuilder = 'hiRegitMuPixelPairStepTrajectoryBuilder',
72  clustersToSkip = cms.InputTag("hiRegitMuPixelPairStepClusters"),
73  maxNSeeds = cms.uint32(1000000)
74  )
75 
76 # fitting: feed new-names
77 hiRegitMuPixelPairStepTracks = RecoTracker.IterativeTracking.PixelPairStep_cff.pixelPairStepTracks.clone(
78  AlgorithmName = cms.string('hiRegitMuPixelPairStep'),
79  src = 'hiRegitMuPixelPairStepTrackCandidates',
80  clustersToSkip = cms.InputTag('hiRegitMuPixelPairStepClusters'),
81 )
82 
83 
84 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
86 hiRegitMuPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
87  src ='hiRegitMuPixelPairStepTracks',
88  vertices = cms.InputTag("hiSelectedVertex"),
89  useAnyMVA = cms.bool(True),
90  GBRForestLabel = cms.string('HIMVASelectorIter6'),
91  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'nhits', 'nlayers', 'eta']),
92  trackSelectors= cms.VPSet(
93  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
94  name = 'hiRegitMuPixelPairStepLoose',
95  min_nhits = cms.uint32(8)
96  ), #end of pset
97  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
98  name = 'hiRegitMuPixelPairStepTight',
99  preFilterName = 'hiRegitMuPixelPairStepLoose',
100  min_nhits = cms.uint32(8),
101  useMVA = cms.bool(True),
102  minMVA = cms.double(-0.58)
103  ),
104  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
105  name = 'hiRegitMuPixelPairStep',
106  preFilterName = 'hiRegitMuPixelPairStepTight',
107  min_nhits = cms.uint32(8),
108  useMVA = cms.bool(True),
109  minMVA = cms.double(0.77)
110  ),
111  ) #end of vpset
112 )
113 
114 hiRegitMuonPixelPairStep = cms.Sequence(hiRegitMuPixelPairStepClusters*
115  hiRegitMuPixelPairStepSeedLayers*
116  hiRegitMuPixelPairStepSeeds*
117  hiRegitMuPixelPairStepTrackCandidates*
118  hiRegitMuPixelPairStepTracks*
119  hiRegitMuPixelPairStepSelector)
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...