ATLAS Offline Software
Loading...
Searching...
No Matches
egammaLargeFWDClusterMakerAlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3""" Configure egammaLargeFWDClusterMaker 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.egammaLargeFWDClusterMakerConfig import (
11 egammaLargeFWDClusterMakerCfg)
12from CaloClusterCorrection.CaloSwCorrections import (
13 make_CaloSwCorrectionsCfg)
14
15
17 flags,
18 name="egammaLargeFWDClusterMaker",
19 **kwargs):
20
21 acc = ComponentAccumulator()
22
23 kwargs.setdefault("SaveUncalibratedSignalState", False)
24 kwargs.setdefault("ClustersOutputName",
25 flags.Egamma.Keys.Output.EgammaLargeFWDClusters)
26
27 if "ClusterMakerTools" not in kwargs:
28 toolAcc = egammaLargeFWDClusterMakerCfg(flags)
29 kwargs["ClusterMakerTools"] = [toolAcc.popPrivateTools()]
30 acc.merge(toolAcc)
31
32 if "ClusterCorrectionTools" not in kwargs:
33 tools = make_CaloSwCorrectionsCfg(
34 flags,
35 "FWDele6_6",
36 suffix="Nocorr",
37 version="none",
38 corrlist=[],
39 cells_name=flags.Egamma.Keys.Input.CaloCells)
40 kwargs["ClusterCorrectionTools"] = acc.popToolsAndMerge(tools)
41
42 acc.addEventAlgo(CompFactory.CaloClusterMaker(name, **kwargs))
43 return acc
egammaLargeFWDClusterMakerAlgCfg(flags, name="egammaLargeFWDClusterMaker", **kwargs)