 |
ATLAS Offline Software
|
|
| def | CaloCellDecoratorCfg (flags, **kwargs) |
| |
| def | MaxCellDecoratorCfg (flags, name="MaxCellDecorator", **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 105 of file DerivationFrameworkCaloConfig.py.
108 augmentationTools = [
112 kwargs.setdefault(
"AugmentationTools", augmentationTools)
114 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloClusterThinningCfg()
| def DerivationFrameworkCaloConfig.CaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 153 of file DerivationFrameworkCaloConfig.py.
155 CaloClusterThinning = CompFactory.DerivationFramework.CaloClusterThinning
156 acc.addPublicTool(CaloClusterThinning(**kwargs), primary=
True)
◆ CaloDecoratorKernelCfg()
| def DerivationFrameworkCaloConfig.CaloDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "CaloDecoratorKernel", |
|
|
** |
kwargs |
|
) |
| |
Definition at line 131 of file DerivationFrameworkCaloConfig.py.
134 augmentationTools = [
139 cluster_sizes = (3, 7), (5, 5), (7, 11)
140 for neta, nphi
in cluster_sizes:
141 cename =
"ClusterEnergyPerLayerDecorator_%sx%s" % (neta, nphi)
142 ClusterEnergyPerLayerDecorator = acc.popToolsAndMerge(
145 augmentationTools.append(acc.addPublicTool(ClusterEnergyPerLayerDecorator))
147 kwargs.setdefault(
"AugmentationTools", augmentationTools)
149 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
◆ CaloFillRectangularClusterCfg()
| def DerivationFrameworkCaloConfig.CaloFillRectangularClusterCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 72 of file DerivationFrameworkCaloConfig.py.
74 kwargs.setdefault(
"cells_name", flags.Egamma.Keys.Input.CaloCells)
75 kwargs.setdefault(
"fill_cluster",
True)
76 acc.setPrivateTools(CompFactory.CaloFillRectangularCluster(**kwargs))
◆ ClusterEnergyPerLayerDecoratorCfg()
| def DerivationFrameworkCaloConfig.ClusterEnergyPerLayerDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 80 of file DerivationFrameworkCaloConfig.py.
82 electronKey = kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
83 photonKey = kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
84 kwargs.setdefault(
"SGKey_caloCells", flags.Egamma.Keys.Input.CaloCells)
85 neta = kwargs.pop(
"neta", 5)
86 nphi = kwargs.pop(
"nphi", 5)
87 kwargs.setdefault(
"layers", [ 0, 1, 2, 3 ])
88 decorBase =
"E{}x{}_Lr".
format(neta, nphi)
89 kwargs.setdefault(
"SGKey_photons_decorations", [photonKey+
"."+decorBase+
str(layer)
for layer
in kwargs[
'layers']])
90 kwargs.setdefault(
"SGKey_electrons_decorations", [electronKey+
"."+decorBase+
str(layer)
for layer
in kwargs[
'layers']])
93 toolArgs.update({
"eta_size": neta})
94 toolArgs.update({
"phi_size": nphi})
96 "CaloFillRectangularClusterTool",
100 CompFactory.DerivationFramework.ClusterEnergyPerLayerDecorator(**kwargs)
◆ EgammaCoreCellRecoveryCfg()
| def DerivationFrameworkCaloConfig.EgammaCoreCellRecoveryCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 58 of file DerivationFrameworkCaloConfig.py.
61 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
63 from TileGeoModel.TileGMConfig
import TileGMCfg
67 CompFactory.DerivationFramework.EGammaClusterCoreCellRecovery(**kwargs)
◆ GainDecoratorCfg()
| def DerivationFrameworkCaloConfig.GainDecoratorCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 37 of file DerivationFrameworkCaloConfig.py.
39 decorationPattern = kwargs.pop(
"decoration_pattern",
"{}_Lr{}_{}G")
40 kwargs.setdefault(
"gain_names", { 0 :
"Hi", 1 :
"Med", 2 :
"Low" })
41 kwargs.setdefault(
"layers", [0, 1, 2, 3])
43 for x, gain
in kwargs[
"gain_names"].
items():
44 for layer
in kwargs[
"layers"]:
45 decorNames += [decorationPattern.format(
"E", layer, gain)]
46 decorNames += [decorationPattern.format(
"rnoW", layer, gain)]
47 decorNames += [decorationPattern.format(
"nCells", layer, gain)]
48 electronKey = kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
49 kwargs.setdefault(
"SGKey_electrons_decorations", [electronKey +
"." + decor
for decor
in decorNames])
50 photonKey = kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
51 kwargs.setdefault(
"SGKey_photons_decorations", [photonKey +
"." + decor
for decor
in decorNames])
53 kwargs.setdefault(
"name",
"GainDecor")
54 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 210 of file DerivationFrameworkCaloConfig.py.
211 """getClusterEnergyPerLayerDecorationsLegacy( acc, kernel ) -> return a list of names of the
212 decorations added to the egamma object, given the ClusterEnergyPerLayerDecorations
213 object (e.g. Photons.E7x11_Lr0, ...)"""
214 properties =
"SGKey_photons",
"SGKey_electrons"
215 ClusterEnergyPerLayerDecorators = []
216 for tool
in acc.getEventAlgo(kernel).AugmentationTools:
217 if tool.getType() ==
"DerivationFramework::ClusterEnergyPerLayerDecorator":
218 ClusterEnergyPerLayerDecorators.append(tool)
221 for tool
in ClusterEnergyPerLayerDecorators:
222 collections =
filter(bool, (getattr(tool, x)
for x
in properties))
223 for part
in collections:
224 key =
"SGKey_{}_decorations".
format(
str(part).lower())
225 decorations.extend(getattr(tool, key))
◆ 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 181 of file DerivationFrameworkCaloConfig.py.
186 info=["E", "nCells"],
188 """getGainDecorations( acc, kernel collections=["Electrons", "Photons"] ) ->
189 Return a list with the 'ExtraContent' to be added to the decorations to save the gain
190 information per layer"""
192 if collections
is None:
193 collections = [flags.Egamma.Keys.Output.Electrons, flags.Egamma.Keys.Output.Photons]
195 GainDecoratorTool =
None
196 for tool
in acc.getEventAlgo(kernel).AugmentationTools:
197 if tool.getType() ==
"DerivationFramework::GainDecorator":
198 GainDecoratorTool = tool
200 if GainDecoratorTool:
202 "{part}.{info}".
format(part=part, info=info)
203 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 170 of file DerivationFrameworkCaloConfig.py.
171 """getGainLayerNames( tool ) -> return a list of names of the decorations added to the
172 egamma tool, given the GainDecorator tool"""
174 tool.decoration_pattern.format(info=info, layer=layer, gain=gain)
175 for info
in [
"E",
"nCells"]
176 for layer
in tool.layers
177 for gain
in tool.gain_names.values()
◆ JetCaloClusterThinningCfg()
| def DerivationFrameworkCaloConfig.JetCaloClusterThinningCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 159 of file DerivationFrameworkCaloConfig.py.
161 JetCaloClusterThinning = CompFactory.DerivationFramework.JetCaloClusterThinning
162 acc.addPublicTool(JetCaloClusterThinning(**kwargs), primary=
True)
◆ MaxCellDecoratorCfg()
| def DerivationFrameworkCaloConfig.MaxCellDecoratorCfg |
( |
|
flags, |
|
|
|
name = "MaxCellDecorator", |
|
|
** |
kwargs |
|
) |
| |
Definition at line 17 of file DerivationFrameworkCaloConfig.py.
19 electronKey = kwargs.setdefault(
"SGKey_electrons", flags.Egamma.Keys.Output.Electrons)
20 baseDecorations =[
"maxEcell_time",
"maxEcell_energy",
"maxEcell_gain",
21 "maxEcell_onlId",
"maxEcell_x",
"maxEcell_y",
"maxEcell_z"]
22 electronDecorations = [electronKey +
"." + decor
for decor
in baseDecorations]
23 kwargs.setdefault(
"SGKey_egammaClusters",
"")
24 if kwargs[
"SGKey_egammaClusters"] !=
'':
25 electronDecorations += [electronKey +
"." +
"dR"]
28 kwargs.setdefault(
"SGKey_electrons_decorations", electronDecorations)
29 kwargs.setdefault(
"SGKey_photons", flags.Egamma.Keys.Output.Photons)
30 acc.setPrivateTools(CompFactory.DerivationFramework.MaxCellDecorator(name, **kwargs))
31 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
◆ MaxCellDecoratorKernelCfg()
| def DerivationFrameworkCaloConfig.MaxCellDecoratorKernelCfg |
( |
|
flags, |
|
|
|
name = "MaxCellDecoratorKernel", |
|
|
** |
kwargs |
|
) |
| |
Definition at line 118 of file DerivationFrameworkCaloConfig.py.
121 augmentationTools = [
125 kwargs.setdefault(
"AugmentationTools", augmentationTools)
127 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))
def CaloClusterThinningCfg(flags, **kwargs)
def JetCaloClusterThinningCfg(flags, **kwargs)
def MaxCellDecoratorCfg(flags, name="MaxCellDecorator", **kwargs)
def CaloCellDecoratorKernelCfg(flags, name="CaloCellDecoratorKernel", **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)