ATLAS Offline Software
GlobalSimAlgCfg_hypo_mult_test.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="GlobalSimHypoMult",
12  OutputLevel=DEBUG,
13  dump=False):
14 
15  logger.setLevel(OutputLevel)
16 
17  cfg = ComponentAccumulator()
18 
19  # tool1 = CompFactory.GlobalSim.eFexCvtrAlgTool('eFexCvtrAlgTool')
20  tool1 = CompFactory.GlobalSim.eFexCvtrAlgTool('eFexCvtrAlgTool')
21  tool1.OutputLevel = OutputLevel
22 
23  tool2 = CompFactory.GlobalSim.eEmMultTestBench('eEmMultTestBench')
24  tool2.rhad = '0'
25  tool2.rhad_op = '<='
26  tool2.reta = '0'
27  tool2.reta_op = '<='
28  tool2.wstot = '0'
29  tool2.wstot_op = '<='
30 
31  tool2.OutputLevel = OutputLevel
32 
33  alg = CompFactory.GlobalSim.GlobalSimulationAlg(name + 'Alg')
34  alg.globalsim_algs = [tool1]
35  alg.TIPwriters = [tool2]
36  alg.enableDumps = dump
37  alg.OutputLevel = OutputLevel
38 
39  cfg.addEventAlgo(alg)
40 
41  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:342
Constants
some useful constants -------------------------------------------------—
GlobalSimAlgCfg_hypo_mult_test.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimHypoMult", OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_hypo_mult_test.py:10