ATLAS Offline Software
Loading...
Searching...
No Matches
LArCellPreparationAlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
7 flags,
8 name='LArCellPreparationAlg',
9 **kwargs):
10
11 cfg = ComponentAccumulator()
12
13 # this alg needs totalNoise conditions ... configure the condalg for that:
14 from CaloTools.CaloNoiseCondAlgConfig import CaloNoiseCondAlgCfg
15 cfg.merge(CaloNoiseCondAlgCfg(flags,"totalNoise"))
16
17 alg = CompFactory.GlobalSim.LArCellPreparationAlg(name,**kwargs)
18 if flags.Input.isMC:
19 alg.caloCells = "AllCalo"
20 else:
21 alg.caloCells = "SeedLessFS"
22 # ensure we are producing this cell collection ...
23 from TrigCaloRec.TrigCaloRecConfig import hltCaloCellSeedlessMakerCfg
24 cfg.merge(hltCaloCellSeedlessMakerCfg(flags, roisKey=''))
25
26 cfg.addEventAlgo(alg)
27
28 return cfg
LArCellPreparationAlgCfg(flags, name='LArCellPreparationAlg', **kwargs)