CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PixelTracks_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 myTTRHBuilderWithoutAngle = RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi.ttrhbwr.clone(
8  StripCPE = 'Fake',
9  ComponentName = 'PixelTTRHBuilderWithoutAngle'
10 )
13 from RecoPixelVertexing.PixelTrackFitting.pixelFitterByHelixProjections_cfi import pixelFitterByHelixProjections
14 from RecoPixelVertexing.PixelTrackFitting.pixelNtupletsFitter_cfi import pixelNtupletsFitter
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 # Use ntuple fit and substitute previous Fitter producer with the ntuple one
81 from Configuration.ProcessModifiers.pixelNtupleFit_cff import pixelNtupleFit as ntupleFit
82 ntupleFit.toModify(pixelTracks, Fitter = "pixelNtupletsFitter")
83 _pixelTracksTask_ntupleFit = pixelTracksTask.copy()
84 _pixelTracksTask_ntupleFit.replace(pixelFitterByHelixProjections, pixelNtupletsFitter)
85 ntupleFit.toReplaceWith(pixelTracksTask, _pixelTracksTask_ntupleFit)
86 
87 
88 from Configuration.ProcessModifiers.gpu_cff import gpu
89 from RecoPixelVertexing.PixelTriplets.caHitNtupletCUDA_cfi import caHitNtupletCUDA
90 from RecoPixelVertexing.PixelTrackFitting.pixelTrackSoA_cfi import pixelTrackSoA
91 from RecoPixelVertexing.PixelTrackFitting.pixelTrackProducerFromSoA_cfi import pixelTrackProducerFromSoA as _pixelTrackFromSoA
92 _pixelTracksGPUTask = cms.Task(
93  caHitNtupletCUDA,
94  pixelTrackSoA,
95  pixelTracks # FromSoA
96 )
97 
98 gpu.toReplaceWith(pixelTracksTask, _pixelTracksGPUTask)
99 gpu.toReplaceWith(pixelTracks,_pixelTrackFromSoA)
100 
101 
102 pixelTracksSequence = cms.Sequence(pixelTracksTask)
SiStripRecHitMatcher_cfi
ClusterShapeHitFilterESProducer_cfi
pixelTrackCleanerBySharedHits_cfi
InitialStep_cff
TTRHBuilderWithoutAngle4PixelTriplets_cfi
PixelLayerTriplets_cfi
TRIGGER SELECTION #####.
TransientTrackingRecHitBuilder_cfi
StripCPEfromTrackAngle_cfi
pixelFitterByHelixProjections_cfi