CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonTobTecStep_cff.py
Go to the documentation of this file.
2 
3 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
4 ################################### 6th step: very large impact parameter trackng using TOB+TEC ring 5 seeding --pair
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 hiRegitMuTobTecStepClusters = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepClusters.clone(
22  oldClusterRemovalInfo = cms.InputTag("hiRegitMuPixelLessStepClusters"),
23  trajectories = cms.InputTag("hiRegitMuPixelLessStepTracks"),
24  overrideTrkQuals = cms.InputTag('hiRegitMuPixelLessStepSelector','hiRegitMuPixelLessStep'),
25  TrackQuality = cms.string('tight')
26 )
27 
28 # SEEDING LAYERS
29 hiRegitMuTobTecStepSeedLayersPair = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepSeedLayersPair.clone()
30 hiRegitMuTobTecStepSeedLayersPair.TOB.skipClusters = cms.InputTag('hiRegitMuTobTecStepClusters')
31 hiRegitMuTobTecStepSeedLayersPair.TEC.skipClusters = cms.InputTag('hiRegitMuTobTecStepClusters')
32 
33 hiRegitMuTobTecStepSeedLayersTripl = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepSeedLayersTripl.clone()
34 hiRegitMuTobTecStepSeedLayersTripl.TOB.skipClusters = cms.InputTag('hiRegitMuTobTecStepClusters')
35 hiRegitMuTobTecStepSeedLayersTripl.MTOB.skipClusters = cms.InputTag('hiRegitMuTobTecStepClusters')
36 hiRegitMuTobTecStepSeedLayersTripl.MTEC.skipClusters = cms.InputTag('hiRegitMuTobTecStepClusters')
37 
38 # seeding
39 hiRegitMuTobTecStepSeeds = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepSeeds.clone(
40  seedCollections = cms.VInputTag(cms.InputTag("hiRegitMuTobTecStepSeedsTripl"), cms.InputTag("hiRegitMuTobTecStepSeedsPair"))
41  )
42 
43 # For now, keep the same parameters for triplets and pairs
44 hiRegitMuTobTecStepSeedsTripl = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepSeedsTripl.clone()
45 hiRegitMuTobTecStepSeedsTripl.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
46 hiRegitMuTobTecStepSeedsTripl.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
47 hiRegitMuTobTecStepSeedsTripl.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 2.0
48 hiRegitMuTobTecStepSeedsTripl.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.2 # default = 0.2
49 hiRegitMuTobTecStepSeedsTripl.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 0.2 # this give you the length
50 hiRegitMuTobTecStepSeedsTripl.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
51 hiRegitMuTobTecStepSeedsTripl.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuTobTecStepSeedLayersTripl'
52 
53 hiRegitMuTobTecStepSeedsPair = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepSeedsPair.clone()
54 hiRegitMuTobTecStepSeedsPair.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
55 hiRegitMuTobTecStepSeedsPair.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
56 hiRegitMuTobTecStepSeedsPair.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 2.0
57 hiRegitMuTobTecStepSeedsPair.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.2 # default = 0.2
58 hiRegitMuTobTecStepSeedsPair.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 0.2 # this give you the length
59 hiRegitMuTobTecStepSeedsPair.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
60 hiRegitMuTobTecStepSeedsPair.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuTobTecStepSeedLayersPair'
61 
62 # building: feed the new-named seeds
63 hiRegitMuTobTecStepInOutTrajectoryFilter = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepInOutTrajectoryFilter.clone()
64 hiRegitMuTobTecStepInOutTrajectoryFilter.minPt = 1.7
65 hiRegitMuTobTecStepInOutTrajectoryFilter.minimumNumberOfHits = 6
66 hiRegitMuTobTecStepInOutTrajectoryFilter.minHitsMinPt = 4
67 
68 
69 hiRegitMuTobTecStepTrajectoryFilter = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepTrajectoryFilter.clone()
70 hiRegitMuTobTecStepTrajectoryFilter.minPt = 1.7
71 hiRegitMuTobTecStepTrajectoryFilter.minimumNumberOfHits = 6
72 hiRegitMuTobTecStepTrajectoryFilter.minHitsMinPt = 4
73 
74 hiRegitMuTobTecStepTrajectoryBuilder = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepTrajectoryBuilder.clone(
75  trajectoryFilter = cms.PSet(
76  refToPSet_ = cms.string('hiRegitMuTobTecStepTrajectoryFilter')
77  ),
78  inOutTrajectoryFilter = cms.PSet(
79  refToPSet_ = cms.string('hiRegitMuTobTecStepInOutTrajectoryFilter')
80  ),
81 )
82 
83 hiRegitMuTobTecStepTrackCandidates = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepTrackCandidates.clone(
84  src = cms.InputTag('hiRegitMuTobTecStepSeeds'),
85  TrajectoryBuilderPSet = cms.PSet(
86  refToPSet_ = cms.string('hiRegitMuTobTecStepTrajectoryBuilder')
87  ),
88  clustersToSkip = cms.InputTag('hiRegitMuTobTecStepClusters'),
89  maxNSeeds = cms.uint32(1000000)
90  )
91 
92 # fitting: feed new-names
93 hiRegitMuTobTecStepTracks = RecoTracker.IterativeTracking.TobTecStep_cff.tobTecStepTracks.clone(
94  AlgorithmName = cms.string('hiRegitMuTobTecStep'),
95  src = 'hiRegitMuTobTecStepTrackCandidates'
96 )
97 
98 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
100 hiRegitMuTobTecStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
101  src ='hiRegitMuTobTecStepTracks',
102  vertices = cms.InputTag("hiSelectedVertex"),
103  useAnyMVA = cms.bool(True),
104  GBRForestLabel = cms.string('HIMVASelectorIter7'),
105  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
106  trackSelectors= cms.VPSet(
107  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
108  name = 'hiRegitMuTobTecStepLoose',
109  min_nhits = cms.uint32(8)
110  ),
111  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
112  name = 'hiRegitMuTobTecStepTight',
113  preFilterName = 'hiRegitMuTobTecStepLoose',
114  min_nhits = cms.uint32(8),
115  useMVA = cms.bool(True),
116  minMVA = cms.double(-0.2)
117  ),
118  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
119  name = 'hiRegitMuTobTecStep',
120  preFilterName = 'hiRegitMuTobTecStepTight',
121  min_nhits = cms.uint32(8),
122  useMVA = cms.bool(True),
123  minMVA = cms.double(-0.09)
124  ),
125  ) #end of vpset
126 
127 )
128 
129 hiRegitMuonTobTecStep = cms.Sequence(hiRegitMuTobTecStepClusters*
130  hiRegitMuTobTecStepSeedLayersTripl*
131  hiRegitMuTobTecStepSeedsTripl*
132  hiRegitMuTobTecStepSeedLayersPair*
133  hiRegitMuTobTecStepSeedsPair*
134  hiRegitMuTobTecStepSeeds*
135  hiRegitMuTobTecStepTrackCandidates*
136  hiRegitMuTobTecStepTracks*
137  hiRegitMuTobTecStepSelector)
138 
139 
140 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...