Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring customization of tracking@HLT up to date with 8_1_0 #16867

Merged
merged 1 commit into from Dec 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -3,9 +3,23 @@

def producers_by_type(process, *types):
return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)
def esproducers_by_type(process, *types):
return (module for module in process._Process__esproducers.values() if module._TypedParameterizable__type in types)


def customizeHLTPhaseIPixelGeom(process):

for esproducer in esproducers_by_type(process,"ClusterShapeHitFilterESProducer"):
esproducer.PixelShapeFile = 'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase1TkNewFPix.par'
for producer in producers_by_type(process,"SiPixelRawToDigi"):
if "hlt" in producer.label():
producer.UsePhase1 = cms.bool( True )
return process

def customizeHLTForPFTrackingPhaseI2017(process):

process = customizeHLTPhaseIPixelGeom(process)

process.hltPixelLayerTriplets.layerList = cms.vstring(
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
Expand Down Expand Up @@ -57,50 +71,35 @@ def customizeHLTForPFTrackingPhaseI2017(process):
)
)

process.hltPixelTracks.OrderedHitsFactoryPSet = cms.PSet(
ComponentName = cms.string('CombinedHitQuadrupletGenerator'),
GeneratorPSet = cms.PSet(
extraHitRPhitolerance = cms.double(0.032),
extraHitRZtolerance = cms.double(0.037),
extraPhiTolerance = cms.PSet(
enabled = cms.bool(True),
pt1 = cms.double(0.6),
pt2 = cms.double(1),
value1 = cms.double(0.15),
value2 = cms.double(0.1)
),
fitFastCircle = cms.bool(True),
fitFastCircleChi2Cut = cms.bool(True),
maxChi2 = cms.PSet(
enabled = cms.bool(True),
pt1 = cms.double(0.8),
pt2 = cms.double(2),
value1 = cms.double(200),
value2 = cms.double(100)
),
useBendingCorrection = cms.bool(True),
SeedComparitorPSet = cms.PSet(




# Configure seed generator / pixel track producer
from RecoPixelVertexing.PixelTriplets.CAHitQuadrupletGenerator_cfi import CAHitQuadrupletGenerator as _CAHitQuadrupletGenerator

process.hltPixelTracks.OrderedHitsFactoryPSet = _CAHitQuadrupletGenerator.clone(
ComponentName = cms.string("CAHitQuadrupletGenerator"),
extraHitRPhitolerance = cms.double(0.032),
maxChi2 = dict(
pt1 = 0.7, pt2 = 2,
value1 = 200, value2 = 50,
enabled = True,
),
useBendingCorrection = True,
fitFastCircle = True,
fitFastCircleChi2Cut = True,
SeedingLayers = cms.InputTag("hltPixelLayerQuadruplets"),
CAThetaCut = cms.double(0.0012),
CAPhiCut = cms.double(0.2),
CAHardPtCut = cms.double(0),
SeedComparitorPSet = cms.PSet(
ComponentName = cms.string( "LowPtClusterShapeSeedComparitor" ),
clusterShapeCacheSrc = cms.InputTag( "hltSiPixelClustersCache" )
),
ComponentName = cms.string('PixelQuadrupletGenerator'),
),
SeedingLayers = cms.InputTag( "hltPixelLayerQuadruplets" ),
TripletGeneratorPSet = cms.PSet(
ComponentName = cms.string('PixelTripletHLTGenerator'),
SeedComparitorPSet = cms.PSet(
ComponentName = cms.string('LowPtClusterShapeSeedComparitor'),
clusterShapeCacheSrc = cms.InputTag("hltSiPixelClustersCache")
),
extraHitRPhitolerance = cms.double(0.032),
extraHitRZtolerance = cms.double(0.037),
maxElement = cms.uint32(1000000),
phiPreFiltering = cms.double(0.3),
useBending = cms.bool(True),
useFixedPreFiltering = cms.bool(False),
useMultScattering = cms.bool(True)
)
)
),

)

process.hltPixelTracks.RegionFactoryPSet.RegionPSet = cms.PSet(
precise = cms.bool( True ),
beamSpot = cms.InputTag( "hltOnlineBeamSpot" ),
Expand Down Expand Up @@ -284,6 +283,4 @@ def customizeHLTForPFTrackingPhaseI2017(process):
seq.remove(process.hltPixelLayerTriplets)
index = seq.index(process.hltPixelTracks)
seq.insert(index,process.hltPixelLayerQuadruplets)
from RecoTracker.Configuration.customiseForQuadrupletsHLTPixelTracksByCellularAutomaton import customiseForQuadrupletsHLTPixelTracksByCellularAutomaton
process = customiseForQuadrupletsHLTPixelTracksByCellularAutomaton(process)
return process