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