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_trackingPhase2PU140_cff import trackingPhase2PU140
37 
38 # TrackingRegion
39 pixelTracksTrackingRegions = _globalTrackingRegionFromBeamSpot.clone()
40 trackingPhase2PU140.toModify(pixelTracksTrackingRegions, RegionPSet = dict(originRadius = 0.02))
41 
42 # Hit ntuplets
43 pixelTracksHitDoublets = _hitPairEDProducer.clone(
44  clusterCheck = "",
45  seedingLayers = "PixelLayerTriplets",
46  trackingRegions = "pixelTracksTrackingRegions",
47  maxElement = 0,
48  produceIntermediateHitDoublets = True,
49 )
50 _seedingLayers = dict(seedingLayers = "PixelLayerTripletsPreSplitting")
51 trackingLowPU.toModify(pixelTracksHitDoublets, **_seedingLayers)
52 trackingPhase2PU140.toModify(pixelTracksHitDoublets, **_seedingLayers)
53 
54 pixelTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
55  doublets = "pixelTracksHitDoublets",
56  produceSeedingHitSets = True,
57  SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
58 )
59 _SeedComparitorPSet = dict(SeedComparitorPSet = dict(clusterShapeCacheSrc = "siPixelClusterShapeCachePreSplitting"))
60 trackingLowPU.toModify(pixelTracksHitTriplets, **_SeedComparitorPSet)
61 trackingPhase2PU140.toModify(pixelTracksHitTriplets, maxElement=0, **_SeedComparitorPSet)
62 
63 pixelTracksHitQuadruplets = _pixelQuadrupletMergerEDProducer.clone(
64  triplets = "pixelTracksHitTriplets",
65  layerList = dict(refToPSet_ = cms.string("PixelSeedMergerQuadruplets")),
66 )
67 
68 pixelTracksSequence = cms.Sequence(
69  pixelTracksTrackingRegions +
70  pixelTracksHitDoublets +
71  pixelTracksHitTriplets +
72  pixelFitterByHelixProjections +
73  pixelTrackFilterByKinematics +
74  pixelTracks
75 )
76 _pixelTracksSequence_quad = pixelTracksSequence.copy()
77 _pixelTracksSequence_quad.replace(pixelTracksHitTriplets, pixelTracksHitTriplets+pixelTracksHitQuadruplets)
78 trackingPhase2PU140.toReplaceWith(pixelTracksSequence, _pixelTracksSequence_quad)
COSMIC RUN SETTING.