ATLAS Offline Software
GlobalSimAlgCfg_ERatio.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 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 logger.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
GlobalSimAlgCfg_ERatio.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimEratioAlg", OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_ERatio.py:11
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—