Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-06 02:54:19

0001 from __future__ import absolute_import
0002 import FWCore.ParameterSet.Config as cms
0003 import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
0004 from RecoTracker.IterativeTracking.TobTecStep_cff import tobTecStepSeedLayersPair,tobTecStepSeedLayersTripl,tobTecStepHitDoubletsPair,tobTecStepHitDoubletsTripl,tobTecStepHitTripletsTripl,tobTecStepTracks,tobTecStepSeedsPair,tobTecStepSeedsTripl,tobTecStepSeeds,tobTecStepTrajectoryBuilder,tobTecStepInOutTrajectoryFilter,tobTecStepClusterShapeHitFilter,tobTecStepTrajectoryCleanerBySharedHits,tobTecStepChi2Est,tobTecFlexibleKFFittingSmoother,tobTecStepFitterSmoother,tobTecStepRKTrajectorySmoother,tobTecStepRKTrajectoryFitter,tobTecStepFitterSmootherForLoopers,tobTecStepRKTrajectorySmootherForLoopers,tobTecStepRKTrajectoryFitterForLoopers
0005 from .HIPixelTripletSeeds_cff import *
0006 from .HIPixel3PrimTracks_cfi import *
0007 
0008 #######################################################################
0009 # Very large impact parameter tracking using TOB + TEC ring 5 seeding #
0010 #######################################################################
0011 from RecoHI.HiTracking.hiPixelLessStep_cff import hiPixelLessStepClusters
0012 hiTobTecStepClusters = hiPixelLessStepClusters.clone(
0013     trajectories = "hiPixelLessStepTracks",
0014     overrideTrkQuals = 'hiPixelLessStepSelector:hiPixelLessStep'
0015 )
0016 # TRIPLET SEEDING LAYERS
0017 tobTecStepSeedLayersTripl.TOB.skipClusters   = 'hiTobTecStepClusters'
0018 tobTecStepSeedLayersTripl.MTOB.skipClusters   = 'hiTobTecStepClusters'
0019 tobTecStepSeedLayersTripl.MTEC.skipClusters   = 'hiTobTecStepClusters'
0020 
0021 # Triplet TrackingRegion
0022 from RecoHI.HiTracking.hiMixedTripletStep_cff import hiMixedTripletStepTrackingRegionsA as _hiMixedTripletStepTrackingRegionsA
0023 hiTobTecStepTrackingRegionsTripl = _hiMixedTripletStepTrackingRegionsA.clone(RegionPSet=dict(
0024      fixedError = 5.0,#20.0
0025      ptMin = 0.9,#0.55
0026      originRadius = 3.5,
0027      maxPtMin = 1.2,#0.85
0028 ))
0029 
0030 # Triplet seeding
0031 tobTecStepHitDoubletsTripl.clusterCheck = ""
0032 tobTecStepHitDoubletsTripl.trackingRegions = "hiTobTecStepTrackingRegionsTripl"
0033 
0034 tobTecStepSeedLayersPair.TOB.skipClusters   = 'hiTobTecStepClusters'
0035 tobTecStepSeedLayersPair.TEC.skipClusters   = 'hiTobTecStepClusters'
0036 
0037 # Pair TrackingRegion
0038 hiTobTecStepTrackingRegionsPair = hiTobTecStepTrackingRegionsTripl.clone(RegionPSet=dict(
0039      fixedError = 7.5,#30.0
0040      originRadius = 6.0,
0041      maxPtMin = 1.5,#0.9
0042 ))
0043 
0044 # Pair seeds
0045 tobTecStepHitDoubletsPair.clusterCheck = ""
0046 tobTecStepHitDoubletsPair.trackingRegions = "hiTobTecStepTrackingRegionsPair"
0047 
0048 
0049 # QUALITY CUTS DURING TRACK BUILDING (for inwardss and outwards track building steps)
0050 from RecoTracker.IterativeTracking.TobTecStep_cff import tobTecStepTrajectoryFilter
0051 tobTecStepTrajectoryFilter.minimumNumberOfHits = 5
0052 tobTecStepTrajectoryFilter.minPt = 0.85
0053 
0054 # MAKING OF TRACK CANDIDATES
0055 from RecoTracker.IterativeTracking.TobTecStep_cff import _tobTecStepTrackCandidatesCkf
0056 tobTecStepTrackCandidates = _tobTecStepTrackCandidatesCkf.clone(clustersToSkip = 'hiTobTecStepClusters')
0057 
0058 # TRACK FITTING
0059 hiTobTecStepTracks = tobTecStepTracks.clone()
0060 
0061 # Final selection
0062 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
0063 hiTobTecStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
0064     src = 'hiTobTecStepTracks',
0065     useAnyMVA = False,
0066     GBRForestLabel = 'HIMVASelectorIter13',
0067     GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
0068     trackSelectors = cms.VPSet(
0069        RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
0070            name = 'hiTobTecStepLoose',
0071            applyAdaptedPVCuts = False,
0072            useMVA = False,
0073        ), #end of pset
0074        RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
0075            name = 'hiTobTecStepTight',
0076            preFilterName = 'hiTobTecStepLoose',
0077            applyAdaptedPVCuts = False,
0078            useMVA = False,
0079            minMVA = -0.2
0080        ),
0081        RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
0082            name = 'hiTobTecStep',
0083            preFilterName = 'hiTobTecStepTight',
0084            applyAdaptedPVCuts = False,
0085            useMVA = False,
0086            minMVA = -0.09
0087        ),
0088     ) #end of vpset
0089 ) #end of clone
0090 
0091 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
0092 hiTobTecStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
0093     TrackProducers = ['hiTobTecStepTracks'],
0094     hasSelector = [1],
0095     selectedTrackQuals = ["hiTobTecStepSelector:hiTobTecStep"],
0096     copyExtras = True,
0097     makeReKeyedSeeds = cms.untracked.bool(False),
0098 )
0099 
0100 
0101 hiTobTecStepTask = cms.Task(hiTobTecStepClusters,
0102                           tobTecStepSeedLayersTripl,
0103                           hiTobTecStepTrackingRegionsTripl,
0104                           tobTecStepHitDoubletsTripl,
0105                           tobTecStepHitTripletsTripl,
0106                           tobTecStepSeedsTripl,
0107                           tobTecStepSeedLayersPair,
0108                           hiTobTecStepTrackingRegionsPair,
0109                           tobTecStepHitDoubletsPair,
0110                           tobTecStepSeedsPair,
0111                           tobTecStepSeeds,
0112                           tobTecStepTrackCandidates,
0113                           hiTobTecStepTracks,
0114                           hiTobTecStepSelector,
0115                           hiTobTecStepQual
0116                           )
0117 hiTobTecStep = cms.Sequence(hiTobTecStepTask)