CMS 3D CMS Logo

MergeTrackCollections_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
6 
7 from TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi import Chi2MeasurementEstimator as _Chi2MeasurementEstimator
8 duplicateTrackCandidatesChi2Est = _Chi2MeasurementEstimator.clone(
9  ComponentName = "duplicateTrackCandidatesChi2Est",
10  MaxChi2 = 100,
11 )
12 
13 duplicateTrackCandidates = DuplicateTrackMerger.clone()
14 duplicateTrackCandidates.source = cms.InputTag("preDuplicateMergingGeneralTracks")
15 duplicateTrackCandidates.useInnermostState = True
16 duplicateTrackCandidates.ttrhBuilderName = "WithAngleAndTemplate"
17 duplicateTrackCandidates.chi2EstimatorName = "duplicateTrackCandidatesChi2Est"
18 
20 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone()
21 mergedDuplicateTracks.src = cms.InputTag("duplicateTrackCandidates","candidates")
22 mergedDuplicateTracks.Fitter='RKFittingSmoother' # no outlier rejection!
23 
25 duplicateTrackClassifier = TrackCutClassifier.clone()
26 duplicateTrackClassifier.src='mergedDuplicateTracks'
27 duplicateTrackClassifier.mva.minPixelHits = [0,0,0]
28 duplicateTrackClassifier.mva.maxChi2 = [9999.,9999.,9999.]
29 duplicateTrackClassifier.mva.maxChi2n = [10.,1.0,0.4] # [9999.,9999.,9999.]
30 duplicateTrackClassifier.mva.minLayers = [0,0,0]
31 duplicateTrackClassifier.mva.min3DLayers = [0,0,0]
32 duplicateTrackClassifier.mva.maxLostLayers = [99,99,99]
33 
34 generalTracks = DuplicateListMerger.clone()
35 generalTracks.originalSource = cms.InputTag("preDuplicateMergingGeneralTracks")
36 generalTracks.originalMVAVals = cms.InputTag("preDuplicateMergingGeneralTracks","MVAValues")
37 generalTracks.mergedSource = cms.InputTag("mergedDuplicateTracks")
38 generalTracks.mergedMVAVals = cms.InputTag("duplicateTrackClassifier","MVAValues")
39 generalTracks.candidateSource = cms.InputTag("duplicateTrackCandidates","candidates")
40 generalTracks.candidateComponents = cms.InputTag("duplicateTrackCandidates","candidateMap")
41 
42 
43 generalTracksTask = cms.Task(
44  duplicateTrackCandidates,
45  mergedDuplicateTracks,
46  duplicateTrackClassifier,
47  generalTracks
48  )
49 generalTracksSequence = cms.Sequence(generalTracksTask)
50 
51 from Configuration.Eras.Modifier_fastSim_cff import fastSim
52 fastSim.toReplaceWith(generalTracksTask,
53  cms.Task(
54  duplicateTrackCandidates,
55  mergedDuplicateTracks,
56  duplicateTrackClassifier
57  )
58 )
59 def _fastSimGeneralTracks(process):
60  from FastSimulation.Configuration.DigiAliases_cff import loadGeneralTracksAlias
61  loadGeneralTracksAlias(process)
62 modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks )
63 
65 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
66  TrackProducers = cms.VInputTag(cms.InputTag('convStepTracks')),
67  hasSelector=cms.vint32(1),
68  selectedTrackQuals = cms.VInputTag(cms.InputTag("convStepSelector","convStep")
69  ),
70  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(True) )
71  ),
72  copyExtras = True,
73  makeReKeyedSeeds = cms.untracked.bool(False)
74  )
MergeTrackCollections_cff._fastSimGeneralTracks
def _fastSimGeneralTracks(process)
Definition: MergeTrackCollections_cff.py:59
TrackCutClassifier_cff
trackListMerger_cfi
TrackProducer_cfi
DigiAliases_cff.loadGeneralTracksAlias
def loadGeneralTracksAlias(process)
Definition: DigiAliases_cff.py:9
DuplicateListMerger_cfi
DuplicateTrackMerger_cfi
Chi2MeasurementEstimator_cfi