ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimAlgCfg_Egamma1eRatio.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="GlobalSimEgamma1eRatio",
12 OutputLevel=DEBUG,
13 dump=False):
14
15 logger.setLevel(OutputLevel)
16
17 cfg = ComponentAccumulator()
18
19 baselineTool = CompFactory.GlobalSim.Egamma1eRatioAlgTool(name+'AlgTool')
20 baselineTool.enableDump = dump
21 baselineTool.OutputLevel = OutputLevel
22
23 alg = CompFactory.GlobalSim.GlobalSimulationAlg(name)
24 alg.globalsim_algs = [baselineTool]
25 alg.enableDumps = dump
26
27 cfg.addEventAlgo(alg)
28
29 return cfg
GlobalSimulationAlgCfg(flags, name="GlobalSimEgamma1eRatio", OutputLevel=DEBUG, dump=False)