Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pixel seed extension for phase1 in initialStep #14621

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 17 additions & 28 deletions RecoTracker/IterativeTracking/python/InitialStep_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@

# SEEDING LAYERS
import RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi
import RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff
initialStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
eras.trackingPhase1.toModify(initialStepSeedLayers,
layerList = RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff.PixelSeedMergerQuadruplets.layerList.value()
layerList = [
'BPix1+BPix2+BPix3',
'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg'
]
)


# seeding
from RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff import *
from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
from RecoPixelVertexing.PixelTriplets.PixelQuadrupletGenerator_cfi import PixelQuadrupletGenerator as _PixelQuadrupletGenerator
initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
Expand All @@ -41,31 +45,6 @@
mergeTriplets = cms.bool(True),
ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
)
eras.trackingPhase1.toModify(initialStepSeeds,
OrderedHitsFactoryPSet = cms.PSet(
ComponentName = cms.string("CombinedHitQuadrupletGenerator"),
GeneratorPSet = _PixelQuadrupletGenerator.clone(
extraHitRZtolerance = initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.extraHitRZtolerance,
extraHitRPhitolerance = initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.extraHitRPhitolerance,
SeedComparitorPSet = initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet,
maxChi2 = dict(
pt1 = 0.8, pt2 = 2,
value1 = 200, value2 = 100,
enabled = True,
),
extraPhiTolerance = dict(
pt1 = 0.6, pt2 = 1,
value1 = 0.15, value2 = 0.1,
enabled = True,
),
useBendingCorrection = True,
fitFastCircle = True,
fitFastCircleChi2Cut = True,
),
TripletGeneratorPSet = initialStepSeeds.OrderedHitsFactoryPSet.GeneratorPSet,
SeedingLayers = cms.InputTag('initialStepSeedLayers'),
)
)
eras.trackingPhase1PU70.toModify(initialStepSeeds,
RegionFactoryPSet = dict(RegionPSet = dict(ptMin = 0.7)),
SeedMergerPSet = _SeedMergerPSet
Expand All @@ -84,6 +63,12 @@
maxCCCLostHits = 2,
minGoodStripCharge = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutLoose'))
)
initialStepTrajectoryFilterInOut = initialStepTrajectoryFilterBase.clone(
minimumNumberOfHits = 4,
seedExtension = 1,
strictSeedExtension = True, # don't allow inactive
pixelSeedExtension = True,
)
eras.trackingLowPU.toReplaceWith(initialStepTrajectoryFilterBase, _initialStepTrajectoryFilterBase)
eras.trackingPhase1PU70.toReplaceWith(initialStepTrajectoryFilterBase, _initialStepTrajectoryFilterBase)

Expand Down Expand Up @@ -119,6 +104,10 @@
maxPtForLooperReconstruction = cms.double(0.7)
)
eras.trackingLowPU.toModify(initialStepTrajectoryBuilder, maxCand = 5)
eras.trackingPhase1.toModify(initialStepTrajectoryBuilder,
inOutTrajectoryFilter = dict(refToPSet_ = "initialStepTrajectoryFilterInOut"),
useSameTrajFilter = False
)
eras.trackingPhase1PU70.toModify(initialStepTrajectoryBuilder, maxCand = 6)

import RecoTracker.CkfPattern.CkfTrackCandidates_cfi
Expand Down