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