File indexing completed on 2024-04-06 12:26:32
0001 import FWCore.ParameterSet.Config as cms
0002 from RecoLocalTracker.SubCollectionProducers.SeedClusterRemover_cfi import *
0003 from RecoTracker.IterativeTracking.ElectronSeeds_cff import *
0004 from RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cfi import *
0005 from RecoTracker.MeasurementDet.MeasurementTrackerEventProducer_cfi import *
0006 raise Exception("Please migrate to use Run2_2016_trackingLowPU era (or otherwise use trackingLowPU sub-era)")
0007 from RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi import *
0008 from RecoTracker.ConversionSeedGenerators.ConversionStep_cff import *
0009
0010 def customizeTracking(newpixclusters, newstripclusters, newpixrechits, newstriprechits):
0011
0012 seedClusterRemover.stripClusters = newstripclusters
0013 seedClusterRemover.pixelClusters = newpixelclusters
0014
0015
0016 initialStepSeedClusterMask.stripClusters = newstripclusters
0017 initialStepSeedClusterMask.pixelClusters = newpixelclusters
0018
0019 pixelPairStepSeedClusterMask.stripClusters = newstripclusters
0020 pixelPairStepSeedClusterMask.pixelClusters = newpixelclusters
0021
0022 mixedTripletStepSeedClusterMask.stripClusters = newstripclusters
0023 mixedTripletStepSeedClusterMask.pixelClusters = newpixelclusters
0024
0025 pixelLessStepSeedClusterMask.stripClusters = newstripclusters
0026 pixelLessStepSeedClusterMask.pixelClusters = newpixelclusters
0027
0028 tripletElectronClusterMask.stripClusters =newstripclusters
0029 tripletElectronClusterMask.pixelClusters = newpixelclusters
0030
0031 tripletElectronSeedLayers.BPix.HitProducer = newpixrechits
0032 tripletElectronSeedLayers.FPix.HitProducer = newpixrechits
0033
0034 pixelPairElectronSeedLayers.BPix.HitProducer = newpixrechits
0035 pixelPairElectronSeedLayers.FPix.HitProducer = newpixrechits
0036
0037 stripPairElectronSeedLayers.TIB.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0038 stripPairElectronSeedLayers.TID.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0039 stripPairElectronSeedLayers.TEC.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0040
0041
0042 MeasurementTrackerEvent.pixelClusterProducer =newpixelclusters
0043 MeasurementTrackerEvent.stripClusterProducer =newstripclusters
0044
0045
0046 initialStepSeedLayers.BPix.HitProducer = newpixrechits
0047 initialStepSeedLayers.FPix.HitProducer = newpixrechits
0048
0049 initialStepSeeds.ClusterCheckPSet.PixelClusterCollectionLabel = newpixelclusters
0050 initialStepSeeds.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0051
0052
0053 lowPtTripletStepClusters.pixelClusters = newpixelclusters
0054 lowPtTripletStepClusters.stripClusters = newstripclusters
0055 lowPtTripletStepSeedLayers.BPix.HitProducer = newpixrechits
0056 lowPtTripletStepSeedLayers.FPix.HitProducer = newpixrechits
0057 lowPtTripletStepSeeds.ClusterCheckPSet.PixelClusterCollectionLabel = newpixelclusters
0058 lowPtTripletStepSeeds.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0059
0060 pixelPairStepClusters.pixelClusters = newpixclusters
0061 pixelPairStepClusters.stripClusters = newstripclusters
0062 pixelPairStepSeedLayers.BPix.HitProducer =newpixrechits
0063 pixelPairStepSeedLayers.FPix.HitProducer =newpixrechits
0064 pixelPairStepSeeds.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0065 pixelPairStepSeeds.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0066
0067 detachedTripletStepClusters.pixelClusters = newpixclusters
0068 detachedTripletStepClusters.stripClusters = newstripclusters
0069 detachedTripletStepSeedLayers.BPix.HitProducer =newpixrechits
0070 detachedTripletStepSeedLayers.FPix.HitProducer =newpixrechits
0071 detachedTripletStepSeeds.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0072 detachedTripletStepSeeds.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0073 detachedTripletStepClusters.stripRecHits =newstriprechits
0074
0075 mixedTripletStepClusters.pixelClusters = newpixclusters
0076 mixedTripletStepClusters.stripClusters = newstripclusters
0077 mixedTripletStepSeedLayersA.BPix.HitProducer =newpixrechits
0078 mixedTripletStepSeedLayersA.FPix.HitProducer =newpixrechits
0079 mixedTripletStepSeedLayersB.BPix.HitProducer =newpixrechits
0080 mixedTripletStepSeedsA.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0081 mixedTripletStepSeedsA.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0082 mixedTripletStepSeedsB.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0083 mixedTripletStepSeedsB.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0084
0085
0086 pixelLessStepClusters.pixelClusters = newpixclusters
0087 pixelLessStepClusters.stripClusters = newstripclusters
0088
0089 pixelLessStepSeeds.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0090 pixelLessStepSeeds.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0091
0092 tobTecStepClusters.pixelClusters = newpixclusters
0093 tobTecStepClusters.stripClusters = newstripclusters
0094 tobTecStepSeeds.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0095 tobTecStepSeeds.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0096 mixedTripletStepSeedLayersA.TEC.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0097 mixedTripletStepSeedLayersB.TIB.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0098
0099 pixelLessStepSeedLayers.TIB.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0100 pixelLessStepSeedLayers.TID.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0101 pixelLessStepSeedLayers.TEC.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0102 tobTecStepSeedLayers.TOB.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0103 tobTecStepSeedLayers.TEC.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0104
0105
0106 photonConvTrajSeedFromSingleLeg.ClusterCheckPSet.PixelClusterCollectionLabel = newpixclusters
0107 photonConvTrajSeedFromSingleLeg.ClusterCheckPSet.ClusterCollectionLabel = newstripclusters
0108 convClusters.pixelClusters =newpixclusters
0109 convClusters.stripClusters =newstripclusters
0110 convLayerPairs.BPix.HitProducer = newpixelrechits
0111 convLayerPairs.FPix.HitProducer = newpixelrechits
0112 convLayerPairs.TIB1.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0113 convLayerPairs.TIB2.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0114 convLayerPairs.TIB3.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHit")
0115 convLayerPairs.TIB4.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHit")
0116 convLayerPairs.TID1.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0117 convLayerPairs.TID1.stereoRecHits = cms.InputTag(newstriprechits,"stereoRecHitUnmatched")
0118 convLayerPairs.TID1.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHitUnmatched")
0119 convLayerPairs.TID2.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0120 convLayerPairs.TID2.stereoRecHits = cms.InputTag(newstriprechits,"stereoRecHitUnmatched")
0121 convLayerPairs.TID2.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHitUnmatched")
0122 convLayerPairs.TID3.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0123 convLayerPairs.TID3.stereoRecHits = cms.InputTag(newstriprechits,"stereoRecHitUnmatched")
0124 convLayerPairs.TID3.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHitUnmatched")
0125 convLayerPairs.TEC.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0126 convLayerPairs.TEC.stereoRecHits = cms.InputTag(newstriprechits,"stereoRecHitUnmatched")
0127 convLayerPairs.TEC.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHitUnmatched")
0128 convLayerPairs.TOB1.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0129 convLayerPairs.TOB2.matchedRecHits = cms.InputTag(newstriprechits,"matchedRecHit")
0130 convLayerPairs.TOB3.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHit")
0131 convLayerPairs.TOB4.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHit")
0132 convLayerPairs.TOB5.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHit")
0133 convLayerPairs.TOB6.rphiRecHits = cms.InputTag(newstriprechits,"rphiRecHit")