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 = 50000000,
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  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 import RecoPixelVertexing.PixelTrackFitting.pixelTracks_cfi as _mod
57 
58 # Pixel tracks
59 hiPixel3PrimTracks = _mod.pixelTracks.clone(
60  passLabel = 'Pixel triplet primary tracks with vertex constraint',
61  # Ordered Hits
62  SeedingHitSets = "hiPixel3PrimTracksHitTriplets",
63  # Fitter
64  Fitter = "pixelFitterByHelixProjections",
65  # Filter
66  Filter = "hiFilter",
67  # Cleaner
68  Cleaner = "trackCleaner"
69 )
70 trackingPhase1.toModify(hiPixel3PrimTracks,
71  SeedingHitSets = "hiPixel3PrimTracksHitQuadrupletsCA",
72 )
73 
74 hiPixel3PrimTracksTask = cms.Task(
75  hiTrackingRegionWithVertex ,
76  hiPixel3PrimTracksHitDoublets ,
77  hiPixel3PrimTracksHitTriplets ,
78  pixelFitterByHelixProjections ,
79  hiFilter ,
80  hiPixel3PrimTracks
81 )
82 hiPixel3PrimTracksSequence = cms.Sequence(hiPixel3PrimTracksTask)
83 #phase 1 changes
84 hiPixel3PrimTracksTask_Phase1 = hiPixel3PrimTracksTask.copy()
85 hiPixel3PrimTracksTask_Phase1.replace(hiPixel3PrimTracksHitDoublets, cms.Task(hiPixelLayerQuadruplets,hiPixel3PrimTracksHitDoubletsCA) )
86 hiPixel3PrimTracksTask_Phase1.replace(hiPixel3PrimTracksHitTriplets,hiPixel3PrimTracksHitQuadrupletsCA)
87 trackingPhase1.toReplaceWith(hiPixel3PrimTracksTask,hiPixel3PrimTracksTask_Phase1)
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...