test
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 
5 
6 duplicateTrackCandidates = DuplicateTrackMerger.clone()
7 duplicateTrackCandidates.source = cms.InputTag("preDuplicateMergingGeneralTracks")
8 duplicateTrackCandidates.useInnermostState = True
9 duplicateTrackCandidates.ttrhBuilderName = "WithAngleAndTemplate"
10 
12 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone()
13 mergedDuplicateTracks.src = cms.InputTag("duplicateTrackCandidates","candidates")
14 mergedDuplicateTracks.Fitter='RKFittingSmoother' # no outlier rejection!
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 = [10.,1.0,0.4] # [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 = DuplicateListMerger.clone()
29 generalTracks.originalSource = cms.InputTag("preDuplicateMergingGeneralTracks")
30 generalTracks.originalMVAVals = cms.InputTag("preDuplicateMergingGeneralTracks","MVAValues")
31 generalTracks.mergedSource = cms.InputTag("mergedDuplicateTracks")
32 generalTracks.mergedMVAVals = cms.InputTag("duplicateTrackClassifier","MVAValues")
33 generalTracks.candidateSource = cms.InputTag("duplicateTrackCandidates","candidates")
34 generalTracks.candidateComponents = cms.InputTag("duplicateTrackCandidates","candidateMap")
35 
36 
37 generalTracksSequence = cms.Sequence(
38  duplicateTrackCandidates*
39  mergedDuplicateTracks*
40  duplicateTrackClassifier*
41  generalTracks
42  )
43 
45 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
46  TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')),
47  hasSelector=cms.vint32(1),
48  selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep")
49  ),
50  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) )
51  ),
52  copyExtras = True,
53  makeReKeyedSeeds = cms.untracked.bool(False)
54  )