CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 from Configuration.ProcessModifiers.displacedTracking_cff import displacedTracking
80  x.trackProducers += ['displacedGeneralStepTracks']
81  x.inputClassifiers += ['displacedGeneralStep']
82 (trackingPhase1 & displacedTracking).toModify(earlyGeneralTracks, _extend_displacedGeneral)
83 
84 # For Phase2PU140
85 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
86 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
87 trackingPhase2PU140.toReplaceWith(earlyGeneralTracks, _trackListMerger.clone(
88  TrackProducers =['initialStepTracks',
89  'highPtTripletStepTracks',
90  'lowPtQuadStepTracks',
91  'lowPtTripletStepTracks',
92  'detachedQuadStepTracks',
93  'pixelPairStepTracks',
94  ],
95  hasSelector = [1,1,1,1,1,1],
96  indivShareFrac = [1.0,0.16,0.095,0.09,0.09,0.09],
97  selectedTrackQuals = ['initialStepSelector:initialStep',
98  'highPtTripletStepSelector:highPtTripletStep',
99  'lowPtQuadStepSelector:lowPtQuadStep',
100  'lowPtTripletStepSelector:lowPtTripletStep',
101  'detachedQuadStep',
102  'pixelPairStepSelector:pixelPairStep',
103  ],
104  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) )
105  ),
106  copyExtras = True,
107  makeReKeyedSeeds = cms.untracked.bool(False)
108  )
109 )
110 from Configuration.ProcessModifiers.vectorHits_cff import vectorHits
112  x.TrackProducers += ['pixelLessStepTracks']
113  x.hasSelector += [1]
114  x.indivShareFrac += [0.095]
115  x.selectedTrackQuals += ['pixelLessStepSelector:pixelLessStep']
116  x.setsToMerge[0].tLists += [6]
117 (trackingPhase2PU140 & vectorHits).toModify(earlyGeneralTracks, _extend_pixelLess)
118