1 import FWCore.ParameterSet.Config
as cms
4 from RecoMuon.MuonIdentification.earlyMuons_cfi
import earlyMuons
7 import RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi
8 import RecoTracker.SpecialSeedGenerators.inOutSeedsFromTrackerMuons_cfi
9 muonSeededSeedsOutIn = RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi.outInSeedsFromStandaloneMuons.clone(
12 muonSeededSeedsInOut = RecoTracker.SpecialSeedGenerators.inOutSeedsFromTrackerMuons_cfi.inOutSeedsFromTrackerMuons.clone(
16 from RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi
import hitCollectorForOutInMuonSeeds
21 muonSeededTrajectoryCleanerBySharedHits = TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi.trajectoryCleanerBySharedHits.clone(
22 ComponentName = cms.string(
'muonSeededTrajectoryCleanerBySharedHits'),
23 fractionShared = cms.double(0.1),
24 ValidHitBonus = cms.double(1000.0),
25 MissingHitPenalty = cms.double(1.0),
26 ComponentType = cms.string(
'TrajectoryCleanerBySharedHits'),
27 allowSharedFirstHit = cms.bool(
True)
33 muonSeededMeasurementEstimatorForInOut = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
34 ComponentName = cms.string(
'muonSeededMeasurementEstimatorForInOut'),
35 MaxChi2 = cms.double(80.0),
36 nSigma = cms.double(4.),
38 muonSeededMeasurementEstimatorForOutIn = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
39 ComponentName = cms.string(
'muonSeededMeasurementEstimatorForOutIn'),
40 MaxChi2 = cms.double(30.0),
41 nSigma = cms.double(3.),
46 muonSeededTrajectoryFilterForInOut = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone()
47 muonSeededTrajectoryFilterForInOut.constantValueForLostHitsFractionFilter = 10
48 muonSeededTrajectoryFilterForInOut.minimumNumberOfHits = 3
50 muonSeededTrajectoryFilterForOutIn = muonSeededTrajectoryFilterForInOut.clone()
51 muonSeededTrajectoryFilterForOutIn.constantValueForLostHitsFractionFilter = 10
52 muonSeededTrajectoryFilterForOutIn.minimumNumberOfHits = 5
56 muonSeededTrajectoryBuilderForInOut = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
57 foundHitBonus = cms.double(1000.0),
58 lostHitPenalty = cms.double(1.0),
59 maxCand = cms.int32(5),
60 estimator = cms.string(
'muonSeededMeasurementEstimatorForInOut'),
61 trajectoryFilter = cms.PSet(refToPSet_ = cms.string(
'muonSeededTrajectoryFilterForInOut')),
62 inOutTrajectoryFilter = cms.PSet(refToPSet_ = cms.string(
'muonSeededTrajectoryFilterForInOut')),
63 minNrOfHitsForRebuild = cms.int32(2),
64 requireSeedHitsInRebuild = cms.bool(
True),
65 keepOriginalIfRebuildFails = cms.bool(
True),
67 muonSeededTrajectoryBuilderForOutIn = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
68 foundHitBonus = cms.double(1000.0),
69 lostHitPenalty = cms.double(1.0),
70 maxCand = cms.int32(3),
71 estimator = cms.string(
'muonSeededMeasurementEstimatorForOutIn'),
72 trajectoryFilter = cms.PSet(refToPSet_ = cms.string(
'muonSeededTrajectoryFilterForOutIn')),
73 inOutTrajectoryFilter = cms.PSet(refToPSet_ = cms.string(
'muonSeededTrajectoryFilterForOutIn')),
74 minNrOfHitsForRebuild = cms.int32(5),
75 requireSeedHitsInRebuild = cms.bool(
True),
76 keepOriginalIfRebuildFails = cms.bool(
False),
81 muonSeededFittingSmootherWithOutliersRejectionAndRK = TrackingTools.TrackFitters.RungeKuttaFitters_cff.KFFittingSmootherWithOutliersRejectionAndRK.clone(
82 ComponentName = cms.string(
"muonSeededFittingSmootherWithOutliersRejectionAndRK"),
83 BreakTrajWith2ConsecutiveMissing = cms.bool(
False),
84 EstimateCut = cms.double(50.),
89 muonSeededTrackCandidatesInOut = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
90 src = cms.InputTag(
"muonSeededSeedsInOut"),
91 TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string(
"muonSeededTrajectoryBuilderForInOut")),
92 TrajectoryCleaner = cms.string(
'muonSeededTrajectoryCleanerBySharedHits'),
93 RedundantSeedCleaner = cms.string(
"none"),
95 muonSeededTrackCandidatesOutIn = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
96 src = cms.InputTag(
"muonSeededSeedsOutIn"),
97 TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string(
"muonSeededTrajectoryBuilderForOutIn")),
98 TrajectoryCleaner = cms.string(
'muonSeededTrajectoryCleanerBySharedHits'),
99 numHitsForSeedCleaner = cms.int32(50),
100 onlyPixelHitsForSeedCleaner = cms.bool(
False),
105 muonSeededTracksOutIn = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
106 src = cms.InputTag(
"muonSeededTrackCandidatesOutIn"),
107 AlgorithmName = cms.string(
'muonSeededStepOutIn'),
108 Fitter = cms.string(
"muonSeededFittingSmootherWithOutliersRejectionAndRK"),
110 muonSeededTracksInOut = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
111 src = cms.InputTag(
"muonSeededTrackCandidatesInOut"),
112 AlgorithmName = cms.string(
'muonSeededStepInOut'),
113 Fitter = cms.string(
"muonSeededFittingSmootherWithOutliersRejectionAndRK"),
119 muonSeededTracksInOutClassifier = TrackCutClassifier.clone()
120 muonSeededTracksInOutClassifier.src=
'muonSeededTracksInOut'
121 muonSeededTracksInOutClassifier.mva.minPixelHits = [0,0,0]
122 muonSeededTracksInOutClassifier.mva.maxChi2 = [9999.,9999.,9999.]
123 muonSeededTracksInOutClassifier.mva.maxChi2n = [10.0,1.0,0.4]
124 muonSeededTracksInOutClassifier.mva.minLayers = [3,5,5]
125 muonSeededTracksInOutClassifier.mva.min3DLayers = [1,2,2]
126 muonSeededTracksInOutClassifier.mva.maxLostLayers = [4,3,2]
129 muonSeededTracksOutInClassifier = TrackCutClassifier.clone()
130 muonSeededTracksOutInClassifier.src=
'muonSeededTracksOutIn'
131 muonSeededTracksOutInClassifier.mva.minPixelHits = [0,0,0]
132 muonSeededTracksOutInClassifier.mva.maxChi2 = [9999.,9999.,9999.]
133 muonSeededTracksOutInClassifier.mva.maxChi2n = [10.0,1.0,0.4]
134 muonSeededTracksOutInClassifier.mva.minLayers = [3,5,5]
135 muonSeededTracksOutInClassifier.mva.min3DLayers = [1,2,2]
136 muonSeededTracksOutInClassifier.mva.maxLostLayers = [4,3,2]
141 muonSeededStepCore = cms.Sequence(
142 muonSeededSeedsInOut + muonSeededTrackCandidatesInOut + muonSeededTracksInOut +
143 muonSeededSeedsOutIn + muonSeededTrackCandidatesOutIn + muonSeededTracksOutIn
145 muonSeededStepExtra = cms.Sequence(
146 muonSeededTracksInOutClassifier +
147 muonSeededTracksOutInClassifier
150 muonSeededStep = cms.Sequence(
158 muonSeededSeedsInOutAsTracks = cms.EDProducer(
"FakeTrackProducerFromSeed", src = cms.InputTag(
"muonSeededSeedsInOut"))
159 muonSeededSeedsOutInAsTracks = cms.EDProducer(
"FakeTrackProducerFromSeed", src = cms.InputTag(
"muonSeededSeedsOutIn"))
160 muonSeededTrackCandidatesInOutAsTracks = cms.EDProducer(
"FakeTrackProducerFromCandidate", src = cms.InputTag(
"muonSeededTrackCandidatesInOut"))
161 muonSeededTrackCandidatesOutInAsTracks = cms.EDProducer(
"FakeTrackProducerFromCandidate", src = cms.InputTag(
"muonSeededTrackCandidatesOutIn"))
162 muonSeededStepDebug = cms.Sequence(
163 muonSeededSeedsOutInAsTracks + muonSeededTrackCandidatesOutInAsTracks +
164 muonSeededSeedsInOutAsTracks + muonSeededTrackCandidatesInOutAsTracks