ATLAS Offline Software
Loading...
Searching...
No Matches
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
8from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
9from AthenaConfiguration.ComponentFactory import CompFactory
10from egammaTools.egammaLargeClusterMakerConfig import (
11 egammaLargeClusterMakerCfg)
12from CaloClusterCorrection.CaloSwCorrections import (
13 make_CaloSwCorrectionsCfg)
14
15
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
egammaLargeClusterMakerAlgCfg(flags, name="egammaLargeClusterMaker", **kwargs)