ATLAS Offline Software
GepClusteringAlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 
9  cfg.setPrivateTools(CompFactory.CaloCellsHandlerTool())
10  return cfg
11 
12 
13 def GepClusteringAlgCfg(flags, name='GepClusteringAlg',
14  TopoClAlg='CaloWFS',
15  outputCaloClustersKey='CaloWFSTopoClusters',
16  OutputLevel=None):
17 
18  cfg = ComponentAccumulator()
19 
20  tool = cfg.popToolsAndMerge(CaloCellsHandlerToolCfg(flags))
21  alg = CompFactory.GepClusteringAlg(
22  name,
23  TopoClAlg=TopoClAlg,
24  outputCaloClustersKey=outputCaloClustersKey,
25  CaloCellHandler=tool
26  )
27 
28  if OutputLevel is not None:
29  alg.OutputLevel = OutputLevel
30 
31  cfg.addEventAlgo(alg)
32  return cfg
33 
34 
GepClusteringAlgConfig.GepClusteringAlgCfg
def GepClusteringAlgCfg(flags, name='GepClusteringAlg', TopoClAlg='CaloWFS', outputCaloClustersKey='CaloWFSTopoClusters', OutputLevel=None)
Definition: GepClusteringAlgConfig.py:13
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GepClusteringAlgConfig.CaloCellsHandlerToolCfg
def CaloCellsHandlerToolCfg(flags)
Definition: GepClusteringAlgConfig.py:7