ATLAS Offline Software
egammaLargeFWDClusterMakerAlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 __doc__ = """Configure egammaLargeFWDClusterMaker,
4  which chooses cells to store in the AOD"""
5 __author__ = "Jovan Mitrevski"
6 
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 from egammaTools.egammaLargeFWDClusterMakerConfig import (
10  egammaLargeFWDClusterMakerCfg)
11 from CaloClusterCorrection.CaloSwCorrections import (
12  make_CaloSwCorrectionsCfg)
13 
14 
16  flags,
17  name="egammaLargeFWDClusterMaker",
18  **kwargs):
19 
20  acc = ComponentAccumulator()
21 
22  kwargs.setdefault("SaveUncalibratedSignalState", False)
23  kwargs.setdefault("ClustersOutputName",
24  flags.Egamma.Keys.Output.EgammaLargeFWDClusters)
25 
26  if "ClusterMakerTools" not in kwargs:
27  toolAcc = egammaLargeFWDClusterMakerCfg(flags)
28  kwargs["ClusterMakerTools"] = [toolAcc.popPrivateTools()]
29  acc.merge(toolAcc)
30 
31  if "ClusterCorrectionTools" not in kwargs:
33  flags,
34  "FWDele6_6",
35  suffix="Nocorr",
36  version="none",
37  corrlist=[],
38  cells_name=flags.Egamma.Keys.Input.CaloCells)
39  kwargs["ClusterCorrectionTools"] = acc.popToolsAndMerge(tools)
40 
41  acc.addEventAlgo(CompFactory.CaloClusterMaker(name, **kwargs))
42  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
egammaLargeFWDClusterMakerConfig.egammaLargeFWDClusterMakerCfg
def egammaLargeFWDClusterMakerCfg(flags, name="egammaFWDLCMakerTool", **kwargs)
Definition: egammaLargeFWDClusterMakerConfig.py:11
egammaLargeFWDClusterMakerAlgConfig.egammaLargeFWDClusterMakerAlgCfg
def egammaLargeFWDClusterMakerAlgCfg(flags, name="egammaLargeFWDClusterMaker", **kwargs)
Definition: egammaLargeFWDClusterMakerAlgConfig.py:15
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