1 import FWCore.ParameterSet.Config
as cms
17 myTTRHBuilderWithoutAngle = RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi.ttrhbwr.clone(
19 ComponentName =
'PixelTTRHBuilderWithoutAngle' 24 from RecoPixelVertexing.PixelTrackFitting.pixelTrackFilterByKinematics_cfi
import pixelTrackFilterByKinematics
26 from RecoPixelVertexing.PixelTrackFitting.pixelTracks_cfi
import pixelTracks
27 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
28 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
29 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
31 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
32 from RecoPixelVertexing.PixelTriplets.pixelQuadrupletMergerEDProducer_cfi
import pixelQuadrupletMergerEDProducer
as _pixelQuadrupletMergerEDProducer
35 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
36 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
39 pixelTracksTrackingRegions = _globalTrackingRegionFromBeamSpot.clone()
40 trackingPhase2PU140.toModify(pixelTracksTrackingRegions, RegionPSet =
dict(originRadius = 0.02))
43 pixelTracksHitDoublets = _hitPairEDProducer.clone(
45 seedingLayers =
"PixelLayerTriplets",
46 trackingRegions =
"pixelTracksTrackingRegions",
48 produceIntermediateHitDoublets =
True,
50 _seedingLayers =
dict(seedingLayers =
"PixelLayerTripletsPreSplitting")
51 trackingLowPU.toModify(pixelTracksHitDoublets, **_seedingLayers)
52 trackingPhase2PU140.toModify(pixelTracksHitDoublets, **_seedingLayers)
54 pixelTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
55 doublets =
"pixelTracksHitDoublets",
56 produceSeedingHitSets =
True,
57 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
59 _SeedComparitorPSet =
dict(SeedComparitorPSet =
dict(clusterShapeCacheSrc =
"siPixelClusterShapeCachePreSplitting"))
60 trackingLowPU.toModify(pixelTracksHitTriplets, **_SeedComparitorPSet)
61 trackingPhase2PU140.toModify(pixelTracksHitTriplets, maxElement=0, **_SeedComparitorPSet)
63 pixelTracksHitQuadruplets = _pixelQuadrupletMergerEDProducer.clone(
64 triplets =
"pixelTracksHitTriplets",
65 layerList =
dict(refToPSet_ = cms.string(
"PixelSeedMergerQuadruplets")),
68 pixelTracksSequence = cms.Sequence(
69 pixelTracksTrackingRegions +
70 pixelTracksHitDoublets +
71 pixelTracksHitTriplets +
72 pixelFitterByHelixProjections +
73 pixelTrackFilterByKinematics +
76 _pixelTracksSequence_quad = pixelTracksSequence.copy()
77 _pixelTracksSequence_quad.replace(pixelTracksHitTriplets, pixelTracksHitTriplets+pixelTracksHitQuadruplets)
78 trackingPhase2PU140.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_quad)