ATLAS Offline Software
Loading...
Searching...
No Matches
Egamma1_LArStrip_Fex_RowAwareConfig.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
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_RowAware',
14 **kwargs):
15
16 # NB. If you want to set properties on the caloCellProducer do something like:
17 # ..,caloCellProducer=CompFactory.GlobalSim.EMB1CellsFromCaloCells(makeCaloCellContainerChecks=True),..
18
19
20 cfg = ComponentAccumulator()
21
22 # this alg needs totalNoise conditions ... configure the condalg for that:
23 from CaloTools.CaloNoiseCondAlgConfig import CaloNoiseCondAlgCfg
24 cfg.merge(CaloNoiseCondAlgCfg(flags,"totalNoise"))
25
26 alg = CompFactory.GlobalSim.Egamma1_LArStrip_Fex_RowAware(name,**kwargs)
27
28 if flags.Input.isMC:
29 alg.caloCellProducer.caloCells = "AllCalo"
30 else:
31 alg.caloCellProducer.caloCells = "SeedLessFS"
32 # ensure we are producing this cell collection ...
33 from TrigCaloRec.TrigCaloRecConfig import hltCaloCellSeedlessMakerCfg
34 cfg.merge(hltCaloCellSeedlessMakerCfg(flags, roisKey=''))
35
36
37 cfg.addEventAlgo(alg)
38
39 return cfg
40
Egamma1_LArStrip_Fex_RowAwareCfg(flags, name='Egamma1_LArStrip_Fex_RowAware', **kwargs)