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_trackingPhase1PU70_cff
import trackingPhase1PU70
37 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
40 pixelTracksTrackingRegions = _globalTrackingRegionFromBeamSpot.clone()
41 trackingPhase1PU70.toModify(pixelTracksTrackingRegions, RegionPSet =
dict(originRadius = 0.02))
42 trackingPhase2PU140.toModify(pixelTracksTrackingRegions, RegionPSet =
dict(originRadius = 0.02))
45 pixelTracksHitDoublets = _hitPairEDProducer.clone(
47 seedingLayers =
"PixelLayerTriplets",
48 trackingRegions =
"pixelTracksTrackingRegions",
50 produceIntermediateHitDoublets =
True,
52 _seedingLayers =
dict(seedingLayers =
"PixelLayerTripletsPreSplitting")
53 trackingLowPU.toModify(pixelTracksHitDoublets, **_seedingLayers)
54 trackingPhase1PU70.toModify(pixelTracksHitDoublets, **_seedingLayers)
55 trackingPhase2PU140.toModify(pixelTracksHitDoublets, **_seedingLayers)
57 pixelTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
58 doublets =
"pixelTracksHitDoublets",
59 produceSeedingHitSets =
True,
60 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
62 _SeedComparitorPSet =
dict(SeedComparitorPSet =
dict(clusterShapeCacheSrc =
"siPixelClusterShapeCachePreSplitting"))
63 trackingLowPU.toModify(pixelTracksHitTriplets, **_SeedComparitorPSet)
64 trackingPhase1PU70.toModify(pixelTracksHitTriplets, **_SeedComparitorPSet)
65 trackingPhase2PU140.toModify(pixelTracksHitTriplets, maxElement=0, **_SeedComparitorPSet)
67 pixelTracksHitQuadruplets = _pixelQuadrupletMergerEDProducer.clone(
68 triplets =
"pixelTracksHitTriplets",
69 layerList =
dict(refToPSet_ = cms.string(
"PixelSeedMergerQuadruplets")),
72 pixelTracksSequence = cms.Sequence(
73 pixelTracksTrackingRegions +
74 pixelTracksHitDoublets +
75 pixelTracksHitTriplets +
76 pixelFitterByHelixProjections +
77 pixelTrackFilterByKinematics +
80 _pixelTracksSequence_quad = pixelTracksSequence.copy()
81 _pixelTracksSequence_quad.replace(pixelTracksHitTriplets, pixelTracksHitTriplets+pixelTracksHitQuadruplets)
82 trackingPhase1PU70.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_quad)
83 trackingPhase2PU140.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_quad)