ATLAS Offline Software
Loading...
Searching...
No Matches
GepCellsHandlerAlgConfig.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
6
7def GepCellsHandlerAlgCfg(flags, name='GepCellsHandlerAlg',
8 outputGepCellsKey='GepCells',
9 GEPEnergyEncodingScheme = "6-40-4",
10 HardwareStyleEnergyEncoding = True,
11 TruncationOfOverflowingFEBs = True,
12 NoiseThreshold = 2.,
13 WriteAllCells = False,
14 CleanOutputCells = False,
15 OutputLevel=None):
16
17 cfg = ComponentAccumulator()
18
19 alg = CompFactory.GepCellsHandlerAlg(
20 name,
21 outputGepCellsKey=outputGepCellsKey,
22 GEPEnergyEncodingScheme = GEPEnergyEncodingScheme,
23 HardwareStyleEnergyEncoding = HardwareStyleEnergyEncoding,
24 TruncationOfOverflowingFEBs = TruncationOfOverflowingFEBs,
25 NoiseThreshold = NoiseThreshold,
26 WriteAllCells = WriteAllCells
27 )
28
29 if OutputLevel is not None:
30 alg.OutputLevel = OutputLevel
31
32 cfg.addEventAlgo(alg)
33 return cfg
34
GepCellsHandlerAlgCfg(flags, name='GepCellsHandlerAlg', outputGepCellsKey='GepCells', GEPEnergyEncodingScheme="6-40-4", HardwareStyleEnergyEncoding=True, TruncationOfOverflowingFEBs=True, NoiseThreshold=2., WriteAllCells=False, CleanOutputCells=False, OutputLevel=None)