ATLAS Offline Software
GepPi0AlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
7  flags,
8  name,
9  caloCellsProducer="EMB1CellsFromCaloClusters",
10  dump=False,
11  OutputLevel=None):
12 
13  cfg = ComponentAccumulator()
14 
15  alg = CompFactory.GepPi0Alg(name)
16  if caloCellsProducer == "EMB1CellsFromCaloCells":
17  alg.caloCellsProducer = CompFactory.EMB1CellsFromCaloCells()
18  else:
19  alg.caloCellsProducer = CompFactory.EMB1CellsFromCaloClusters()
20 
21  if OutputLevel is not None:
22  alg.OutputLevel = OutputLevel
23 
24  alg.dump = dump
25  cfg.addEventAlgo(alg)
26 
27  return cfg
28 
29 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GepPi0AlgConfig.GepPi0AlgCfg
def GepPi0AlgCfg(flags, name, caloCellsProducer="EMB1CellsFromCaloClusters", dump=False, OutputLevel=None)
Definition: GepPi0AlgConfig.py:6