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 
4 import RecoTracker.FinalTrackSelectors.DuplicateTrackMerger_cfi
5 
6 duplicateTrackCandidates = RecoTracker.FinalTrackSelectors.DuplicateTrackMerger_cfi.duplicateTrackMerger.clone(
7  source=cms.InputTag("preDuplicateMergingGeneralTracks"),
8  useInnermostState = cms.bool(True),
9  ttrhBuilderName = cms.string("WithAngleAndTemplate")
10  )
11 
13 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
14  src = cms.InputTag("duplicateTrackCandidates","candidates"),
15  )
16 
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 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
43  TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')),
44  hasSelector=cms.vint32(1),
45  selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep")
46  ),
47  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) )
48  ),
49  copyExtras = True,
50  makeReKeyedSeeds = cms.untracked.bool(False)
51  )