ATLAS Offline Software
Loading...
Searching...
No Matches
EventShapeDensityDumperConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AnalysisAlgorithmsConfig.ConfigBlock import ConfigBlock
4
5
6class EventShapeDensityDumperBlock(ConfigBlock):
7 """ConfigBlock for adding EventShape"""
8
9 def __init__(self):
10 super(EventShapeDensityDumperBlock, self).__init__()
11 self.addOption(
12 "eventShape",
13 "Kt4EMPFlowNeutEventShape",
14 type=str,
15 info="event shape variable to restore. Available options are: `Kt4EMPFlowEventShape`, `Kt4EMPFlowPUSBEventShape`, `Kt4EMTopoOriginEventShape`. `Kt4EMPFlowNeutEventShape`.",
16 )
17
18 def instanceName(self):
19 """Return the instance name for this block"""
20 return self.eventShape + 'Density'
21
22 def makeAlgs(self, config):
23
24 config.setSourceName (self.eventShape, self.eventShape)
25 config.setContainerMeta (self.eventShape, "nonContainer", True)
26
27 config.addOutputVar(self.eventShape, "Density", "density", noSys=True, auxType="float")
28 config.addOutputVar(self.eventShape, "DensitySigma", "density_sigma", noSys=True, auxType="float", enabled=False)
29 config.addOutputVar(self.eventShape, "DensityArea", "density_area", noSys=True, auxType="float", enabled=False)
30 config.addOutputVar(self.eventShape, "Thrust", "thrust", noSys=True, auxType="float", enabled=False)
31 config.addOutputVar(self.eventShape, "ThrustEta", "thrust_eta", noSys=True, auxType="float", enabled=False)
32 config.addOutputVar(self.eventShape, "ThrustPhi", "thrust_phi", noSys=True, auxType="float", enabled=False)
33 config.addOutputVar(self.eventShape, "ThrustMinor", "thrust_minor", noSys=True, auxType="float", enabled=False)
34 config.addOutputVar(self.eventShape, "Sphericity", "sphericity", noSys=True, auxType="float", enabled=False)
35 config.addOutputVar(self.eventShape, "FoxWolfram", "foxwolfram", noSys=True, auxType="float", enabled=False)