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" 22 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
23 src =
"duplicateTrackCandidates:candidates",
24 Fitter=
'RKFittingSmoother' 28 duplicateTrackClassifier = TrackCutClassifier.clone(
29 src=
'mergedDuplicateTracks',
31 minPixelHits = [0,0,0],
32 maxChi2 = [9999.,9999.,9999.],
33 maxChi2n = [10.,1.0,0.4],
35 min3DLayers = [0,0,0],
36 maxLostLayers = [99,99,99])
39 generalTracks = DuplicateListMerger.clone(
40 originalSource =
"preDuplicateMergingGeneralTracks",
41 originalMVAVals =
"preDuplicateMergingGeneralTracks:MVAValues",
42 mergedSource =
"mergedDuplicateTracks",
43 mergedMVAVals =
"duplicateTrackClassifier:MVAValues",
44 candidateSource =
"duplicateTrackCandidates:candidates",
45 candidateComponents =
"duplicateTrackCandidates:candidateMap" 48 generalTracksTask = cms.Task(
49 duplicateTrackCandidates,
50 mergedDuplicateTracks,
51 duplicateTrackClassifier,
54 generalTracksSequence = cms.Sequence(generalTracksTask)
56 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
57 fastSim.toReplaceWith(generalTracksTask,
58 cms.Task(duplicateTrackCandidates,
59 mergedDuplicateTracks,
60 duplicateTrackClassifier)
64 from FastSimulation.Configuration.DigiAliases_cff
import loadGeneralTracksAlias
66 modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks )
69 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
70 TrackProducers = [
'convStepTracks'],
72 selectedTrackQuals = [
'convStepSelector:convStep'],
73 setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(
True) )
76 makeReKeyedSeeds = cms.untracked.bool(
False),
79 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
80 phase2_timing_layer.toModify(mergedDuplicateTracks, TrajectoryInEvent =
True)
81 phase2_timing_layer.toModify(generalTracks, copyTrajectories =
True)
def loadGeneralTracksAlias(process)
def _fastSimGeneralTracks(process)