|
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 99 of file DerivationFrameworkCaloConfig.py.
101 CaloClusterThinning = CompFactory.DerivationFramework.CaloClusterThinning
102 acc.addPublicTool(CaloClusterThinning(**kwargs), primary=
True)
◆ CaloDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.CaloDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "CaloDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 77 of file DerivationFrameworkCaloConfig.py.
85 cluster_sizes = (3, 7), (5, 5), (7, 11)
86 for neta, nphi
in cluster_sizes:
87 cename =
"ClusterEnergyPerLayerDecorator_%sx%s" % (neta, nphi)
88 ClusterEnergyPerLayerDecorator = acc.popToolsAndMerge(
91 augmentationTools.append(acc.addPublicTool(ClusterEnergyPerLayerDecorator))
93 kwargs.setdefault(
"AugmentationTools", augmentationTools)
95 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloFillRectangularClusterCfg()
def DerivationFrameworkCaloConfig.CaloFillRectangularClusterCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 36 of file DerivationFrameworkCaloConfig.py.
38 kwargs.setdefault(
"cells_name", flags.Egamma.Keys.Input.CaloCells)
39 kwargs.setdefault(
"fill_cluster",
True)
40 acc.setPrivateTools(CompFactory.CaloFillRectangularCluster(**kwargs))
◆ ClusterEnergyPerLayerDecoratorCfg()
def DerivationFrameworkCaloConfig.ClusterEnergyPerLayerDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 44 of file DerivationFrameworkCaloConfig.py.
46 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
47 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
48 kwargs.setdefault(
"SGKey_caloCells", flags.Egamma.Keys.Input.CaloCells)
49 kwargs.setdefault(
"neta", 5)
50 kwargs.setdefault(
"nphi", 5)
52 toolArgs.update({
"eta_size": kwargs[
"neta"]})
53 toolArgs.update({
"phi_size": kwargs[
"nphi"]})
55 "CaloFillRectangularClusterTool",
59 CompFactory.DerivationFramework.ClusterEnergyPerLayerDecorator(**kwargs)
◆ EgammaCoreCellRecoveryCfg()
def DerivationFrameworkCaloConfig.EgammaCoreCellRecoveryCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
◆ GainDecoratorCfg()
def DerivationFrameworkCaloConfig.GainDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 19 of file DerivationFrameworkCaloConfig.py.
21 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
22 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
23 kwargs.setdefault(
"name",
"GainDecor")
24 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 159 of file DerivationFrameworkCaloConfig.py.
160 """getClusterEnergyPerLayerDecorationsLegacy( acc, kernel ) -> return a list of names of the
161 decorations added to the egamma object, given the ClusterEnergyPerLayerDecorations
162 object (e.g. Photons.E7x11_Lr0, ...)"""
163 properties =
"SGKey_photons",
"SGKey_electrons"
164 ClusterEnergyPerLayerDecorators = []
165 for toolStr
in acc.getEventAlgo(kernel).AugmentationTools:
166 toolStr = f
"{toolStr}"
167 splitStr = toolStr.split(
"/")
168 tool = acc.getPublicTool(splitStr[1])
169 if splitStr[0] ==
"DerivationFramework::ClusterEnergyPerLayerDecorator":
170 ClusterEnergyPerLayerDecorators.append(tool)
173 for tool
in ClusterEnergyPerLayerDecorators:
174 collections =
filter(bool, (getattr(tool, x)
for x
in properties))
175 for part
in collections:
176 for layer
in tool.layers:
179 "{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 127 of file DerivationFrameworkCaloConfig.py.
132 info=["E", "nCells"],
134 """getGainDecorations( acc, kernel collections=["Electrons", "Photons"] ) ->
135 Return a list with the 'ExtraContent' to be added to the decorations to save the gain
136 information per layer"""
138 if collections
is None:
139 collections = [flags.Egamma.Keys.Output.Electrons, flags.Egamma.Keys.Output.Photons]
141 GainDecoratorTool =
None
142 for toolStr
in acc.getEventAlgo(kernel).AugmentationTools:
143 toolStr = f
"{toolStr}"
144 splitStr = toolStr.split(
"/")
145 tool = acc.getPublicTool(splitStr[1])
146 if splitStr[0] ==
"DerivationFramework::GainDecorator":
147 GainDecoratorTool = tool
149 if GainDecoratorTool:
151 "{part}.{info}".
format(part=part, info=info)
152 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 116 of file DerivationFrameworkCaloConfig.py.
117 """getGainLayerNames( tool ) -> return a list of names of the decorations added to the
118 egamma tool, given the GainDecorator tool"""
120 tool.decoration_pattern.format(info=info, layer=layer, gain=gain)
121 for info
in [
"E",
"nCells"]
122 for layer
in tool.layers
123 for gain
in tool.gain_names.values()
◆ JetCaloClusterThinningCfg()
def DerivationFrameworkCaloConfig.JetCaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 105 of file DerivationFrameworkCaloConfig.py.
107 JetCaloClusterThinning = CompFactory.DerivationFramework.JetCaloClusterThinning
108 acc.addPublicTool(JetCaloClusterThinning(**kwargs), primary=
True)
◆ MaxCellDecoratorCfg()
def DerivationFrameworkCaloConfig.MaxCellDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 8 of file DerivationFrameworkCaloConfig.py.
10 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
11 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
12 acc.setPrivateTools(CompFactory.DerivationFramework.MaxCellDecorator(**kwargs))
13 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
◆ MaxCellDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.MaxCellDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "MaxCellDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 64 of file DerivationFrameworkCaloConfig.py.
71 kwargs.setdefault(
"AugmentationTools", augmentationTools)
73 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)