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 # Switch back to GenericCPE until bias in template CPE gets fixed
27 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
28 phase1Pixel.toModify(duplicateTrackCandidates, ttrhBuilderName = "WithTrackAngle") # FIXME
29 
30 # This customization will be removed once we get the templates for
31 # phase2 pixel
32 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
33 phase2_tracker.toModify(duplicateTrackCandidates, ttrhBuilderName = "WithTrackAngle") # FIXME
34 
35 generalTracks = DuplicateListMerger.clone()
36 generalTracks.originalSource = cms.InputTag("preDuplicateMergingGeneralTracks")
37 generalTracks.originalMVAVals = cms.InputTag("preDuplicateMergingGeneralTracks","MVAValues")
38 generalTracks.mergedSource = cms.InputTag("mergedDuplicateTracks")
39 generalTracks.mergedMVAVals = cms.InputTag("duplicateTrackClassifier","MVAValues")
40 generalTracks.candidateSource = cms.InputTag("duplicateTrackCandidates","candidates")
41 generalTracks.candidateComponents = cms.InputTag("duplicateTrackCandidates","candidateMap")
42 
43 
44 generalTracksSequence = cms.Sequence(
45  duplicateTrackCandidates*
46  mergedDuplicateTracks*
47  duplicateTrackClassifier*
48  generalTracks
49  )
50 
52 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
53  TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')),
54  hasSelector=cms.vint32(1),
55  selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep")
56  ),
57  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) )
58  ),
59  copyExtras = True,
60  makeReKeyedSeeds = cms.untracked.bool(False)
61  )