Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GlobalSimAlgCfg_Egamma1BDT.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 
11  name="GlobalSimEgamma1BDTAlg",
12  OutputLevel=DEBUG,
13  dump=False):
14 
15  logger.setLevel(OutputLevel)
16 
17  cfg = ComponentAccumulator()
18 
19  bdtTool = CompFactory.GlobalSim.Egamma1BDTAlgTool(name+'AlgTool')
20  bdtTool.enableDump = dump
21  bdtTool.OutputLevel = OutputLevel
22 
23  alg = CompFactory.GlobalSim.GlobalSimulationAlg(name)
24  alg.globalsim_algs = [bdtTool]
25  alg.enableDumps = dump
26 
27  cfg.addEventAlgo(alg)
28 
29  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—
GlobalSimAlgCfg_Egamma1BDT.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimEgamma1BDTAlg", OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_Egamma1BDT.py:10