ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimAlgCfg_ERatio.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 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
9logger.setLevel(DEBUG)
10
12 name="GlobalSimEratioAlg",
13 OutputLevel=DEBUG,
14 dump=False):
15 cfg = ComponentAccumulator()
16 alg = CompFactory.GlobalSim.GlobalSimulationAlg(name)
17 eratioTool = CompFactory.GlobalSim.ERatioAlgTool(name+'AlgTool')
18 eratioTool.enableDump = dump
19 eratioTool.OutputLevel = OutputLevel
20
21 alg.globalsim_algs = [eratioTool]
22 alg.enableDumps = dump
23
24 cfg.addEventAlgo(alg)
25
26 return cfg
GlobalSimulationAlgCfg(flags, name="GlobalSimEratioAlg", OutputLevel=DEBUG, dump=False)