CMS 3D CMS Logo

earlyGeneralTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
4 
6 earlyGeneralTracks = TrackCollectionMerger.clone(
7  trackProducers = ['initialStepTracks',
8  'jetCoreRegionalStepTracks',
9  'lowPtTripletStepTracks',
10  'pixelPairStepTracks',
11  'detachedTripletStepTracks',
12  'mixedTripletStepTracks',
13  'pixelLessStepTracks',
14  'tobTecStepTracks'
15  ],
16  inputClassifiers =['initialStep',
17  'jetCoreRegionalStep',
18  'lowPtTripletStep',
19  'pixelPairStep',
20  'detachedTripletStep',
21  'mixedTripletStep',
22  'pixelLessStep',
23  'tobTecStep'
24  ]
25 )
26 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
27 trackingLowPU.toModify(earlyGeneralTracks,
28  trackProducers = [
29  'initialStepTracks',
30  'lowPtTripletStepTracks',
31  'pixelPairStepTracks',
32  'detachedTripletStepTracks',
33  'mixedTripletStepTracks',
34  'pixelLessStepTracks',
35  'tobTecStepTracks'
36  ],
37  inputClassifiers = [
38  'initialStepSelector',
39  'lowPtTripletStepSelector',
40  'pixelPairStepSelector',
41  'detachedTripletStep',
42  'mixedTripletStep',
43  'pixelLessStepSelector',
44  'tobTecStep'
45  ]
46 )
47 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
48 _forPhase1 = dict(
49  trackProducers = [
50  'initialStepTracks',
51  'highPtTripletStepTracks',
52  'jetCoreRegionalStepTracks',
53  'lowPtQuadStepTracks',
54  'lowPtTripletStepTracks',
55  'detachedQuadStepTracks',
56  'detachedTripletStepTracks',
57  'pixelPairStepTracks',
58  'mixedTripletStepTracks',
59  'pixelLessStepTracks',
60  'tobTecStepTracks'
61  ],
62  inputClassifiers = [
63  'initialStep',
64  'highPtTripletStep',
65  'jetCoreRegionalStep',
66  'lowPtQuadStep',
67  'lowPtTripletStep',
68  'detachedQuadStep',
69  'detachedTripletStep',
70  'pixelPairStep',
71  'mixedTripletStep',
72  'pixelLessStep',
73  'tobTecStep'
74  ],
75 )
76 trackingPhase1.toModify(earlyGeneralTracks, **_forPhase1)
77 
78 # For Phase2PU140
79 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
80 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
81 trackingPhase2PU140.toReplaceWith(earlyGeneralTracks, _trackListMerger.clone(
82  TrackProducers =['initialStepTracks',
83  'highPtTripletStepTracks',
84  'lowPtQuadStepTracks',
85  'lowPtTripletStepTracks',
86  'detachedQuadStepTracks',
87  'pixelPairStepTracks',
88  ],
89  hasSelector = [1,1,1,1,1,1],
90  indivShareFrac = [1.0,0.16,0.095,0.09,0.09,0.09],
91  selectedTrackQuals = ['initialStepSelector:initialStep',
92  'highPtTripletStepSelector:highPtTripletStep',
93  'lowPtQuadStepSelector:lowPtQuadStep',
94  'lowPtTripletStepSelector:lowPtTripletStep',
95  'detachedQuadStep',
96  'pixelPairStepSelector:pixelPairStep',
97  ],
98  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) )
99  ),
100  copyExtras = True,
101  makeReKeyedSeeds = cms.untracked.bool(False)
102  )
103 )
104 from Configuration.ProcessModifiers.vectorHits_cff import vectorHits
106  x.TrackProducers += ['pixelLessStepTracks']
107  x.hasSelector += [1]
108  x.indivShareFrac += [0.095]
109  x.selectedTrackQuals += ['pixelLessStepSelector:pixelLessStep']
110  x.setsToMerge[0].tLists += [6]
111 (trackingPhase2PU140 & vectorHits).toModify(earlyGeneralTracks, _extend_pixelLess)
112 
TrackCollectionMerger_cfi
earlyGeneralTracks_cfi._extend_pixelLess
def _extend_pixelLess(x)
Definition: earlyGeneralTracks_cfi.py:105
trackListMerger_cfi