ATLAS Offline Software
Loading...
Searching...
No Matches
PartonHistoryConfig.PartonHistoryBlock Class Reference
Inheritance diagram for PartonHistoryConfig.PartonHistoryBlock:
Collaboration diagram for PartonHistoryConfig.PartonHistoryBlock:

Public Member Functions

 __init__ (self)
 makeAlgs (self, config)

Detailed Description

ConfigBlock for truth/parton-level resonant histories.

Definition at line 202 of file PartonHistoryConfig.py.

Constructor & Destructor Documentation

◆ __init__()

PartonHistoryConfig.PartonHistoryBlock.__init__ ( self)

Definition at line 205 of file PartonHistoryConfig.py.

205 def __init__(self):
206 super().__init__()
207 self.addOption(
208 "history",
209 None,
210 type=str,
211 required=True,
212 info="parton-level interpretation of the MC truth record. Possible values:"
213 + ", ".join(sorted(TRUTH_BRANCHES))
214 + ".",
215 )
216 # Always skip on data
217 self.setOptionValue("skipOnData", True)
218

Member Function Documentation

◆ makeAlgs()

PartonHistoryConfig.PartonHistoryBlock.makeAlgs ( self,
config )

Definition at line 219 of file PartonHistoryConfig.py.

219 def makeAlgs(self, config):
220 if self.history not in TRUTH_BRANCHES:
221 valid = ", ".join(sorted(TRUTH_BRANCHES))
222 raise ValueError(
223 f"Unknown parton history '{self.history}'. Valid options: {valid}"
224 )
225
226 alg = config.createAlgorithm(
227 "CP::RunPartonHistoryAlg", f"PartonHistory{self.history}"
228 )
229 alg.partonScheme = self.history
230
231 for branch in TRUTH_BRANCHES[self.history]:
232 config.addOutputVar(
233 "EventInfo",
234 f"{self.history}_{branch}",
235 f"{self.history}_{branch}",
236 noSys=True,
237 auxType=_get_aux_type(branch, self.history),
238 )

The documentation for this class was generated from the following file: