CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MergeTrackCollections_cff.py
Go to the documentation of this file.
2 
3 import RecoTracker.FinalTrackSelectors.DuplicateTrackMerger_cfi
4 
5 duplicateTrackCandidates = RecoTracker.FinalTrackSelectors.DuplicateTrackMerger_cfi.duplicateTrackMerger.clone(
6  source=cms.InputTag("preDuplicateMergingGeneralTracks"),
7  useInnermostState = cms.bool(True),
8  ttrhBuilderName = cms.string("WithAngleAndTemplate")
9  )
10 
12 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
13  src = cms.InputTag("duplicateTrackCandidates","candidates"),
14  )
15 
16 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
17 duplicateTrackSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
18  src='mergedDuplicateTracks',
19  trackSelectors= cms.VPSet(
20  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
21  name = 'duplicateTrackSelectorLoose',
22  minHitsToBypassChecks = cms.uint32(0),
23  ),
24  )
25  )
26 
27 generalTracks = RecoTracker.FinalTrackSelectors.DuplicateTrackMerger_cfi.duplicateListMerger.clone(
28  originalSource = cms.InputTag("preDuplicateMergingGeneralTracks"),
29  mergedSource = cms.InputTag("mergedDuplicateTracks"),
30  mergedMVAVals = cms.InputTag("duplicateTrackSelector","MVAVals"),
31  candidateSource = cms.InputTag("duplicateTrackCandidates","candidateMap")
32  )
33 
34 
35 generalTracksSequence = cms.Sequence(
36  duplicateTrackCandidates*
37  mergedDuplicateTracks*
38  duplicateTrackSelector*
39  generalTracks
40  )
41 
42 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
43 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
44  TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')),
45  hasSelector=cms.vint32(1),
46  selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep")
47  ),
48  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) )
49  ),
50  copyExtras = True,
51  makeReKeyedSeeds = cms.untracked.bool(False)
52  )