ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimAlgCfg_PU1_suppression.py
Go to the documentation of this file.
2# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3#
4from AthenaConfiguration.ComponentFactory import CompFactory
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6
7from AthenaCommon.Logging import logging
8logger = logging.getLogger(__name__)
9from AthenaCommon.Constants import DEBUG
10
11def GlobalSimulationAlgCfg(flags, name="GlobalSimPU1Suppression", OutputLevel=DEBUG, dump=False):
12 logger.setLevel(OutputLevel)
13
14 cfg = ComponentAccumulator()
15
16 hypoTool = CompFactory.GlobalSim.PU1SuppAlgTool('PU1SuppAlgTool')
17 hypoTool.OutputLevel = OutputLevel
18
19 alg = CompFactory.GlobalSim.GlobalSimulationAlg(name+'Alg')
20 alg.globalsim_algs = [hypoTool]
21
22 cfg.addEventAlgo(alg)
23
24 return cfg
25
26
GlobalSimulationAlgCfg(flags, name="GlobalSimPU1Suppression", OutputLevel=DEBUG, dump=False)