CMS 3D CMS Logo

PixelTracks_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Magntic field
4 # Geometry (all CMS)
5 # Tracker Geometry Builder
6 # Tracker Numbering Builder
7 # Reco geometry
8 #from RecoTracker.GeometryESProducer.TrackerRecoGeometryESProducer_cfi import *
9 # for Transient rechits?
13 #-ap include "CalibTracker/Configuration/data/SiPixelLorentzAngle/SiPixelLorentzAngle_Fake.cff"
14 # include "RecoTracker/TransientTrackingRecHit/data/TransientTrackingRecHitBuilderWithoutRefit.cfi"
17 myTTRHBuilderWithoutAngle = RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi.ttrhbwr.clone(
18  StripCPE = 'Fake',
19  ComponentName = 'PixelTTRHBuilderWithoutAngle'
20 )
23 from RecoPixelVertexing.PixelTrackFitting.pixelFitterByHelixProjections_cfi import pixelFitterByHelixProjections
24 from RecoPixelVertexing.PixelTrackFitting.pixelTrackFilterByKinematics_cfi import pixelTrackFilterByKinematics
25 from RecoPixelVertexing.PixelTrackFitting.pixelTrackCleanerBySharedHits_cfi import pixelTrackCleanerBySharedHits
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
34 
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
38 
39 # TrackingRegion
40 pixelTracksTrackingRegions = _globalTrackingRegionFromBeamSpot.clone()
41 trackingPhase1PU70.toModify(pixelTracksTrackingRegions, RegionPSet = dict(originRadius = 0.02))
42 trackingPhase2PU140.toModify(pixelTracksTrackingRegions, RegionPSet = dict(originRadius = 0.02))
43 
44 # Hit ntuplets
45 pixelTracksHitDoublets = _hitPairEDProducer.clone(
46  clusterCheck = "",
47  seedingLayers = "PixelLayerTriplets",
48  trackingRegions = "pixelTracksTrackingRegions",
49  maxElement = 0,
50  produceIntermediateHitDoublets = True,
51 )
52 _seedingLayers = dict(seedingLayers = "PixelLayerTripletsPreSplitting")
53 trackingLowPU.toModify(pixelTracksHitDoublets, **_seedingLayers)
54 trackingPhase1PU70.toModify(pixelTracksHitDoublets, **_seedingLayers)
55 trackingPhase2PU140.toModify(pixelTracksHitDoublets, **_seedingLayers)
56 
57 pixelTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
58  doublets = "pixelTracksHitDoublets",
59  produceSeedingHitSets = True,
60  SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
61 )
62 _SeedComparitorPSet = dict(SeedComparitorPSet = dict(clusterShapeCacheSrc = "siPixelClusterShapeCachePreSplitting"))
63 trackingLowPU.toModify(pixelTracksHitTriplets, **_SeedComparitorPSet)
64 trackingPhase1PU70.toModify(pixelTracksHitTriplets, **_SeedComparitorPSet)
65 trackingPhase2PU140.toModify(pixelTracksHitTriplets, maxElement=0, **_SeedComparitorPSet)
66 
67 pixelTracksHitQuadruplets = _pixelQuadrupletMergerEDProducer.clone(
68  triplets = "pixelTracksHitTriplets",
69  layerList = dict(refToPSet_ = cms.string("PixelSeedMergerQuadruplets")),
70 )
71 
72 pixelTracksSequence = cms.Sequence(
73  pixelTracksTrackingRegions +
74  pixelTracksHitDoublets +
75  pixelTracksHitTriplets +
76  pixelFitterByHelixProjections +
77  pixelTrackFilterByKinematics +
78  pixelTracks
79 )
80 _pixelTracksSequence_quad = pixelTracksSequence.copy()
81 _pixelTracksSequence_quad.replace(pixelTracksHitTriplets, pixelTracksHitTriplets+pixelTracksHitQuadruplets)
82 trackingPhase1PU70.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_quad)
83 trackingPhase2PU140.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_quad)