ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
python
LArCellPreparationAlgConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
6
def
LArCellPreparationAlgCfg
(
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
kwargs.setdefault(
"CaloCellsKey"
,
"AllCalo"
if
flags.Input.isMC
else
"SeedLessFS"
)
18
alg = CompFactory.GlobalSim.LArCellPreparationAlg(name,**kwargs)
19
if
alg.CaloCellsKey ==
"AllCalo"
:
20
from
AthenaConfiguration.Enums
import
Format
21
if
flags.Input.Format==Format.POOL
and
'AllCalo'
not
in
flags.Input.Collections:
22
from
CaloRec.CaloCellMakerConfig
import
CaloCellMakerCfg
23
cfg.merge(CaloCellMakerCfg(flags,addToOutputStream=
False
))
24
25
else
:
26
# ensure we are producing this cell collection ...
27
from
TrigCaloRec.TrigCaloRecConfig
import
hltCaloCellSeedlessMakerCfg
28
cfg.merge(hltCaloCellSeedlessMakerCfg(flags, roisKey=
''
))
29
30
cfg.addEventAlgo(alg)
31
32
return
cfg
LArCellPreparationAlgConfig.LArCellPreparationAlgCfg
LArCellPreparationAlgCfg(flags, name='LArCellPreparationAlg', **kwargs)
Definition
LArCellPreparationAlgConfig.py:9
Generated on
for ATLAS Offline Software by
1.17.0