test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonPixelLessStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
4 ################################### 5th step: large impact parameter tracking using TIB/TID/TEC stereo layer seeding
5 
7 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.vertexCollection = cms.InputTag("hiSelectedVertex")
8 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonSrc= cms.InputTag("standAloneMuons","UpdatedAtVtx")
9 
10 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseVertex = True
11 
12 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Phi_fixed = True
13 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Eta_fixed = True
14 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaPhi = 0.2
15 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaEta = 0.1
16 
17 ###################################
19 
20 # remove previously used clusters
21 hiRegitMuPixelLessStepClusters = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepClusters.clone(
22  oldClusterRemovalInfo = cms.InputTag("hiRegitMuMixedTripletStepClusters"),
23  trajectories = cms.InputTag("hiRegitMuMixedTripletStepTracks"),
24  overrideTrkQuals = cms.InputTag('hiRegitMuMixedTripletStepSelector','hiRegitMuMixedTripletStep'),
25  trackClassifier = cms.InputTag(''),
26  TrackQuality = cms.string('tight')
27 )
28 
29 # SEEDING LAYERS
30 hiRegitMuPixelLessStepSeedLayers = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepSeedLayers.clone()
31 hiRegitMuPixelLessStepSeedLayers.TIB.skipClusters = cms.InputTag('hiRegitMuPixelLessStepClusters')
32 hiRegitMuPixelLessStepSeedLayers.TID.skipClusters = cms.InputTag('hiRegitMuPixelLessStepClusters')
33 hiRegitMuPixelLessStepSeedLayers.TEC.skipClusters = cms.InputTag('hiRegitMuPixelLessStepClusters')
34 hiRegitMuPixelLessStepSeedLayers.MTIB.skipClusters = cms.InputTag('hiRegitMuPixelLessStepClusters')
35 hiRegitMuPixelLessStepSeedLayers.MTID.skipClusters = cms.InputTag('hiRegitMuPixelLessStepClusters')
36 hiRegitMuPixelLessStepSeedLayers.MTEC.skipClusters = cms.InputTag('hiRegitMuPixelLessStepClusters')
37 
38 
39 # seeding
40 hiRegitMuPixelLessStepSeeds = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepSeeds.clone()
41 hiRegitMuPixelLessStepSeeds.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
42 hiRegitMuPixelLessStepSeeds.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
43 hiRegitMuPixelLessStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 2.0
44 hiRegitMuPixelLessStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.2 # default = 0.2
45 hiRegitMuPixelLessStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 0.2 # this give you the length
46 hiRegitMuPixelLessStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
47 hiRegitMuPixelLessStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuPixelLessStepSeedLayers'
48 
49 
50 # building: feed the new-named seeds
51 hiRegitMuPixelLessStepTrajectoryFilter = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepTrajectoryFilter.clone()
52 hiRegitMuPixelLessStepTrajectoryFilter.minPt = 1.7
53 hiRegitMuPixelLessStepTrajectoryFilter.minimumNumberOfHits = 6
54 hiRegitMuPixelLessStepTrajectoryFilter.minHitsMinPt = 4
55 
56 hiRegitMuPixelLessStepTrajectoryBuilder = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepTrajectoryBuilder.clone(
57  trajectoryFilter = cms.PSet(
58  refToPSet_ = cms.string('hiRegitMuPixelLessStepTrajectoryFilter')
59  ),
60  minNrOfHitsForRebuild = 6 #change from default 4
61 )
62 
63 hiRegitMuPixelLessStepTrackCandidates = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepTrackCandidates.clone(
64  src = cms.InputTag('hiRegitMuPixelLessStepSeeds'),
65  TrajectoryBuilderPSet = cms.PSet(
66  refToPSet_ = cms.string('hiRegitMuPixelLessStepTrajectoryBuilder')
67  ),
68  clustersToSkip = cms.InputTag('hiRegitMuPixelLessStepClusters'),
69  maxNSeeds = cms.uint32(1000000)
70  )
71 
72 # fitting: feed new-names
73 hiRegitMuPixelLessStepTracks = RecoTracker.IterativeTracking.PixelLessStep_cff.pixelLessStepTracks.clone(
74  AlgorithmName = cms.string('hiRegitMuPixelLessStep'),
75  src = 'hiRegitMuPixelLessStepTrackCandidates'
76 )
77 
78 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
80 hiRegitMuPixelLessStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
81  src ='hiRegitMuPixelLessStepTracks',
82  vertices = cms.InputTag("hiSelectedVertex"),
83  useAnyMVA = cms.bool(True),
84  GBRForestLabel = cms.string('HIMVASelectorIter7'),
85  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
86  trackSelectors = cms.VPSet(
87  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
88  name = 'hiRegitMuPixelLessStepLoose',
89  min_nhits = cms.uint32(8)
90  ),
91  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
92  name = 'hiRegitMuPixelLessStepTight',
93  preFilterName = 'hiRegitMuPixelLessStepLoose',
94  min_nhits = cms.uint32(8),
95  useMVA = cms.bool(True),
96  minMVA = cms.double(-0.2)
97  ),
98  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
99  name = 'hiRegitMuPixelLessStep',
100  preFilterName = 'hiRegitMuPixelLessStepTight',
101  min_nhits = cms.uint32(8),
102  useMVA = cms.bool(True),
103  minMVA = cms.double(-0.09)
104  ),
105  ) #end of vpset
106 )
107 
108 hiRegitMuonPixelLessStep = cms.Sequence(hiRegitMuPixelLessStepClusters*
109  hiRegitMuPixelLessStepSeedLayers*
110  hiRegitMuPixelLessStepSeeds*
111  hiRegitMuPixelLessStepTrackCandidates*
112  hiRegitMuPixelLessStepTracks*
113  hiRegitMuPixelLessStepSelector)
114 
115 
116 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...