ATLAS Offline Software
Loading...
Searching...
No Matches
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
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
6from AthenaCommon.Logging import logging
7logger = logging.getLogger(__name__)
8from AthenaCommon.Constants import DEBUG
9logger.setLevel(DEBUG)
10
12 flags,
13 name='Egamma1_LArStrip_Fex',
14 caloCellProducer="EMBE1CellsFromCaloCells",
15 dump=False,
16 dumpTerse=False,
17 makeCaloCellContainerChecks=True,
18 OutputLevel=DEBUG):
19
20 cfg = ComponentAccumulator()
21
22
23 alg = CompFactory.GlobalSim.Egamma1_LArStrip_Fex(name)
24
25 if caloCellProducer == "EMBE1CellsFromCaloCells":
26 caloCellProducer = CompFactory.GlobalSim.EMBE1CellsFromCaloCells()
27 caloCellProducer.makeCaloCellContainerChecks = makeCaloCellContainerChecks
28 if flags.Input.isMC:
29 caloCellProducer.caloCells = "AllCalo"
30 else:
31 caloCellProducer.caloCells = "SeedLessFS"
32 else:
33 logger.debug("Cell fetcher " + caloCellProducer + " not supported")
34 return cfg
35
36 roiAlgTool = CompFactory.GlobalSim.eFexRoIAlgTool()
37 roiAlgTool.etMin = 5000.
38 roiAlgTool.etaMin = 0.2
39 roiAlgTool.etaMax = 1.4
40
41 alg.caloCellProducer = caloCellProducer
42 alg.roiAlgTool = roiAlgTool
43
44 if OutputLevel is not None:
45 alg.OutputLevel = OutputLevel
46 caloCellProducer.OutputLevel = OutputLevel
47 roiAlgTool.OutputLevel = OutputLevel
48
49 alg.dump = dump
50 alg.dumpTerse = dumpTerse
51 cfg.addEventAlgo(alg)
52
53 return cfg
54