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.
1 import FWCore.ParameterSet.Config as cms
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 
17 duplicateTrackClassifier = TrackCutClassifier.clone()
18 duplicateTrackClassifier.src='mergedDuplicateTracks'
19 duplicateTrackClassifier.mva.minPixelHits = [0,0,0]
20 duplicateTrackClassifier.mva.maxChi2 = [9999.,9999.,9999.]
21 duplicateTrackClassifier.mva.maxChi2n = [9999.,9999.,9999.]
22 duplicateTrackClassifier.mva.minLayers = [0,0,0]
23 duplicateTrackClassifier.mva.min3DLayers = [0,0,0]
24 duplicateTrackClassifier.mva.maxLostLayers = [99,99,99]
25 
26 
27 
28 generalTracks = RecoTracker.FinalTrackSelectors.DuplicateTrackMerger_cfi.duplicateListMerger.clone(
29  originalSource = cms.InputTag("preDuplicateMergingGeneralTracks"),
30  mergedSource = cms.InputTag("mergedDuplicateTracks"),
31  mergedMVAVals = cms.InputTag("duplicateTrackClassifier","MVAValues"),
32  candidateSource = cms.InputTag("duplicateTrackCandidates","candidateMap")
33  )
34 
35 
36 generalTracksSequence = cms.Sequence(
37  duplicateTrackCandidates*
38  mergedDuplicateTracks*
39  duplicateTrackClassifier*
40  generalTracks
41  )
42 
44 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
45  TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')),
46  hasSelector=cms.vint32(1),
47  selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep")
48  ),
49  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) )
50  ),
51  copyExtras = True,
52  makeReKeyedSeeds = cms.untracked.bool(False)
53  )