CMS 3D CMS Logo

HiRegitMuonSeededStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 ###### Muon reconstruction module #####
5 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
7 hiEarlyGeneralTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
8  TrackProducers = (cms.InputTag('hiGlobalPrimTracks'),
9  cms.InputTag('hiDetachedTripletStepTracks'),
10  cms.InputTag('hiLowPtTripletStepTracks'),
11  cms.InputTag('hiPixelPairGlobalPrimTracks'),
12  cms.InputTag('hiJetCoreRegionalStepTracks'),
13  cms.InputTag('hiRegitMuInitialStepTracks'),
14  cms.InputTag('hiRegitMuPixelPairStepTracks'),
15  cms.InputTag('hiRegitMuMixedTripletStepTracks'),
16  cms.InputTag('hiRegitMuPixelLessStepTracks'),
17  cms.InputTag('hiRegitMuDetachedTripletStepTracks')
18  ),
19  hasSelector=cms.vint32(1,1,1,1,1,1,1,1,1,1),
20  selectedTrackQuals = cms.VInputTag(
21  cms.InputTag("hiInitialStepSelector","hiInitialStep"),
22  cms.InputTag("hiDetachedTripletStepSelector","hiDetachedTripletStep"),
23  cms.InputTag("hiLowPtTripletStepSelector","hiLowPtTripletStep"),
24  cms.InputTag("hiPixelPairStepSelector","hiPixelPairStep"),
25  cms.InputTag("hiJetCoreRegionalStepSelector","hiJetCoreRegionalStep"),
26  cms.InputTag("hiRegitMuInitialStepSelector","hiRegitMuInitialStepLoose"),
27  cms.InputTag("hiRegitMuPixelPairStepSelector","hiRegitMuPixelPairStep"),
28  cms.InputTag("hiRegitMuMixedTripletStepSelector","hiRegitMuMixedTripletStep"),
29  cms.InputTag("hiRegitMuPixelLessStepSelector","hiRegitMuPixelLessStep"),
30  cms.InputTag("hiRegitMuDetachedTripletStepSelector","hiRegitMuDetachedTripletStep")
31  ),
32  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5,6,7,8,9), pQual=cms.bool(True)), # should this be False?
33  ),
34  copyExtras = True,
35  makeReKeyedSeeds = cms.untracked.bool(False)
36  )
37 
38 hiEarlyMuons = earlyMuons.clone(
39  inputCollectionLabels = cms.VInputTag(cms.InputTag("hiEarlyGeneralTracks"),cms.InputTag("standAloneMuons","UpdatedAtVtx"))
40  )
41 
42 ###### SEEDER MODELS ######
43 import RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi
44 import RecoTracker.SpecialSeedGenerators.inOutSeedsFromTrackerMuons_cfi
45 hiRegitMuonSeededSeedsOutIn = RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi.outInSeedsFromStandaloneMuons.clone(
46  src = "hiEarlyMuons",
47  )
48 hiRegitMuonSeededSeedsInOut = RecoTracker.SpecialSeedGenerators.inOutSeedsFromTrackerMuons_cfi.inOutSeedsFromTrackerMuons.clone(
49  src = "hiEarlyMuons",
50  )
51 
52 hiRegitMuonSeededTrackCandidatesInOut = muonSeededTrackCandidatesInOut.clone(
53  src = cms.InputTag("hiRegitMuonSeededSeedsInOut")
54  )
55 hiRegitMuonSeededTrackCandidatesOutIn = muonSeededTrackCandidatesOutIn.clone(
56  src = cms.InputTag("hiRegitMuonSeededSeedsOutIn")
57  )
58 
59 hiRegitMuonSeededTracksOutIn = muonSeededTracksOutIn.clone(
60  src = cms.InputTag("hiRegitMuonSeededTrackCandidatesOutIn"),
61  AlgorithmName = cms.string('hiRegitMuMuonSeededStepOutIn')
62  )
63 hiRegitMuonSeededTracksInOut = muonSeededTracksInOut.clone(
64  src = cms.InputTag("hiRegitMuonSeededTrackCandidatesInOut"),
65  AlgorithmName = cms.string('hiRegitMuMuonSeededStepInOut')
66  )
67 
68 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
70 hiRegitMuonSeededTracksInOutSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
71  src='hiRegitMuonSeededTracksInOut',
72  vertices = cms.InputTag("hiSelectedVertex"),
73  useAnyMVA = cms.bool(True),
74  GBRForestLabel = cms.string('HIMVASelectorIter7'),
75  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
76  trackSelectors= cms.VPSet(
77  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
78  name = 'hiRegitMuonSeededTracksInOutLoose',
79  min_nhits = cms.uint32(8)
80  ),
81  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
82  name = 'hiRegitMuonSeededTracksInOutTight',
83  preFilterName = 'hiRegitMuonSeededTracksInOutLoose',
84  min_nhits = cms.uint32(8),
85  useMVA = cms.bool(True),
86  minMVA = cms.double(-0.2)
87  ),
88  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
89  name = 'hiRegitMuonSeededTracksInOutHighPurity',
90  preFilterName = 'hiRegitMuonSeededTracksInOutTight',
91  min_nhits = cms.uint32(8),
92  useMVA = cms.bool(True),
93  minMVA = cms.double(-0.09)
94  ),
95  ) #end of vpset
96  ) #end of clone
97 
98 hiRegitMuonSeededTracksOutInSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
99  src='hiRegitMuonSeededTracksOutIn',
100  vertices = cms.InputTag("hiSelectedVertex"),
101  useAnyMVA = cms.bool(True),
102  GBRForestLabel = cms.string('HIMVASelectorIter7'),
103  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
104  trackSelectors= cms.VPSet(
105  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
106  name = 'hiRegitMuonSeededTracksOutInLoose',
107  min_nhits = cms.uint32(8)
108  ),
109  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
110  name = 'hiRegitMuonSeededTracksOutInTight',
111  preFilterName = 'hiRegitMuonSeededTracksOutInLoose',
112  min_nhits = cms.uint32(8),
113  useMVA = cms.bool(True),
114  minMVA = cms.double(-0.2)
115  ),
116  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
117  name = 'hiRegitMuonSeededTracksOutInHighPurity',
118  preFilterName = 'hiRegitMuonSeededTracksOutInTight',
119  min_nhits = cms.uint32(8),
120  useMVA = cms.bool(True),
121  minMVA = cms.double(-0.09)
122  ),
123  ) #end of vpset
124  ) #end of clone
125 
126 hiRegitMuonSeededStepCore = cms.Sequence(
127  hiRegitMuonSeededSeedsInOut + hiRegitMuonSeededTrackCandidatesInOut + hiRegitMuonSeededTracksInOut +
128  hiRegitMuonSeededSeedsOutIn + hiRegitMuonSeededTrackCandidatesOutIn + hiRegitMuonSeededTracksOutIn
129  )
130 hiRegitMuonSeededStepExtra = cms.Sequence(
131  hiRegitMuonSeededTracksInOutSelector +
132  hiRegitMuonSeededTracksOutInSelector
133  )
134 
135 hiRegitMuonSeededStep = cms.Sequence(
136  hiEarlyGeneralTracks +
137  hiEarlyMuons +
138  hiRegitMuonSeededStepCore +
139  hiRegitMuonSeededStepExtra
140  )