ATLAS Offline Software
Loading...
Searching...
No Matches
LArCellPreparationAlgCfg.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='LArCellPreparationAlg',
9 NumberOfEnergyBits = 6,
10 ValueLeastSignificantBit = 40,
11 ValueGainFactor = 4,
12 gblLArCellsKey = "GlobalLArCells",
13 OutputLevel=None):
14
15 cfg = ComponentAccumulator()
16
17 alg = CompFactory.GlobalSim.LArCellPreparationAlg(name)
18
19 if OutputLevel is not None:
20 alg.OutputLevel = OutputLevel
21
22 alg.numberOfEnergyBits = NumberOfEnergyBits
23 alg.valueLeastSignificantBit = ValueLeastSignificantBit
24 alg.valueGainFactor = ValueGainFactor
25 alg.GlobalLArCellsKey = gblLArCellsKey
26 cfg.addEventAlgo(alg)
27
28 return cfg
29