Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:08

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                      'lowPtQuadStepTracks',
0091                      'lowPtTripletStepTracks',
0092                      'detachedQuadStepTracks',
0093                      'pixelPairStepTracks',
0094                     ],
0095     hasSelector = [1,1,1,1,1,1],
0096     indivShareFrac = [1.0,0.16,0.095,0.09,0.09,0.09],
0097     selectedTrackQuals = ['initialStepSelector:initialStep',
0098                           'highPtTripletStepSelector:highPtTripletStep',
0099                           'lowPtQuadStepSelector:lowPtQuadStep',
0100                           'lowPtTripletStepSelector:lowPtTripletStep',
0101                           'detachedQuadStep',
0102                           'pixelPairStepSelector:pixelPairStep',
0103                           ],
0104     setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) ) 
0105     ),
0106     copyExtras = True,
0107     makeReKeyedSeeds = cms.untracked.bool(False)
0108     )
0109 )
0110 from Configuration.ProcessModifiers.vectorHits_cff import vectorHits
0111 def _extend_pixelLess(x):
0112     x.TrackProducers += ['pixelLessStepTracks']
0113     x.hasSelector += [1]
0114     x.indivShareFrac += [0.095]
0115     x.selectedTrackQuals += ['pixelLessStepSelector:pixelLessStep']
0116     x.setsToMerge[0].tLists += [6]
0117 (trackingPhase2PU140 & vectorHits).toModify(earlyGeneralTracks, _extend_pixelLess)
0118