Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-19 01:44:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
0004 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
0005 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
0006 from RecoPixelVertexing.PixelLowPtUtilities.trackCleaner_cfi import *
0007 from RecoPixelVertexing.PixelTrackFitting.pixelFitterByHelixProjections_cfi import *
0008 from RecoHI.HiTracking.HIPixelTrackFilter_cff import *
0009 from RecoHI.HiTracking.HITrackingRegionProducer_cfi import *
0010 from RecoTracker.TkSeedingLayers.PixelLayerQuadruplets_cfi import PixelLayerQuadruplets as _PixelLayerQuadruplets
0011 
0012 #from RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi import *
0013 
0014 hiPixelLayerQuadruplets = _PixelLayerQuadruplets.clone()
0015 
0016 # Hit ntuplets
0017 hiPixel3PrimTracksHitDoublets = _hitPairEDProducer.clone(
0018     clusterCheck    = "",
0019     seedingLayers   = "PixelLayerTriplets",
0020     trackingRegions = "hiTrackingRegionWithVertex",
0021     maxElement      = 50000000,
0022     produceIntermediateHitDoublets = True,
0023 )
0024 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
0025 trackingPhase1.toModify(hiPixel3PrimTracksHitDoublets,
0026     seedingLayers = "hiPixelLayerQuadruplets"
0027 )
0028 
0029 
0030 hiPixel3PrimTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
0031     doublets   = "hiPixel3PrimTracksHitDoublets",
0032     maxElement = 1000000, # increase threshold for triplets in generation step (default: 100000)
0033     produceSeedingHitSets = True,
0034     produceIntermediateHitTriplets = True,
0035 )
0036 
0037 from RecoPixelVertexing.PixelTriplets.caHitQuadrupletEDProducer_cfi import caHitQuadrupletEDProducer as _caHitQuadrupletEDProducer
0038 hiPixel3PrimTracksHitDoubletsCA = hiPixel3PrimTracksHitDoublets.clone(
0039     layerPairs = [0,1,2]
0040 )
0041 hiPixel3PrimTracksHitQuadrupletsCA = _caHitQuadrupletEDProducer.clone(
0042     doublets = "hiPixel3PrimTracksHitDoubletsCA",
0043     extraHitRPhitolerance = hiPixel3PrimTracksHitTriplets.extraHitRPhitolerance,
0044     SeedComparitorPSet    = hiPixel3PrimTracksHitTriplets.SeedComparitorPSet,
0045     maxChi2 = dict(
0046         pt1    = 0.7, pt2    = 2,
0047         value1 = 200, value2 = 50,
0048     ),
0049     useBendingCorrection = True,
0050     fitFastCircle        = True,
0051     fitFastCircleChi2Cut = True,
0052     CAThetaCut = 0.0012,
0053     CAPhiCut   = 0.2,
0054 ) 
0055 
0056 import RecoPixelVertexing.PixelTrackFitting.pixelTracks_cfi as _mod 
0057 
0058 # Pixel tracks
0059 hiPixel3PrimTracks = _mod.pixelTracks.clone(
0060     passLabel  = 'Pixel triplet primary tracks with vertex constraint',
0061     # Ordered Hits
0062     SeedingHitSets = "hiPixel3PrimTracksHitTriplets",
0063     # Fitter
0064     Fitter = "pixelFitterByHelixProjections",
0065     # Filter
0066     Filter = "hiFilter",
0067     # Cleaner
0068     Cleaner = "trackCleaner"
0069 )
0070 trackingPhase1.toModify(hiPixel3PrimTracks,
0071     SeedingHitSets = "hiPixel3PrimTracksHitQuadrupletsCA",
0072 )
0073 
0074 hiPixel3PrimTracksTask = cms.Task(
0075     hiTrackingRegionWithVertex ,
0076     hiPixel3PrimTracksHitDoublets ,
0077     hiPixel3PrimTracksHitTriplets ,
0078     pixelFitterByHelixProjections ,
0079     hiFilter ,
0080     hiPixel3PrimTracks
0081 )
0082 hiPixel3PrimTracksSequence = cms.Sequence(hiPixel3PrimTracksTask)
0083 #phase 1 changes
0084 hiPixel3PrimTracksTask_Phase1 = hiPixel3PrimTracksTask.copy()
0085 hiPixel3PrimTracksTask_Phase1.replace(hiPixel3PrimTracksHitDoublets, cms.Task(hiPixelLayerQuadruplets,hiPixel3PrimTracksHitDoubletsCA) )
0086 hiPixel3PrimTracksTask_Phase1.replace(hiPixel3PrimTracksHitTriplets,hiPixel3PrimTracksHitQuadrupletsCA)
0087 trackingPhase1.toReplaceWith(hiPixel3PrimTracksTask,hiPixel3PrimTracksTask_Phase1)