Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoHI.HiTracking.HILowPtConformalPixelTracks_cfi import *
0004 from RecoHI.HiTracking.hiMultiTrackSelector_cfi import *
0005 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import *
0006 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
0007 
0008 # Selector for quality pixel tracks with tapering high-pT cut
0009 
0010 #loose
0011 hiPixelOnlyStepLooseMTS = hiLooseMTS.clone(
0012     name = 'hiPixelOnlyTrkLoose',
0013     chi2n_no1Dmod_par = 25.0,
0014     d0_par2 = [9999.0, 0.0],              # d0E from tk.d0Error
0015     dz_par2 = [14.0, 0.0],
0016     max_relpterr = 9999.,
0017     min_nhits = 0,
0018     pixel_pTMinCut = cms.vdouble(0.0001,0.000,9999,1.0),
0019     pixel_pTMaxCut = cms.vdouble(10,5,25,2.5)
0020 )
0021 
0022 hiPixelOnlyStepTightMTS = hiPixelOnlyStepLooseMTS.clone(
0023     preFilterName ='hiPixelOnlyTrkLoose',
0024     chi2n_no1Dmod_par = 18.0,
0025     dz_par2 = [12.0, 0.0],
0026     pixel_pTMaxCut = [4,2,18,2.5],
0027     name = 'hiPixelOnlyTrkTight',
0028     qualityBit = 'tight',
0029     keepAllTracks = True
0030 )
0031 
0032 hiPixelOnlyStepHighpurityMTS= hiPixelOnlyStepTightMTS.clone(
0033     name = 'hiPixelOnlyTrkHighPurity',
0034     preFilterName ='hiPixelOnlyTrkTight',
0035     chi2n_no1Dmod_par = 12.,    
0036     dz_par2 = [10.0, 0.0],
0037     pixel_pTMaxCut = [2.4,1.6,12,2.5],
0038     qualityBit = 'highPurity' ## set to '' or comment out if you dont want to set the bit
0039 )
0040 
0041 hiPixelOnlyStepSelector = hiMultiTrackSelector.clone(
0042     applyPixelMergingCuts = cms.bool(True),
0043     src = 'hiConformalPixelTracks',
0044     trackSelectors= cms.VPSet(
0045         hiPixelOnlyStepLooseMTS,
0046         hiPixelOnlyStepTightMTS,
0047         hiPixelOnlyStepHighpurityMTS
0048     )
0049 )
0050 
0051 
0052 # selector for tapered full tracks
0053 
0054 hiHighPtStepTruncMTS = hiLooseMTS.clone(
0055     name = 'hiHighPtTrkTrunc',
0056     chi2n_no1Dmod_par = 9999.0,
0057     d0_par2 = [9999.0, 0.0],              # d0E from tk.d0Error
0058     dz_par2 = [9999.0, 0.0],
0059     max_relpterr = 9999.,
0060     minHitsToBypassChecks = 9999,
0061     min_nhits = 12,
0062     pixel_pTMinCut = cms.vdouble(1.0,1.8,0.15,2.5),
0063     pixel_pTMaxCut = cms.vdouble(9998,9999,9999,1.0),
0064     qualityBit = ''
0065 )
0066 
0067 hiHighPtStepSelector = hiMultiTrackSelector.clone(
0068     applyPixelMergingCuts = cms.bool(True),
0069     src = 'hiGeneralTracks',
0070     trackSelectors= cms.VPSet(
0071         hiHighPtStepTruncMTS
0072     ) 
0073 ) 
0074 
0075 
0076 hiGeneralAndPixelTracks = trackListMerger.clone(
0077     TrackProducers = ['hiConformalPixelTracks',
0078                       'hiGeneralTracks'],
0079     hasSelector = [1,1],
0080     selectedTrackQuals = ["hiPixelOnlyStepSelector:hiPixelOnlyTrkHighPurity",
0081                           "hiHighPtStepSelector:hiHighPtTrkTrunc"],
0082     setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1), pQual=cms.bool(False)), 
0083                              ),
0084     copyExtras = True,
0085     makeReKeyedSeeds = cms.untracked.bool(False)
0086 )
0087 
0088 hiMergedConformalPixelTrackingTask = cms.Task(
0089     hiConformalPixelTracksTask
0090     ,hiPixelOnlyStepSelector
0091     ,hiHighPtStepSelector
0092     ,hiGeneralAndPixelTracks
0093     )