 |
ATLAS Offline Software
|
|
def | CaloCellDecoratorCfg (flags, **kwargs) |
|
def | MaxCellDecoratorCfg (flags, **kwargs) |
|
def | GainDecoratorCfg (flags, **kwargs) |
|
def | EgammaCoreCellRecoveryCfg (flags, **kwargs) |
|
def | CaloFillRectangularClusterCfg (flags, **kwargs) |
|
def | ClusterEnergyPerLayerDecoratorCfg (flags, **kwargs) |
|
def | CaloCellDecoratorKernelCfg (flags, name="CaloCellDecoratorKernel", **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) |
|
◆ CaloCellDecoratorCfg()
def DerivationFrameworkCaloConfig.CaloCellDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 6 of file DerivationFrameworkCaloConfig.py.
8 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
9 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
10 acc.setPrivateTools(CompFactory.DerivationFramework.CaloCellDecorator(**kwargs))
11 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
◆ CaloCellDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.CaloCellDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "CaloCellDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 79 of file DerivationFrameworkCaloConfig.py.
86 kwargs.setdefault(
"AugmentationTools", augmentationTools)
88 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloClusterThinningCfg()
def DerivationFrameworkCaloConfig.CaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 127 of file DerivationFrameworkCaloConfig.py.
129 CaloClusterThinning = CompFactory.DerivationFramework.CaloClusterThinning
130 acc.addPublicTool(CaloClusterThinning(**kwargs), primary=
True)
◆ CaloDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.CaloDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "CaloDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 105 of file DerivationFrameworkCaloConfig.py.
108 augmentationTools = [
113 cluster_sizes = (3, 7), (5, 5), (7, 11)
114 for neta, nphi
in cluster_sizes:
115 cename =
"ClusterEnergyPerLayerDecorator_%sx%s" % (neta, nphi)
116 ClusterEnergyPerLayerDecorator = acc.popToolsAndMerge(
119 augmentationTools.append(acc.addPublicTool(ClusterEnergyPerLayerDecorator))
121 kwargs.setdefault(
"AugmentationTools", augmentationTools)
123 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloFillRectangularClusterCfg()
def DerivationFrameworkCaloConfig.CaloFillRectangularClusterCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 51 of file DerivationFrameworkCaloConfig.py.
53 kwargs.setdefault(
"cells_name", flags.Egamma.Keys.Input.CaloCells)
54 kwargs.setdefault(
"fill_cluster",
True)
55 acc.setPrivateTools(CompFactory.CaloFillRectangularCluster(**kwargs))
◆ ClusterEnergyPerLayerDecoratorCfg()
def DerivationFrameworkCaloConfig.ClusterEnergyPerLayerDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 59 of file DerivationFrameworkCaloConfig.py.
61 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
62 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
63 kwargs.setdefault(
"SGKey_caloCells", flags.Egamma.Keys.Input.CaloCells)
64 kwargs.setdefault(
"neta", 5)
65 kwargs.setdefault(
"nphi", 5)
67 toolArgs.update({
"eta_size": kwargs[
"neta"]})
68 toolArgs.update({
"phi_size": kwargs[
"nphi"]})
70 "CaloFillRectangularClusterTool",
74 CompFactory.DerivationFramework.ClusterEnergyPerLayerDecorator(**kwargs)
◆ EgammaCoreCellRecoveryCfg()
def DerivationFrameworkCaloConfig.EgammaCoreCellRecoveryCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 37 of file DerivationFrameworkCaloConfig.py.
40 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
42 from TileGeoModel.TileGMConfig
import TileGMCfg
46 CompFactory.DerivationFramework.EGammaClusterCoreCellRecovery(**kwargs)
◆ GainDecoratorCfg()
def DerivationFrameworkCaloConfig.GainDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 28 of file DerivationFrameworkCaloConfig.py.
30 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
31 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
32 kwargs.setdefault(
"name",
"GainDecor")
33 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 184 of file DerivationFrameworkCaloConfig.py.
185 """getClusterEnergyPerLayerDecorationsLegacy( acc, kernel ) -> return a list of names of the
186 decorations added to the egamma object, given the ClusterEnergyPerLayerDecorations
187 object (e.g. Photons.E7x11_Lr0, ...)"""
188 properties =
"SGKey_photons",
"SGKey_electrons"
189 ClusterEnergyPerLayerDecorators = []
190 for tool
in acc.getEventAlgo(kernel).AugmentationTools:
191 if tool.getType() ==
"DerivationFramework::ClusterEnergyPerLayerDecorator":
192 ClusterEnergyPerLayerDecorators.append(tool)
195 for tool
in ClusterEnergyPerLayerDecorators:
196 collections =
filter(bool, (getattr(tool, x)
for x
in properties))
197 for part
in collections:
198 for layer
in tool.layers:
201 "{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 155 of file DerivationFrameworkCaloConfig.py.
160 info=["E", "nCells"],
162 """getGainDecorations( acc, kernel collections=["Electrons", "Photons"] ) ->
163 Return a list with the 'ExtraContent' to be added to the decorations to save the gain
164 information per layer"""
166 if collections
is None:
167 collections = [flags.Egamma.Keys.Output.Electrons, flags.Egamma.Keys.Output.Photons]
169 GainDecoratorTool =
None
170 for tool
in acc.getEventAlgo(kernel).AugmentationTools:
171 if tool.getType() ==
"DerivationFramework::GainDecorator":
172 GainDecoratorTool = tool
174 if GainDecoratorTool:
176 "{part}.{info}".
format(part=part, info=info)
177 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 144 of file DerivationFrameworkCaloConfig.py.
145 """getGainLayerNames( tool ) -> return a list of names of the decorations added to the
146 egamma tool, given the GainDecorator tool"""
148 tool.decoration_pattern.format(info=info, layer=layer, gain=gain)
149 for info
in [
"E",
"nCells"]
150 for layer
in tool.layers
151 for gain
in tool.gain_names.values()
◆ JetCaloClusterThinningCfg()
def DerivationFrameworkCaloConfig.JetCaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 133 of file DerivationFrameworkCaloConfig.py.
135 JetCaloClusterThinning = CompFactory.DerivationFramework.JetCaloClusterThinning
136 acc.addPublicTool(JetCaloClusterThinning(**kwargs), primary=
True)
◆ MaxCellDecoratorCfg()
def DerivationFrameworkCaloConfig.MaxCellDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 17 of file DerivationFrameworkCaloConfig.py.
19 kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
20 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
21 acc.setPrivateTools(CompFactory.DerivationFramework.MaxCellDecorator(**kwargs))
22 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
◆ MaxCellDecoratorKernelCfg()
def DerivationFrameworkCaloConfig.MaxCellDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "MaxCellDecoratorKernel" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 92 of file DerivationFrameworkCaloConfig.py.
99 kwargs.setdefault(
"AugmentationTools", augmentationTools)
101 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
def CaloClusterThinningCfg(flags, **kwargs)
def JetCaloClusterThinningCfg(flags, **kwargs)
def CaloCellDecoratorKernelCfg(flags, name="CaloCellDecoratorKernel", **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 CaloCellDecoratorCfg(flags, **kwargs)
def CaloDecoratorKernelCfg(flags, name="CaloDecoratorKernel", **kwargs)
def getClusterEnergyPerLayerDecorations(acc, kernel)
def getGainDecorations(acc, flags, kernel, collections=None, info=["E", "nCells"])
def CaloFillRectangularClusterCfg(flags, **kwargs)