ATLAS Offline Software
Egamma1_LArStrip_FexCfg.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 
6 from AthenaCommon.Logging import logging
7 logger = logging.getLogger(__name__)
8 from AthenaCommon.Constants import DEBUG
9 logger.setLevel(DEBUG)
10 
12  flags,
13  name='Egamma1_LArStrip_Fex',
14  caloCellProducer="EMB1CellsFromCaloCells",
15  dump=False,
16  dumpTerse=False,
17  makeCaloCellContainerChecks=True,
18  OutputLevel=None):
19 
20  cfg = ComponentAccumulator()
21 
22 
23  alg = CompFactory.GlobalSim.Egamma1_LArStrip_Fex(name)
24 
25  if caloCellProducer == "EMB1CellsFromCaloCells":
26  caloCellProducer = CompFactory.GlobalSim.EMB1CellsFromCaloCells()
27  caloCellProducer.makeCaloCellContainerChecks = makeCaloCellContainerChecks
28  else:
29  logger.debug("Cell fetcher " + caloCellProducer + " not supported")
30  return cfg
31 
32  if OutputLevel is not None:
33  alg.OutputLevel = OutputLevel
34  caloCellProducer.OutputLevel = OutputLevel
35  alg.caloCellProducer = caloCellProducer
36 
37  roiAlgTool = CompFactory.GlobalSim.eFexRoIAlgTool()
38  roiAlgTool.OutputLevel = OutputLevel
39  alg.roiAlgTool = roiAlgTool
40 
41  alg.dump = dump
42  alg.dumpTerse = dumpTerse
43  cfg.addEventAlgo(alg)
44 
45  return cfg
46 
Egamma1_LArStrip_FexCfg.Egamma1_LArStrip_FexCfg
def Egamma1_LArStrip_FexCfg(flags, name='Egamma1_LArStrip_Fex', caloCellProducer="EMB1CellsFromCaloCells", dump=False, dumpTerse=False, makeCaloCellContainerChecks=True, OutputLevel=None)
Definition: Egamma1_LArStrip_FexCfg.py:11
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—