1 import FWCore.ParameterSet.Config
as cms
5 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi
import trackAlgoPriorityOrder
9 duplicateTrackCandidatesChi2Est = _Chi2MeasurementEstimator.clone(
10 ComponentName =
"duplicateTrackCandidatesChi2Est",
14 duplicateTrackCandidates = DuplicateTrackMerger.clone(
15 source =
"preDuplicateMergingGeneralTracks",
16 useInnermostState =
True,
17 ttrhBuilderName =
"WithAngleAndTemplate",
18 chi2EstimatorName =
"duplicateTrackCandidatesChi2Est" 20 from Configuration.ProcessModifiers.trackingIters01_cff
import trackingIters01
21 trackingIters01.toModify(duplicateTrackCandidates, source =
"earlyGeneralTracks")
24 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
25 src =
"duplicateTrackCandidates:candidates",
26 Fitter=
'RKFittingSmoother' 30 duplicateTrackClassifier = TrackCutClassifier.clone(
31 src=
'mergedDuplicateTracks',
33 minPixelHits = [0,0,0],
34 maxChi2 = [9999.,9999.,9999.],
35 maxChi2n = [10.,1.0,0.4],
37 min3DLayers = [0,0,0],
38 maxLostLayers = [99,99,99])
41 generalTracks = DuplicateListMerger.clone(
42 originalSource =
"preDuplicateMergingGeneralTracks",
43 originalMVAVals =
"preDuplicateMergingGeneralTracks:MVAValues",
44 mergedSource =
"mergedDuplicateTracks",
45 mergedMVAVals =
"duplicateTrackClassifier:MVAValues",
46 candidateSource =
"duplicateTrackCandidates:candidates",
47 candidateComponents =
"duplicateTrackCandidates:candidateMap" 49 trackingIters01.toModify(generalTracks,
50 originalSource =
"earlyGeneralTracks",
51 originalMVAVals =
"earlyGeneralTracks:MVAValues" 54 generalTracksTask = cms.Task(
55 duplicateTrackCandidates,
56 mergedDuplicateTracks,
57 duplicateTrackClassifier,
60 generalTracksSequence = cms.Sequence(generalTracksTask)
62 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
63 fastSim.toReplaceWith(generalTracksTask,
64 cms.Task(duplicateTrackCandidates,
65 mergedDuplicateTracks,
66 duplicateTrackClassifier)
70 from FastSimulation.Configuration.DigiAliases_cff
import loadGeneralTracksAlias
72 modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks )
75 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
76 TrackProducers = [
'convStepTracks'],
78 selectedTrackQuals = [
'convStepSelector:convStep'],
79 setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(
True) )
82 makeReKeyedSeeds = cms.untracked.bool(
False),
85 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
86 phase2_timing_layer.toModify(mergedDuplicateTracks, TrajectoryInEvent =
True)
87 phase2_timing_layer.toModify(generalTracks, copyTrajectories =
True)
def loadGeneralTracksAlias(process)
def _fastSimGeneralTracks(process)