1 import FWCore.ParameterSet.Config
as cms
5 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi
import trackAlgoPriorityOrder
8 duplicateTrackCandidatesChi2Est = _Chi2MeasurementEstimator.clone(
9 ComponentName =
"duplicateTrackCandidatesChi2Est",
13 duplicateTrackCandidates = DuplicateTrackMerger.clone()
14 duplicateTrackCandidates.source = cms.InputTag(
"preDuplicateMergingGeneralTracks")
15 duplicateTrackCandidates.useInnermostState =
True 16 duplicateTrackCandidates.ttrhBuilderName =
"WithAngleAndTemplate" 17 duplicateTrackCandidates.chi2EstimatorName =
"duplicateTrackCandidatesChi2Est" 20 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone()
21 mergedDuplicateTracks.src = cms.InputTag(
"duplicateTrackCandidates",
"candidates")
22 mergedDuplicateTracks.Fitter=
'RKFittingSmoother' 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]
30 duplicateTrackClassifier.mva.minLayers = [0,0,0]
31 duplicateTrackClassifier.mva.min3DLayers = [0,0,0]
32 duplicateTrackClassifier.mva.maxLostLayers = [99,99,99]
35 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
36 phase2_tracker.toModify(duplicateTrackCandidates, ttrhBuilderName =
"WithTrackAngle")
38 generalTracks = DuplicateListMerger.clone()
39 generalTracks.originalSource = cms.InputTag(
"preDuplicateMergingGeneralTracks")
40 generalTracks.originalMVAVals = cms.InputTag(
"preDuplicateMergingGeneralTracks",
"MVAValues")
41 generalTracks.mergedSource = cms.InputTag(
"mergedDuplicateTracks")
42 generalTracks.mergedMVAVals = cms.InputTag(
"duplicateTrackClassifier",
"MVAValues")
43 generalTracks.candidateSource = cms.InputTag(
"duplicateTrackCandidates",
"candidates")
44 generalTracks.candidateComponents = cms.InputTag(
"duplicateTrackCandidates",
"candidateMap")
47 generalTracksSequence = cms.Sequence(
48 duplicateTrackCandidates*
49 mergedDuplicateTracks*
50 duplicateTrackClassifier*
53 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
54 fastSim.toReplaceWith(generalTracksSequence,
56 duplicateTrackCandidates*
57 mergedDuplicateTracks*
58 duplicateTrackClassifier
62 from FastSimulation.Configuration.DigiAliases_cff
import loadDigiAliasesWasCalled
63 if loadDigiAliasesWasCalled:
64 from FastSimulation.Configuration.DigiAliases_cff
import generalTracks
65 process.generalTracks = generalTracks
68 process.generalTracks = generalTracks
69 modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks )
72 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
73 TrackProducers = cms.VInputTag(cms.InputTag(
'convStepTracks')),
74 hasSelector=cms.vint32(1),
75 selectedTrackQuals = cms.VInputTag(cms.InputTag(
"convStepSelector",
"convStep")
77 setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(
True) )
80 makeReKeyedSeeds = cms.untracked.bool(
False)
def _fastSimGeneralTracks(process)