Skip to content

Commit

Permalink
make adaption of ClusterShapeHitFilterESProducer and SiPixelRawToDigi…
Browse files Browse the repository at this point in the history
… dynamic and move everythin into a single file
  • Loading branch information
Jan-Frederik Schulte committed Nov 28, 2016
1 parent ce64d34 commit 5a4746f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
12 changes: 0 additions & 12 deletions HLTrigger/Configuration/python/customizeHLTPhaseIPixelGeom.py

This file was deleted.

Expand Up @@ -3,16 +3,20 @@

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

def customizeHLTForPFTrackingPhaseI2017(process):

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

process.ClusterShapeHitFilterESProducer.PixelShapeFile = 'RecoPixelVertexing/PixelLowPtUtilities/data/pixelShape_Phase1TkNewFPix.par'
process.hltSiPixelDigis.UsePhase1 = cms.bool( True )
process.hltSiPixelDigisRegForBTag.UsePhase1 = cms.bool( True )
process.hltSiPixelDigisReg.UsePhase1 = cms.bool( True )

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.hltPixelLayerTriplets.layerList = cms.vstring(
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
Expand Down

0 comments on commit 5a4746f

Please sign in to comment.