ATLAS Offline Software
GlobalSimAlgCfg_Egamma1Baseline.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 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="GlobalSimEgamma1Baseline",
12  OutputLevel=DEBUG,
13  dump=False):
14 
15  logger.setLevel(OutputLevel)
16 
17  cfg = ComponentAccumulator()
18 
19  baselineTool = CompFactory.GlobalSim.Egamma1BaselineAlgTool(name+'AlgTool')
20  baselineTool.enableDump = dump
21  baselineTool.OutputLevel = OutputLevel
22 
23  alg = CompFactory.GlobalSim.GlobalSimulationAlg(name)
24  alg.globalsim_algs = [baselineTool]
25  alg.enableDumps = dump
26 
27  cfg.addEventAlgo(alg)
28 
29  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GlobalSimAlgCfg_Egamma1Baseline.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimEgamma1Baseline", OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_Egamma1Baseline.py:10
Constants
some useful constants -------------------------------------------------—