ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimAlgCfg_Egamma1BDT_hypoMult.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 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 hypoMultTool = CompFactory.GlobalSim.eEmMultAlgTool('eEmMultAlgTool')
24 hypoMultTool.rhad = '0'
25 hypoMultTool.rhad_op = '<='
26 hypoMultTool.reta = '0'
27 hypoMultTool.reta_op = '<='
28 hypoMultTool.wstot = '0'
29 hypoMultTool.wstot_op = '<='
30
31 hypoMultTool.OutputLevel = OutputLevel
32
33 hypoMultTool.eEmTOBs = "BDTResult"
34
35 alg = CompFactory.GlobalSim.GlobalSimulationAlg(name)
36 alg.globalsim_algs = [bdtTool]
37 alg.TIPwriters = [hypoMultTool]
38 alg.enableDumps = dump
39
40 cfg.addEventAlgo(alg)
41
42 return cfg
GlobalSimulationAlgCfg(flags, name="GlobalSimEgamma1BDTAlg", OutputLevel=DEBUG, dump=False)