ATLAS Offline Software
GlobalSimAlgCfg_hypo_container.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 from AthenaCommon.Logging import logging
7 logger = logging.getLogger(__name__)
8 from AthenaCommon.Constants import DEBUG
9 
11  name="GlobalSimHypoContainer",
12  OutputLevel=DEBUG,
13  dump=False):
14 
15  logger.setLevel(OutputLevel)
16 
17  cfg = ComponentAccumulator()
18 
19  hypoTool = CompFactory.GlobalSim.eEmSortSelectCountContainerAlgTool(
20  'eEmSortSelectCountContainerAlgTool')
21  hypoTool.enableDump = dump
22  hypoTool.OutputLevel = OutputLevel
23 
24  cmpTool = CompFactory.GlobalSim.eEmSortSelectCountContainerComparator(
25  "eEmSortSelectCountContainerCmp")
26  cmpTool.OutputLevel = OutputLevel
27 
28  alg = CompFactory.GlobalSim.GlobalSimulationAlg(name + 'Alg')
29  alg.globalsim_algs = [hypoTool, cmpTool]
30  alg.enableDumps = dump
31 
32  cfg.addEventAlgo(alg)
33 
34  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—
GlobalSimAlgCfg_hypo_container.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimHypoContainer", OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_hypo_container.py:10