ATLAS Offline Software
egammaLargeClusterMakerAlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 __doc__ = """
4  Configure egammaLargeClusterMaker,
5  which chooses cells to store in the AOD"""
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 
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:
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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
egammaLargeClusterMakerConfig.egammaLargeClusterMakerCfg
def egammaLargeClusterMakerCfg(flags, name="egammaLCMakerTool", **kwargs)
Definition: egammaLargeClusterMakerConfig.py:12
egammaLargeClusterMakerAlgConfig.egammaLargeClusterMakerAlgCfg
def egammaLargeClusterMakerAlgCfg(flags, name="egammaLargeClusterMaker", **kwargs)
Definition: egammaLargeClusterMakerAlgConfig.py:16
CaloSwCorrections.make_CaloSwCorrectionsCfg
def make_CaloSwCorrectionsCfg(flags, key=None, suffix='', version=None, corrlist=None, cells_name=None, source=None, weighting=False, remdup=False, rembad=False, **kw)
Main entry point to create a list of correction tools.
Definition: CaloSwCorrections.py:1222