ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimAlgCfg_hypo_mult.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
6from AthenaCommon.Logging import logging
7logger = logging.getLogger(__name__)
8from 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.OutputLevel = OutputLevel
21
22 tool2 = CompFactory.GlobalSim.eEmMultAlgTool('eEmMultAlgTool')
23 tool2.rhad = '0'
24 tool2.rhad_op = '<='
25 tool2.reta = '0'
26 tool2.reta_op = '<='
27 tool2.wstot = '0'
28 tool2.wstot_op = '<='
29
30 tool2.OutputLevel = OutputLevel
31
32 alg = CompFactory.GlobalSim.GlobalSimulationAlg(name + 'Alg')
33 alg.globalsim_algs = [tool1]
34 alg.TIPwriters = [tool2]
35 alg.enableDumps = dump
36 alg.OutputLevel = OutputLevel
37
38 cfg.addEventAlgo(alg)
39
40 return cfg
GlobalSimulationAlgCfg(flags, name="GlobalSimHypoMult", OutputLevel=DEBUG, dump=False)