ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalCellTowerAlgToolCfg.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
7 flags,
8 name='GlobalCellTowerAlgTool',
9 gblLArCellsKey = "GlobalLArCells",
10 gblCellTowersKey = "GlobalCellTowers",
11 OutputLevel=None):
12
13 cfg = ComponentAccumulator()
14 alg = CompFactory.GlobalSim.GlobalSimulationAlg(name)
15
16 cellTowerAlgTool = CompFactory.GlobalSim.GlobalCellTowerAlgTool(name)
17
18 if OutputLevel is not None:
19 cellTowerAlgTool.OutputLevel = OutputLevel
20
21 cellTowerAlgTool.GlobalLArCellsKey = gblLArCellsKey
22 cellTowerAlgTool.GlobalCellTowersKey = gblCellTowersKey
23
24 alg.globalsim_algs = [cellTowerAlgTool]
25 #alg.enableDumps = dump
26
27 cfg.addEventAlgo(alg)
28
29 return cfg
30