CMS 3D CMS Logo

PixelTracks_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
8 myTTRHBuilderWithoutAngle = RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi.ttrhbwr.clone(
9  StripCPE = 'Fake',
10  ComponentName = 'PixelTTRHBuilderWithoutAngle'
11 )
14 from RecoPixelVertexing.PixelTrackFitting.pixelFitterByHelixProjections_cfi import pixelFitterByHelixProjections
15 from RecoPixelVertexing.PixelTrackFitting.pixelTrackFilterByKinematics_cfi import pixelTrackFilterByKinematics
16 from RecoPixelVertexing.PixelTrackFitting.pixelTrackCleanerBySharedHits_cfi import pixelTrackCleanerBySharedHits
17 from RecoPixelVertexing.PixelTrackFitting.pixelTracks_cfi import pixelTracks as _pixelTracks
18 from RecoTracker.TkTrackingRegions.globalTrackingRegion_cfi import globalTrackingRegion as _globalTrackingRegion
19 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi import globalTrackingRegionFromBeamSpot as _globalTrackingRegionFromBeamSpot
20 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
21 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
23 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
24 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
25 
26 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
27 
28 # SEEDING LAYERS
29 from RecoTracker.IterativeTracking.InitialStep_cff import initialStepSeedLayers, initialStepHitDoublets, _initialStepCAHitQuadruplets
30 
31 # TrackingRegion
32 pixelTracksTrackingRegions = _globalTrackingRegion.clone()
33 trackingLowPU.toReplaceWith(pixelTracksTrackingRegions, _globalTrackingRegionFromBeamSpot.clone())
34 
35 
36 # Pixel Quadruplets Tracking
37 pixelTracksSeedLayers = initialStepSeedLayers.clone(
38  BPix = dict(HitProducer = "siPixelRecHitsPreSplitting"),
39  FPix = dict(HitProducer = "siPixelRecHitsPreSplitting")
40 )
41 
42 pixelTracksHitDoublets = initialStepHitDoublets.clone(
43  clusterCheck = "",
44  seedingLayers = "pixelTracksSeedLayers",
45  trackingRegions = "pixelTracksTrackingRegions"
46 )
47 
48 pixelTracksHitQuadruplets = _initialStepCAHitQuadruplets.clone(
49  doublets = "pixelTracksHitDoublets",
50  SeedComparitorPSet = dict(clusterShapeCacheSrc = 'siPixelClusterShapeCachePreSplitting')
51 )
52 
53 # for trackingLowPU
54 pixelTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
55  doublets = "pixelTracksHitDoublets",
56  produceSeedingHitSets = True,
57  SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(
58  clusterShapeCacheSrc = "siPixelClusterShapeCachePreSplitting"
59  )
60 )
61 
62 pixelTracks = _pixelTracks.clone(
63  SeedingHitSets = "pixelTracksHitQuadruplets"
64 )
65 trackingLowPU.toModify(pixelTracks, SeedingHitSets = "pixelTracksHitTriplets")
66 
67 pixelTracksTask = cms.Task(
68  pixelTracksTrackingRegions,
69  pixelFitterByHelixProjections,
70  pixelTrackFilterByKinematics,
71  pixelTracksSeedLayers,
72  pixelTracksHitDoublets,
73  pixelTracksHitQuadruplets,
74  pixelTracks
75 )
76 _pixelTracksTask_lowPU = pixelTracksTask.copy()
77 _pixelTracksTask_lowPU.replace(pixelTracksHitQuadruplets, pixelTracksHitTriplets)
78 trackingLowPU.toReplaceWith(pixelTracksTask, _pixelTracksTask_lowPU)
79 
80 pixelTracksSequence = cms.Sequence(pixelTracksTask)
COSMIC RUN SETTING.