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