Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
|
def | MaxCellDecoratorCfg (flags, **kwargs) |
|
def | GainDecoratorCfg (flags, **kwargs) |
|
def | EgammaCoreCellRecoveryCfg (flags, **kwargs) |
|
def | CaloFillRectangularClusterCfg (flags, **kwargs) |
|
def | ClusterEnergyPerLayerDecoratorCfg (flags, **kwargs) |
|
def | MaxCellDecoratorKernelCfg (flags, name="MaxCellDecoratorKernel", **kwargs) |
|
def | CaloDecoratorKernelCfg (flags, name="CaloDecoratorKernel", **kwargs) |
|
def | CaloClusterThinningCfg (flags, **kwargs) |
|
def | JetCaloClusterThinningCfg (flags, **kwargs) |
|
def | getGainLayerNames (tool) |
| additional utilities to return the list of decorations added by the tools More...
|
|
def | getGainDecorations (acc, flags, kernel, collections=None, info=["E", "nCells"]) |
|
def | getClusterEnergyPerLayerDecorations (acc, kernel) |
|
◆ CaloClusterThinningCfg()
def DerivationFrameworkCaloConfig.CaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 104 of file DerivationFrameworkCaloConfig.py.
106 CaloClusterThinning = CompFactory.DerivationFramework.CaloClusterThinning
107 acc.addPublicTool(CaloClusterThinning(**kwargs), primary=
True)
◆ CaloDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.CaloDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "CaloDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 82 of file DerivationFrameworkCaloConfig.py.
90 cluster_sizes = (3, 7), (5, 5), (7, 11)
91 for neta, nphi
in cluster_sizes:
92 cename =
"ClusterEnergyPerLayerDecorator_%sx%s" % (neta, nphi)
93 ClusterEnergyPerLayerDecorator = acc.popToolsAndMerge(
96 augmentationTools.append(acc.addPublicTool(ClusterEnergyPerLayerDecorator))
98 kwargs.setdefault(
"AugmentationTools", augmentationTools)
100 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloFillRectangularClusterCfg()
def DerivationFrameworkCaloConfig.CaloFillRectangularClusterCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 41 of file DerivationFrameworkCaloConfig.py.
43 kwargs.setdefault(
"cells_name", flags.Egamma.Keys.Input.CaloCells)
44 kwargs.setdefault(
"fill_cluster",
True)
45 acc.setPrivateTools(CompFactory.CaloFillRectangularCluster(**kwargs))
◆ ClusterEnergyPerLayerDecoratorCfg()
def DerivationFrameworkCaloConfig.ClusterEnergyPerLayerDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 49 of file DerivationFrameworkCaloConfig.py.
51 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
52 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
53 kwargs.setdefault(
"SGKey_caloCells", flags.Egamma.Keys.Input.CaloCells)
54 kwargs.setdefault(
"neta", 5)
55 kwargs.setdefault(
"nphi", 5)
57 toolArgs.update({
"eta_size": kwargs[
"neta"]})
58 toolArgs.update({
"phi_size": kwargs[
"nphi"]})
60 "CaloFillRectangularClusterTool",
64 CompFactory.DerivationFramework.ClusterEnergyPerLayerDecorator(**kwargs)
◆ EgammaCoreCellRecoveryCfg()
def DerivationFrameworkCaloConfig.EgammaCoreCellRecoveryCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 27 of file DerivationFrameworkCaloConfig.py.
30 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
32 from TileGeoModel.TileGMConfig
import TileGMCfg
36 CompFactory.DerivationFramework.EGammaClusterCoreCellRecovery(**kwargs)
◆ GainDecoratorCfg()
def DerivationFrameworkCaloConfig.GainDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 18 of file DerivationFrameworkCaloConfig.py.
20 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
21 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
22 kwargs.setdefault(
"name",
"GainDecor")
23 acc.setPrivateTools(CompFactory.DerivationFramework.GainDecorator(**kwargs))
◆ getClusterEnergyPerLayerDecorations()
def DerivationFrameworkCaloConfig.getClusterEnergyPerLayerDecorations |
( |
|
acc, |
|
|
|
kernel |
|
) |
| |
getClusterEnergyPerLayerDecorationsLegacy( acc, kernel ) -> return a list of names of the
decorations added to the egamma object, given the ClusterEnergyPerLayerDecorations
object (e.g. Photons.E7x11_Lr0, ...)
Definition at line 164 of file DerivationFrameworkCaloConfig.py.
165 """getClusterEnergyPerLayerDecorationsLegacy( acc, kernel ) -> return a list of names of the
166 decorations added to the egamma object, given the ClusterEnergyPerLayerDecorations
167 object (e.g. Photons.E7x11_Lr0, ...)"""
168 properties =
"SGKey_photons",
"SGKey_electrons"
169 ClusterEnergyPerLayerDecorators = []
170 for toolStr
in acc.getEventAlgo(kernel).AugmentationTools:
171 toolStr = f
"{toolStr}"
172 splitStr = toolStr.split(
"/")
173 tool = acc.getPublicTool(splitStr[1])
174 if splitStr[0] ==
"DerivationFramework::ClusterEnergyPerLayerDecorator":
175 ClusterEnergyPerLayerDecorators.append(tool)
178 for tool
in ClusterEnergyPerLayerDecorators:
179 collections =
filter(bool, (getattr(tool, x)
for x
in properties))
180 for part
in collections:
181 for layer
in tool.layers:
184 "{part}.E{neta}x{nphi}_Lr{layer}".
format(
◆ getGainDecorations()
def DerivationFrameworkCaloConfig.getGainDecorations |
( |
|
acc, |
|
|
|
flags, |
|
|
|
kernel, |
|
|
|
collections = None , |
|
|
|
info = ["E", "nCells"] |
|
) |
| |
getGainDecorations( acc, kernel collections=["Electrons", "Photons"] ) ->
Return a list with the 'ExtraContent' to be added to the decorations to save the gain
information per layer
Definition at line 132 of file DerivationFrameworkCaloConfig.py.
137 info=["E", "nCells"],
139 """getGainDecorations( acc, kernel collections=["Electrons", "Photons"] ) ->
140 Return a list with the 'ExtraContent' to be added to the decorations to save the gain
141 information per layer"""
143 if collections
is None:
144 collections = [flags.Egamma.Keys.Output.Electrons, flags.Egamma.Keys.Output.Photons]
146 GainDecoratorTool =
None
147 for toolStr
in acc.getEventAlgo(kernel).AugmentationTools:
148 toolStr = f
"{toolStr}"
149 splitStr = toolStr.split(
"/")
150 tool = acc.getPublicTool(splitStr[1])
151 if splitStr[0] ==
"DerivationFramework::GainDecorator":
152 GainDecoratorTool = tool
154 if GainDecoratorTool:
156 "{part}.{info}".
format(part=part, info=info)
157 for part
in collections
◆ getGainLayerNames()
def DerivationFrameworkCaloConfig.getGainLayerNames |
( |
|
tool | ) |
|
additional utilities to return the list of decorations added by the tools
getGainLayerNames( tool ) -> return a list of names of the decorations added to the
egamma tool, given the GainDecorator tool
Definition at line 121 of file DerivationFrameworkCaloConfig.py.
122 """getGainLayerNames( tool ) -> return a list of names of the decorations added to the
123 egamma tool, given the GainDecorator tool"""
125 tool.decoration_pattern.format(info=info, layer=layer, gain=gain)
126 for info
in [
"E",
"nCells"]
127 for layer
in tool.layers
128 for gain
in tool.gain_names.values()
◆ JetCaloClusterThinningCfg()
def DerivationFrameworkCaloConfig.JetCaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 110 of file DerivationFrameworkCaloConfig.py.
112 JetCaloClusterThinning = CompFactory.DerivationFramework.JetCaloClusterThinning
113 acc.addPublicTool(JetCaloClusterThinning(**kwargs), primary=
True)
◆ MaxCellDecoratorCfg()
def DerivationFrameworkCaloConfig.MaxCellDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 7 of file DerivationFrameworkCaloConfig.py.
9 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
10 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
11 acc.setPrivateTools(CompFactory.DerivationFramework.MaxCellDecorator(**kwargs))
12 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
◆ MaxCellDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.MaxCellDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "MaxCellDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 69 of file DerivationFrameworkCaloConfig.py.
76 kwargs.setdefault(
"AugmentationTools", augmentationTools)
78 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
def CaloClusterThinningCfg(flags, **kwargs)
def JetCaloClusterThinningCfg(flags, **kwargs)
def MaxCellDecoratorCfg(flags, **kwargs)
def EgammaCoreCellRecoveryCfg(flags, **kwargs)
def GainDecoratorCfg(flags, **kwargs)
def getGainLayerNames(tool)
additional utilities to return the list of decorations added by the tools
def ClusterEnergyPerLayerDecoratorCfg(flags, **kwargs)
def MaxCellDecoratorKernelCfg(flags, name="MaxCellDecoratorKernel", **kwargs)
def LArOnOffIdMappingCfg(configFlags)
def CaloDecoratorKernelCfg(flags, name="CaloDecoratorKernel", **kwargs)
def getClusterEnergyPerLayerDecorations(acc, kernel)
def getGainDecorations(acc, flags, kernel, collections=None, info=["E", "nCells"])
def CaloFillRectangularClusterCfg(flags, **kwargs)