CMS 3D CMS Logo

HIPixel3PrimTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
4 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
5 from RecoPixelVertexing.PixelTriplets.pixelQuadrupletEDProducer_cfi import pixelQuadrupletEDProducer as _pixelQuadrupletEDProducer
13 
14 #from RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi import *
15 
16 hiPixelLayerQuadruplets = PixelLayerTriplets.clone()
17 hiPixelLayerQuadruplets.layerList = PixelSeedMergerQuadruplets.layerList
18 
19 # Hit ntuplets
20 hiPixel3PrimTracksHitDoublets = _hitPairEDProducer.clone(
21  clusterCheck = "",
22  seedingLayers = "PixelLayerTriplets",
23  trackingRegions = "hiTrackingRegionWithVertex",
24  maxElement = 0,
25  produceIntermediateHitDoublets = True,
26 )
27 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
28 trackingPhase1.toModify(hiPixel3PrimTracksHitDoublets,
29  seedingLayers = "hiPixelLayerQuadruplets"
30 )
31 
32 
33 hiPixel3PrimTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
34  doublets = "hiPixel3PrimTracksHitDoublets",
35  maxElement = 1000000, # increase threshold for triplets in generation step (default: 100000)
36  produceSeedingHitSets = True,
37  produceIntermediateHitTriplets = True,
38 )
39 
40 from RecoPixelVertexing.PixelTriplets.caHitQuadrupletEDProducer_cfi import caHitQuadrupletEDProducer as _caHitQuadrupletEDProducer
41 hiPixel3PrimTracksHitDoubletsCA = hiPixel3PrimTracksHitDoublets.clone()
42 hiPixel3PrimTracksHitDoubletsCA.layerPairs = [0,1,2]
43 
44 hiPixel3PrimTracksHitQuadrupletsCA = _caHitQuadrupletEDProducer.clone(
45  doublets = "hiPixel3PrimTracksHitDoubletsCA",
46  extraHitRPhitolerance = hiPixel3PrimTracksHitTriplets.extraHitRPhitolerance,
47  SeedComparitorPSet = hiPixel3PrimTracksHitTriplets.SeedComparitorPSet,
48  maxChi2 = dict(
49  pt1 = 0.7, pt2 = 2,
50  value1 = 200, value2 = 50,
51  ),
52  useBendingCorrection = True,
53  fitFastCircle = True,
54  fitFastCircleChi2Cut = True,
55  CAThetaCut = 0.0012,
56  CAPhiCut = 0.2,
57 )
58 
59 # Pixel tracks
60 hiPixel3PrimTracks = cms.EDProducer("PixelTrackProducer",
61 
62  passLabel = cms.string('Pixel triplet primary tracks with vertex constraint'),
63 
64  # Ordered Hits
65  SeedingHitSets = cms.InputTag("hiPixel3PrimTracksHitTriplets"),
66 
67  # Fitter
68  Fitter = cms.InputTag("pixelFitterByHelixProjections"),
69 
70  # Filter
71  Filter = cms.InputTag("hiFilter"),
72 
73  # Cleaner
74  Cleaner = cms.string("trackCleaner")
75 )
76 trackingPhase1.toModify(hiPixel3PrimTracks,
77  SeedingHitSets = cms.InputTag("hiPixel3PrimTracksHitQuadrupletsCA"),
78 )
79 
80 hiPixel3PrimTracksSequence = cms.Sequence(
81  hiTrackingRegionWithVertex +
82  hiPixel3PrimTracksHitDoublets +
83  hiPixel3PrimTracksHitTriplets +
84  pixelFitterByHelixProjections +
85  hiFilter +
86  hiPixel3PrimTracks
87 )
88 
89 #phase 1 changes
90 hiPixel3PrimTracksSequence_Phase1 = hiPixel3PrimTracksSequence.copy()
91 hiPixel3PrimTracksSequence_Phase1.replace(hiPixel3PrimTracksHitDoublets,hiPixelLayerQuadruplets+hiPixel3PrimTracksHitDoubletsCA)
92 hiPixel3PrimTracksSequence_Phase1.replace(hiPixel3PrimTracksHitTriplets,hiPixel3PrimTracksHitQuadrupletsCA)
93 trackingPhase1.toReplaceWith(hiPixel3PrimTracksSequence,hiPixel3PrimTracksSequence_Phase1)
COSMIC RUN SETTING.
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...