ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimAlgCfg_Egamma1BDT.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
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
GlobalSimulationAlgCfg(flags, name="GlobalSimEgamma1BDTAlg", OutputLevel=DEBUG, dump=False)