CMS 3D CMS Logo

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