本文整理汇总了Python中RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock.clone方法的典型用法代码示例。如果您正苦于以下问题:Python RegionPsetFomBeamSpotBlock.clone方法的具体用法?Python RegionPsetFomBeamSpotBlock.clone怎么用?Python RegionPsetFomBeamSpotBlock.clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock
的用法示例。
在下文中一共展示了RegionPsetFomBeamSpotBlock.clone方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock [as 别名]
# 或者: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock import clone [as 别名]
from RecoLocalTracker.SiPixelRecHits.PixelCPEESProducers_cff import *
from RecoTracker.TransientTrackingRecHit.TTRHBuilders_cff import *
# SEEDING LAYERS
import RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi
initialStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
# seeding
from RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff import *
from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
from RecoPixelVertexing.PixelTriplets.quadrupletseedmerging_cff import *
initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
ptMin = 0.7,
originRadius = 0.02,
nSigmaZ = 4.0
)
),
SeedMergerPSet = cms.PSet(
layerList = cms.PSet(refToPSet_ = cms.string("PixelSeedMergerQuadruplets")),
addRemainingTriplets = cms.bool(False),
mergeTriplets = cms.bool(True),
ttrhBuilderLabel = cms.string('PixelTTRHBuilderWithoutAngle')
)
)
initialStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'initialStepSeedLayers'
initialStepSeeds.SeedCreatorPSet.magneticField = ''
initialStepSeeds.SeedCreatorPSet.propagator = 'PropagatorWithMaterial'
from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
示例2:
# 需要导入模块: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock [as 别名]
# 或者: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock import clone [as 别名]
InputCollection = 'hiSecondPixelTracks'
)
import RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff
from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
hiSecondPixelTripletSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
ComponentName = cms.string('GlobalTrackingRegionWithVerticesProducer'),
RegionPSet = cms.PSet(
precise = cms.bool(True),
beamSpot = cms.InputTag("offlineBeamSpot"),
useFixedError = cms.bool(False), #def value True
nSigmaZ = cms.double(4.0),
sigmaZVertex = cms.double(4.0), #def value 3
fixedError = cms.double(0.2),
VertexCollection = cms.InputTag("hiSelectedVertex"),
ptMin = cms.double(0.4),
useFoundVertices = cms.bool(True),
originRadius = cms.double(0.02)
)
)
)
hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiSecondPixelTripletSeedLayers'
hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = 5000000
hiSecondPixelTripletSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000000
hiSecondPixelTripletSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 50000000
del hiSecondPixelTripletSeeds.ClusterCheckPSet.cut
示例3:
# 需要导入模块: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock [as 别名]
# 或者: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock import clone [as 别名]
# SEEDS
import RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff
from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
hiLowPtTripletStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
RegionFactoryPSet=RegionPsetFomBeamSpotBlock.clone(
ComponentName=cms.string("GlobalRegionProducerFromBeamSpot"),
RegionPSet=RegionPsetFomBeamSpotBlock.RegionPSet.clone(
# Default
ptMin=cms.double(0.2),
# Playing around
# ptMin = 0.25,
# ptMin = 0.30,
# ptMin = 1.0,
# Default
originRadius=cms.double(0.02),
# Playing around
# originRadius = cms.double(0.01),
# originRadius = cms.double(0.005),
# originRadius = 0.001,
# Default
nSigmaZ=cms.double(4.0),
),
)
)
hiLowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = "hiLowPtTripletStepSeedLayers"
# Added by pawan
# to avoid 'too many clusters'
示例4: customise_Reco
# 需要导入模块: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock [as 别名]
# 或者: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock import clone [as 别名]
def customise_Reco(process):
# Need this line to stop error about missing siPixelDigis.
process.MeasurementTracker.inactivePixelDetectorLabels = cms.VInputTag()
# Next line is only in for the moment for debugging
#process.load('Configuration.StandardSequences.Reconstruction_cff')
#
process.load("RecoTracker.IterativeTracking.HighPtTripletStep_cff")
# new layer list (3/4 pixel seeding) in stepZero
process.pixellayertriplets.layerList = cms.vstring( 'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg' )
process.highPtTripletStepSeedLayers.layerList = cms.vstring('BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
'BPix1+BPix3+FPix1_pos',
'BPix1+BPix3+FPix1_neg',
'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
'BPix1+BPix2+FPix2_pos',
'BPix1+BPix2+FPix2_neg',
'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
'BPix1+FPix1_pos+FPix3_pos',
'BPix1+FPix1_neg+FPix3_neg' )
process.lowPtTripletStepSeedLayers.layerList = cms.vstring( 'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg' )
## need changes to mixedtriplets step to use for imcreasing high eta efficiency
process.mixedTripletStepClusters.oldClusterRemovalInfo = cms.InputTag("pixelPairStepClusters")
process.mixedTripletStepClusters.trajectories = cms.InputTag("pixelPairStepTracks")
process.mixedTripletStepClusters.overrideTrkQuals = cms.InputTag('pixelPairStepSelector','pixelPairStep')
process.mixedTripletStepSeedsA.RegionFactoryPSet.RegionPSet.originRadius = 0.02
process.mixedTripletStepSeedsB.RegionFactoryPSet.RegionPSet.originRadius = 0.02
## new layer list for mixed triplet step
process.mixedTripletStepSeedLayersA.layerList = cms.vstring('BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
'FPix2_pos+FPix3_pos+TEC1_pos',
'FPix2_neg+FPix3_neg+TEC1_neg',
'FPix3_pos+TEC2_pos+TEC3_pos',
'FPix3_neg+TEC2_neg+TEC3_neg' )
#mixedTripletStepSeedLayersB.layerList = cms.vstring('BPix3+BPix4+TIB1', 'BPix3+BPix4+TIB2')
## switch off SeedB the easy way
process.mixedTripletStepSeedLayersB.layerList = cms.vstring('BPix1+BPix2+BPix3')
## increased the max track candidates
process.mixedTripletStepTrackCandidates.maxNSeeds = cms.uint32(150000)
process.pixelPairStepTrackCandidates.maxNSeeds = cms.uint32(150000)
######### FOR initialStepSeeds SeedMergerPSet ----> mergeTriplets must be true
global RecoTracker
from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
process.initialStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
#.........这里部分代码省略.........
示例5:
# 需要导入模块: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock [as 别名]
# 或者: from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi.RegionPsetFomBeamSpotBlock import clone [as 别名]
# SEEDING LAYERS
import RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi
hiSecondPixelTripletSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.pixellayertriplets.clone(
ComponentName = 'hiSecondPixelTripletSeedLayers'
)
hiSecondPixelTripletSeedLayers.BPix.skipClusters = cms.InputTag('hiSecondPixelTripletClusters')
hiSecondPixelTripletSeedLayers.FPix.skipClusters = cms.InputTag('hiSecondPixelTripletClusters')
# SEEDS
import RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff
from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
hiSecondPixelTripletSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
ptMin = cms.double(4.0),
originRadius = cms.double(0.005),
nSigmaZ = cms.double(4.0)
)
)
)
hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiSecondPixelTripletSeedLayers'
hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(5000000)
hiSecondPixelTripletSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = cms.uint32(5000000)
hiSecondPixelTripletSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = cms.uint32(50000000)
from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
# QUALITY CUTS DURING TRACK BUILDING