Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-10 06:14:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ################################################################################### 
0004 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
0005 ################################### 3rd step: low-pT and displaced tracks from pixel triplets
0006 
0007 from RecoHI.HiTracking.HITrackingRegionProducer_cfi import *
0008 
0009 ###################################
0010 import RecoTracker.IterativeTracking.DetachedTripletStep_cff
0011 
0012 # NEW CLUSTERS (remove previously used clusters)
0013 hiRegitDetachedTripletStepClusters = cms.EDProducer("HITrackClusterRemover",
0014                                                 clusterLessSolution= cms.bool(True),
0015                                                 oldClusterRemovalInfo = cms.InputTag("hiRegitPixelPairStepClusters"),
0016                                                 trajectories = cms.InputTag("hiRegitPixelPairStepTracks"),
0017                                                 overrideTrkQuals = cms.InputTag('hiRegitPixelPairStepSelector','hiRegitPixelPairStep'),
0018                                                 TrackQuality = cms.string('highPurity'),
0019                                                 pixelClusters = cms.InputTag("siPixelClusters"),
0020                                                 stripClusters = cms.InputTag("siStripClusters"),
0021                                                 Common = cms.PSet(
0022     maxChi2 = cms.double(9.0),
0023     ),
0024                                                 Strip = cms.PSet(
0025     maxChi2 = cms.double(9.0),
0026     #Yen-Jie's mod to preserve merged clusters
0027     maxSize = cms.uint32(2)
0028     )
0029                                                 )
0030 
0031 
0032 
0033 # SEEDING LAYERS
0034 hiRegitDetachedTripletStepSeedLayers =  RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepSeedLayers.clone(
0035     BPix = dict(skipClusters = 'hiRegitDetachedTripletStepClusters'),
0036     FPix = dict(skipClusters = 'hiRegitDetachedTripletStepClusters')
0037 )
0038 
0039 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
0040 #import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
0041 # seeding
0042 hiRegitDetachedTripletStepSeeds     = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepSeeds.clone(
0043     RegionFactoryPSet = HiTrackingRegionFactoryFromJetsBlock.clone(
0044         RegionPSet = dict(ptMin = 1.2)
0045     ),
0046     ClusterCheckPSet = dict(doClusterCheck = False), # do not check for max number of clusters pixel or strips
0047     OrderedHitsFactoryPSet = dict(
0048     SeedingLayers = 'hiRegitDetachedTripletStepSeedLayers'
0049        #GeneratorPSet = dict(SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()),
0050     ),
0051 )
0052 # building: feed the new-named seeds
0053 hiRegitDetachedTripletStepTrajectoryFilter = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTrajectoryFilterBase.clone()
0054 hiRegitDetachedTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTrajectoryBuilder.clone(
0055     trajectoryFilter     = dict(refToPSet_ = 'hiRegitDetachedTripletStepTrajectoryFilter'),
0056     clustersToSkip       = 'hiRegitDetachedTripletStepClusters'
0057 )
0058 
0059 hiRegitDetachedTripletStepTrackCandidates        =  RecoTracker.IterativeTracking.DetachedTripletStep_cff._detachedTripletStepTrackCandidatesCkf.clone(
0060     src               = 'hiRegitDetachedTripletStepSeeds',
0061     TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('hiRegitDetachedTripletStepTrajectoryBuilder')),
0062     maxNSeeds=100000
0063 )
0064 
0065 # fitting: feed new-names
0066 hiRegitDetachedTripletStepTracks                 = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTracks.clone(
0067     src                 = 'hiRegitDetachedTripletStepTrackCandidates',
0068     #AlgorithmName = 'jetCoreRegionalStep',
0069     AlgorithmName = 'detachedTripletStep',
0070 )
0071 
0072 
0073 # Track selection
0074 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
0075 hiRegitDetachedTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
0076     src = 'hiRegitDetachedTripletStepTracks',
0077     trackSelectors = cms.VPSet(
0078        RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
0079            name = 'hiRegitDetachedTripletStepLoose',
0080            d0_par2 = [9999.0, 0.0],
0081            dz_par2 = [9999.0, 0.0],
0082            applyAdaptedPVCuts = False
0083        ), #end of pset
0084        RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
0085            name = 'hiRegitDetachedTripletStepTight',
0086            preFilterName = 'hiRegitDetachedTripletStepLoose',
0087            d0_par2 = [9999.0, 0.0],
0088            dz_par2 = [9999.0, 0.0],
0089            applyAdaptedPVCuts = False
0090        ),
0091        RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
0092            name = 'hiRegitDetachedTripletStep',
0093            preFilterName = 'hiRegitDetachedTripletStepTight',
0094            d0_par2 = [9999.0, 0.0],
0095            dz_par2 = [9999.0, 0.0],
0096        applyAdaptedPVCuts = False
0097     ),
0098   ) #end of vpset
0099 ) #end of clone  
0100 
0101 
0102 hiRegitDetachedTripletStepTask = cms.Task(hiRegitDetachedTripletStepClusters,
0103                                           hiRegitDetachedTripletStepSeedLayers,
0104                                           hiRegitDetachedTripletStepSeeds,
0105                                           hiRegitDetachedTripletStepTrackCandidates,
0106                                           hiRegitDetachedTripletStepTracks,
0107                                           hiRegitDetachedTripletStepSelector
0108                                           )
0109 hiRegitDetachedTripletStep = cms.Sequence(hiRegitDetachedTripletStepTask)