4 Tool configuration to instantiate
5 all egammaCaloTools with default configuration.
8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from AthenaConfiguration.ComponentFactory
import CompFactory
15 kwargs.setdefault(
"eta_size", 5)
16 kwargs.setdefault(
"phi_size", 7)
17 kwargs.setdefault(
"cells_name", flags.Egamma.Keys.Input.CaloCells)
19 result.setPrivateTools(CompFactory.CaloFillRectangularCluster(**kwargs))
24 flags, name="egammaCheckEnergyDepositTool", **kwargs
27 kwargs.setdefault(
"ThrE2min", 50)
28 kwargs.setdefault(
"ThrF0max", 0.9)
29 kwargs.setdefault(
"ThrF1max", 0.9)
30 kwargs.setdefault(
"ThrF2max", 0.999)
31 kwargs.setdefault(
"ThrF3max", 0.8)
32 result.setPrivateTools(CompFactory.egammaCheckEnergyDepositTool(name, **kwargs))
39 if "egammaCheckEnergyDepositTool" not in kwargs:
40 if not flags.Egamma.doLowMu:
41 kwargs[
"egammaCheckEnergyDepositTool"] = result.popToolsAndMerge(
45 kwargs.setdefault(
"EMEtCut", 2250.0
if not flags.Egamma.doLowMu
else 300.0)
46 kwargs.setdefault(
"EMEtSplittingFraction", 0.7)
47 kwargs.setdefault(
"EMFCut", 0.5)
48 kwargs.setdefault(
"CellContainerName", flags.Egamma.Keys.Input.CaloCells)
49 result.setPrivateTools(CompFactory.egammaCaloClusterSelector(name, **kwargs))
56 if "egammaCheckEnergyDepositTool" not in kwargs:
57 if not flags.Egamma.doLowMu:
58 kwargs[
"egammaCheckEnergyDepositTool"] = result.popToolsAndMerge(
61 kwargs.setdefault(
"EMEtCut", 2250.0
if not flags.Egamma.doLowMu
else 300.0)
62 kwargs.setdefault(
"EMEtSplittingFraction", 0.7)
63 kwargs.setdefault(
"EMFCut", 0.7)
64 kwargs.setdefault(
"RetaCut", 0.65
if not flags.Egamma.doLowMu
else 0.0)
65 kwargs.setdefault(
"HadLeakCut", 0.15)
66 result.setPrivateTools(CompFactory.egammaCaloClusterSelector(name, **kwargs))
71 flags, name="caloClusterHadROISelector", **kwargs
74 kwargs.setdefault(
"egammaCheckEnergyDepositTool",
"")
75 kwargs.setdefault(
"ClusterEtCut", 150e3)
76 result.setPrivateTools(CompFactory.egammaCaloClusterSelector(name, **kwargs))
80 if __name__ ==
"__main__":
81 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
82 from AthenaConfiguration.ComponentAccumulator
import printProperties
83 from AthenaConfiguration.TestDefaults
import defaultTestFiles
84 from AthenaCommon.Logging
import logging
86 flags.Input.Files = defaultTestFiles.RDO_RUN2
92 mlog = logging.getLogger(
"egammaCaloToolsConfigTest")
93 mlog.info(
"Configuring egammaCaloClusterSelector : ")
100 mlog.info(
"Configuring egammaCaloClusterSelectorGSF :")
107 mlog.info(
"Configuring egammaHadCaloClusterSelector :")
114 f =
open(
"egtracktools.pkl",
"wb")