Skip to content

Commit

Permalink
Merge pull request #14621 from makortel/phase1PixelSeedExtensionIniti…
Browse files Browse the repository at this point in the history
…alStep

Use pixel seed extension for phase1 in initialStep
  • Loading branch information
cmsbuild committed May 26, 2016
2 parents cd10f46 + 48c74d0 commit fc7031e
Showing 1 changed file with 17 additions and 28 deletions.
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

0 comments on commit fc7031e

Please sign in to comment.