ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaAlgs
python
egammaLargeClusterMakerAlgConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
""" Configure egammaLargeClusterMaker which chooses cells to store in the AOD
4
"""
5
6
__author__ =
"Jovan Mitrevski"
7
8
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
9
from
AthenaConfiguration.ComponentFactory
import
CompFactory
10
from
egammaTools.egammaLargeClusterMakerConfig
import
(
11
egammaLargeClusterMakerCfg)
12
from
CaloClusterCorrection.CaloSwCorrections
import
(
13
make_CaloSwCorrectionsCfg)
14
15
16
def
egammaLargeClusterMakerAlgCfg
(
17
flags,
18
name="egammaLargeClusterMaker",
19
**kwargs):
20
21
acc = ComponentAccumulator()
22
23
kwargs.setdefault(
"SaveUncalibratedSignalState"
,
False
)
24
kwargs.setdefault(
"ClustersOutputName"
,
25
flags.Egamma.Keys.Output.EgammaLargeClusters)
26
27
if
"ClusterMakerTools"
not
in
kwargs:
28
tool = egammaLargeClusterMakerCfg(flags)
29
kwargs[
"ClusterMakerTools"
] = [acc.popToolsAndMerge(tool)]
30
31
if
"ClusterCorrectionTools"
not
in
kwargs:
32
tools = make_CaloSwCorrectionsCfg(
33
flags,
34
"ele7_11"
,
35
suffix=
"Nocorr"
,
36
version=
"none"
,
37
cells_name=flags.Egamma.Keys.Input.CaloCells)
38
kwargs[
"ClusterCorrectionTools"
] = acc.popToolsAndMerge(tools)
39
40
acc.addEventAlgo(CompFactory.CaloClusterMaker(name, **kwargs))
41
return
acc
egammaLargeClusterMakerAlgConfig.egammaLargeClusterMakerAlgCfg
egammaLargeClusterMakerAlgCfg(flags, name="egammaLargeClusterMaker", **kwargs)
Definition
egammaLargeClusterMakerAlgConfig.py:19
Generated on
for ATLAS Offline Software by
1.17.0