Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-19 23:20:19

0001 import FWCore.ParameterSet.Config as cms
0002 from RecoTracker.FinalTrackSelectors.TrackCollectionMerger_cfi import *
0003 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
0004 
0005 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
0006 earlyGeneralTracks =  TrackCollectionMerger.clone(
0007     trackProducers = ['initialStepTracks',
0008                       'jetCoreRegionalStepTracks',
0009                       'lowPtTripletStepTracks',
0010                       'pixelPairStepTracks',
0011                       'detachedTripletStepTracks',
0012                       'mixedTripletStepTracks',
0013                       'pixelLessStepTracks',
0014                       'tobTecStepTracks'
0015                       ],
0016     inputClassifiers =['initialStep',
0017                        'jetCoreRegionalStep',
0018                        'lowPtTripletStep',
0019                        'pixelPairStep',
0020                        'detachedTripletStep',
0021                        'mixedTripletStep',
0022                        'pixelLessStep',
0023                        'tobTecStep'
0024                        ]
0025 )
0026 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
0027 trackingLowPU.toModify(earlyGeneralTracks,
0028     trackProducers = [
0029         'initialStepTracks',
0030         'lowPtTripletStepTracks',
0031         'pixelPairStepTracks',
0032         'detachedTripletStepTracks',
0033         'mixedTripletStepTracks',
0034         'pixelLessStepTracks',
0035         'tobTecStepTracks'
0036     ],
0037     inputClassifiers = [
0038         'initialStepSelector',
0039         'lowPtTripletStepSelector',
0040         'pixelPairStepSelector',
0041         'detachedTripletStep',
0042         'mixedTripletStep',
0043         'pixelLessStepSelector',
0044         'tobTecStep'
0045     ]
0046 )
0047 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
0048 _forPhase1 = dict(
0049     trackProducers = [
0050         'initialStepTracks',
0051         'highPtTripletStepTracks',
0052         'jetCoreRegionalStepTracks',
0053         'lowPtQuadStepTracks',
0054         'lowPtTripletStepTracks',
0055         'detachedQuadStepTracks',
0056         'detachedTripletStepTracks',
0057         'pixelPairStepTracks',
0058         'mixedTripletStepTracks',
0059         'pixelLessStepTracks',
0060         'tobTecStepTracks'
0061     ],
0062     inputClassifiers = [
0063         'initialStep',
0064         'highPtTripletStep',
0065         'jetCoreRegionalStep',
0066         'lowPtQuadStep',
0067         'lowPtTripletStep',
0068         'detachedQuadStep',
0069         'detachedTripletStep',
0070         'pixelPairStep',
0071         'mixedTripletStep',
0072         'pixelLessStep',
0073         'tobTecStep'
0074     ],
0075 )
0076 trackingPhase1.toModify(earlyGeneralTracks, **_forPhase1)
0077 
0078 from Configuration.ProcessModifiers.displacedTracking_cff import displacedTracking
0079 def _extend_displacedGeneral(x):
0080      x.trackProducers += ['displacedGeneralStepTracks']
0081      x.inputClassifiers += ['displacedGeneralStep'] 
0082 (trackingPhase1 & displacedTracking).toModify(earlyGeneralTracks, _extend_displacedGeneral)
0083 
0084 # For Phase2PU140
0085 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
0086 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
0087 trackingPhase2PU140.toReplaceWith(earlyGeneralTracks, _trackListMerger.clone(
0088     TrackProducers =['initialStepTracks',
0089                      'highPtTripletStepTracks',
0090                      'jetCoreRegionalStepTracks',
0091                      'lowPtQuadStepTracks',
0092                      'lowPtTripletStepTracks',
0093                      'detachedQuadStepTracks',
0094                      'pixelPairStepTracks',
0095                     ],
0096     hasSelector = [1,1,1,1,1,1,1],
0097     indivShareFrac = [1.0,0.16,1.0,0.095,0.09,0.09,0.09],
0098     selectedTrackQuals = ['initialStepSelector:initialStep',
0099                           'highPtTripletStepSelector:highPtTripletStep',
0100                           'jetCoreRegionalStepSelector:jetCoreRegionalStep',
0101                           'lowPtQuadStepSelector:lowPtQuadStep',
0102                           'lowPtTripletStepSelector:lowPtTripletStep',
0103                           'detachedQuadStep',
0104                           'pixelPairStepSelector:pixelPairStep',
0105                           ],
0106     setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5,6), pQual=cms.bool(True) )
0107     ),
0108     copyExtras = True,
0109     makeReKeyedSeeds = cms.untracked.bool(False)
0110     )
0111 )
0112 from Configuration.ProcessModifiers.trackingIters01_cff import trackingIters01
0113 trackingIters01.toModify(earlyGeneralTracks,
0114                          TrackProducers = ['initialStepTracks', 'highPtTripletStepTracks'],
0115                          hasSelector = [1,1],
0116                          indivShareFrac = [1,0.16],
0117                          selectedTrackQuals = ['initialStepSelector:initialStep',
0118                                                'highPtTripletStepSelector:highPtTripletStep'
0119                          ],
0120                          setsToMerge = {0: dict(tLists = [0,1])}
0121 )
0122 from Configuration.ProcessModifiers.vectorHits_cff import vectorHits
0123 def _extend_pixelLess(x):
0124     x.TrackProducers += ['pixelLessStepTracks']
0125     x.hasSelector += [1]
0126     x.indivShareFrac += [0.095]
0127     x.selectedTrackQuals += ['pixelLessStepSelector:pixelLessStep']
0128     x.setsToMerge[0].tLists += [6]
0129 (trackingPhase2PU140 & vectorHits).toModify(earlyGeneralTracks, _extend_pixelLess)
0130 
0131 from Configuration.ProcessModifiers.trackingLST_cff import trackingLST
0132 (trackingPhase2PU140 & trackingLST).toModify(earlyGeneralTracks,
0133                          TrackProducers = ['highPtTripletStepLSTpTracks', 'highPtTripletStepLSTT5Tracks'],
0134                          hasSelector = [1,0],
0135                          indivShareFrac = [0.1,0.1],
0136                          selectedTrackQuals = ['highPtTripletStepSelector:highPtTripletStep',
0137                                                'highPtTripletStepSelectorLSTT5:highPtTripletStepLSTT5'
0138                          ],
0139                          setsToMerge = {0: dict(tLists = [0,1])}
0140 )