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