|
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 98 of file DerivationFrameworkCaloConfig.py.
100 CaloClusterThinning = CompFactory.DerivationFramework.CaloClusterThinning
101 acc.addPublicTool(CaloClusterThinning(**kwargs), primary=
True)
◆ CaloDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.CaloDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "CaloDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 76 of file DerivationFrameworkCaloConfig.py.
84 cluster_sizes = (3, 7), (5, 5), (7, 11)
85 for neta, nphi
in cluster_sizes:
86 cename =
"ClusterEnergyPerLayerDecorator_%sx%s" % (neta, nphi)
87 ClusterEnergyPerLayerDecorator = acc.popToolsAndMerge(
90 augmentationTools.append(acc.addPublicTool(ClusterEnergyPerLayerDecorator))
92 kwargs.setdefault(
"AugmentationTools", augmentationTools)
94 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloFillRectangularClusterCfg()
def DerivationFrameworkCaloConfig.CaloFillRectangularClusterCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 35 of file DerivationFrameworkCaloConfig.py.
37 kwargs.setdefault(
"cells_name", flags.Egamma.Keys.Input.CaloCells)
38 kwargs.setdefault(
"fill_cluster",
True)
39 acc.setPrivateTools(CompFactory.CaloFillRectangularCluster(**kwargs))
◆ ClusterEnergyPerLayerDecoratorCfg()
def DerivationFrameworkCaloConfig.ClusterEnergyPerLayerDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 43 of file DerivationFrameworkCaloConfig.py.
45 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
46 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
47 kwargs.setdefault(
"SGKey_caloCells", flags.Egamma.Keys.Input.CaloCells)
48 kwargs.setdefault(
"neta", 5)
49 kwargs.setdefault(
"nphi", 5)
51 toolArgs.update({
"eta_size": kwargs[
"neta"]})
52 toolArgs.update({
"phi_size": kwargs[
"nphi"]})
54 "CaloFillRectangularClusterTool",
58 CompFactory.DerivationFramework.ClusterEnergyPerLayerDecorator(**kwargs)
◆ EgammaCoreCellRecoveryCfg()
def DerivationFrameworkCaloConfig.EgammaCoreCellRecoveryCfg |
( |
|
flags, |
|
|
** |
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 158 of file DerivationFrameworkCaloConfig.py.
159 """getClusterEnergyPerLayerDecorationsLegacy( acc, kernel ) -> return a list of names of the
160 decorations added to the egamma object, given the ClusterEnergyPerLayerDecorations
161 object (e.g. Photons.E7x11_Lr0, ...)"""
162 properties =
"SGKey_photons",
"SGKey_electrons"
163 ClusterEnergyPerLayerDecorators = []
164 for toolStr
in acc.getEventAlgo(kernel).AugmentationTools:
165 toolStr = f
"{toolStr}"
166 splitStr = toolStr.split(
"/")
167 tool = acc.getPublicTool(splitStr[1])
168 if splitStr[0] ==
"DerivationFramework::ClusterEnergyPerLayerDecorator":
169 ClusterEnergyPerLayerDecorators.append(tool)
172 for tool
in ClusterEnergyPerLayerDecorators:
173 collections =
filter(bool, (getattr(tool, x)
for x
in properties))
174 for part
in collections:
175 for layer
in tool.layers:
178 "{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 126 of file DerivationFrameworkCaloConfig.py.
131 info=["E", "nCells"],
133 """getGainDecorations( acc, kernel collections=["Electrons", "Photons"] ) ->
134 Return a list with the 'ExtraContent' to be added to the decorations to save the gain
135 information per layer"""
137 if collections
is None:
138 collections = [flags.Egamma.Keys.Output.Electrons, flags.Egamma.Keys.Output.Photons]
140 GainDecoratorTool =
None
141 for toolStr
in acc.getEventAlgo(kernel).AugmentationTools:
142 toolStr = f
"{toolStr}"
143 splitStr = toolStr.split(
"/")
144 tool = acc.getPublicTool(splitStr[1])
145 if splitStr[0] ==
"DerivationFramework::GainDecorator":
146 GainDecoratorTool = tool
148 if GainDecoratorTool:
150 "{part}.{info}".
format(part=part, info=info)
151 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 115 of file DerivationFrameworkCaloConfig.py.
116 """getGainLayerNames( tool ) -> return a list of names of the decorations added to the
117 egamma tool, given the GainDecorator tool"""
119 tool.decoration_pattern.format(info=info, layer=layer, gain=gain)
120 for info
in [
"E",
"nCells"]
121 for layer
in tool.layers
122 for gain
in tool.gain_names.values()
◆ JetCaloClusterThinningCfg()
def DerivationFrameworkCaloConfig.JetCaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 104 of file DerivationFrameworkCaloConfig.py.
106 JetCaloClusterThinning = CompFactory.DerivationFramework.JetCaloClusterThinning
107 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 63 of file DerivationFrameworkCaloConfig.py.
70 kwargs.setdefault(
"AugmentationTools", augmentationTools)
72 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)