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 source =
"preDuplicateMergingGeneralTracks",
15 useInnermostState =
True,
16 ttrhBuilderName =
"WithAngleAndTemplate",
17 chi2EstimatorName =
"duplicateTrackCandidatesChi2Est"
21 mergedDuplicateTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
22 src =
"duplicateTrackCandidates:candidates",
23 Fitter=
'RKFittingSmoother'
27 duplicateTrackClassifier = TrackCutClassifier.clone(
28 src=
'mergedDuplicateTracks',
30 minPixelHits = [0,0,0],
31 maxChi2 = [9999.,9999.,9999.],
32 maxChi2n = [10.,1.0,0.4],
34 min3DLayers = [0,0,0],
35 maxLostLayers = [99,99,99])
38 generalTracks = DuplicateListMerger.clone(
39 originalSource =
"preDuplicateMergingGeneralTracks",
40 originalMVAVals =
"preDuplicateMergingGeneralTracks:MVAValues",
41 mergedSource =
"mergedDuplicateTracks",
42 mergedMVAVals =
"duplicateTrackClassifier:MVAValues",
43 candidateSource =
"duplicateTrackCandidates:candidates",
44 candidateComponents =
"duplicateTrackCandidates:candidateMap"
47 generalTracksTask = cms.Task(
48 duplicateTrackCandidates,
49 mergedDuplicateTracks,
50 duplicateTrackClassifier,
53 generalTracksSequence = cms.Sequence(generalTracksTask)
55 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
56 fastSim.toReplaceWith(generalTracksTask,
57 cms.Task(duplicateTrackCandidates,
58 mergedDuplicateTracks,
59 duplicateTrackClassifier)
63 from FastSimulation.Configuration.DigiAliases_cff
import loadGeneralTracksAlias
65 modifyMergeTrackCollections_fastSimGeneralTracks = fastSim.makeProcessModifier( _fastSimGeneralTracks )
68 conversionStepTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
69 TrackProducers = [
'convStepTracks'],
71 selectedTrackQuals = [
'convStepSelector:convStep'],
72 setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(1), pQual=cms.bool(
True) )
75 makeReKeyedSeeds = cms.untracked.bool(
False),
78 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
79 phase2_timing_layer.toModify(mergedDuplicateTracks, TrajectoryInEvent =
True)
80 phase2_timing_layer.toModify(generalTracks, copyTrajectories =
True)
def loadGeneralTracksAlias
def _fastSimGeneralTracks