Skip to content
Snippets Groups Projects
Commit e9cf5b02 authored by Denis Oliveira Damazio's avatar Denis Oliveira Damazio Committed by Johannes Elmsheuser
Browse files

Fixing/adding some configuration for TopoCluster GPU HLT running

Fixing/adding some configuration for TopoCluster GPU HLT running
parent 5c9566e4
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,8 @@ def configFlagsCaloRecGPU(flags,categoryFlags,cellsName="AllCalo",ClustersOutput
categoryFlags.ClustersOutputName=ClustersOutputName
if (flags.hasFlag('Concurrency.NumThreads')):
categoryFlags.NumPreAllocatedDataHolders = flags.Concurrency.NumThreads
if ( categoryFlags.NumPreAllocatedDataHolders < 1 ):
categoryFlags.NumPreAllocatedDataHolders=1
if (flags.hasFlag('Calo.TopoCluster.doTwoGaussianNoise')):
categoryFlags.TwoGaussianNoise = flags.Calo.TopoCluster.doTwoGaussianNoise
if (flags.hasCategory('flags.Calo.TopoCluster')):
......
......@@ -219,6 +219,8 @@ def hltTopoClusterMakerCfg(flags, name, clustersKey="HLT_TopoCaloClustersFS",
topoMaker = acc.popToolsAndMerge(CaloTopoClusterToolCfg(flags, cellsname=cells))
topoMaker.RestrictPSNeighbors = False
if (flags.hasFlag('CaloRecGPU.UseOriginalCriteria')):
topoMaker.UseGPUCriteria=flags.CaloRecGPU.UseOriginalCriteria
listClusterCorrectionTools = []
if doLC :
from CaloTools.CaloNoiseCondAlgConfig import CaloNoiseCondAlgCfg
......@@ -339,6 +341,15 @@ TrigEgammaKeys = getTrigEgammaKeys()
TrigEgammaKeys_LRT = getTrigEgammaKeys(name = '_LRT')
TrigEgammaKeys_HI = getTrigEgammaKeys(ion = True)
def prepareFlagsGPUHLT(flags):
from CaloRecGPU.CaloRecGPUFlags import createFlagsCaloRecGPU, configFlagsCaloRecGPU
flags.addFlagsCategory('CaloRecGPU',createFlagsCaloRecGPU,prefix=True)
flags.LAr.doHVCorr=True
configFlagsCaloRecGPU(flags,flags.CaloRecGPU,cellsName="CaloCellsFS",ClustersOutputName="HLT_TopoCaloClustersFS")
if ( flags.CaloRecGPU.NumPreAllocatedDataHolders < 1 ):
flags.CaloRecGPU.NumPreAllocatedDataHolders=1
return
@AccumulatorCache
def hltCaloTopoClusteringCfg(
flags, namePrefix=None,nameSuffix=None, CellsName=None, monitorCells=False, roisKey="UNSPECIFIED",clustersKey=None, doLCFS=False, doTau = False):
......@@ -354,10 +365,13 @@ def hltCaloTopoClusteringCfg(
acc.merge(
hltCaloCellMakerCfg(flags, namePrefix + "HLTCaloCellMaker"+nameSuffix, roisKey=roisKey, CellsName=CellsName, monitorCells=monitorCells, doTau = doTau)
)
acc.merge(
hltTopoClusterMakerCfg(
flags, namePrefix + "HLTCaloClusterMaker"+nameSuffix,cellsKey=CellsName, clustersKey=clusters, doLC=doTau)
)
if flags.hasFlag('CaloRecGPU.CellsName') and (nameSuffix == "FS") and (not doTau):
from CaloRecGPU.CaloRecGPUConfig import HybridClusterProcessorCfg
hyb = HybridClusterProcessorCfg(flags, namePrefix + "HLTCaloClusterMaker"+nameSuffix)
acc.merge(hyb)
else :
calt=hltTopoClusterMakerCfg(flags, namePrefix + "HLTCaloClusterMaker"+nameSuffix,cellsKey=CellsName, clustersKey=clusters, doLC=doTau)
acc.merge(calt)
if doLCFS:
acc.merge( hltCaloTopoClusterCalibratorCfg(
flags,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment