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 205 of file PartonHistoryConfig.py.

Constructor & Destructor Documentation

◆ __init__()

PartonHistoryConfig.PartonHistoryBlock.__init__ ( self)

Definition at line 208 of file PartonHistoryConfig.py.

208 def __init__(self):
209 super().__init__()
210 self.addOption(
211 "history",
212 None,
213 type=str,
214 required=True,
215 info="parton-level interpretation of the MC truth record. Possible values:"
216 + ", ".join(sorted(TRUTH_BRANCHES))
217 + ".",
218 meta={'choices':(sorted(TRUTH_BRANCHES),1)},
219 )
220 self.addOption(
221 "symbolFCNC",
222 "H",
223 type=str,
224 required=False,
225 info="The symbol for FCNC, valid only for 'TtbarFCNC' history. Default is 'H', can be set to 'pdg_id' for exotic candidates.",
226 )
227 # Always skip on data
228 self.setOptionValue("skipOnData", True)
229

Member Function Documentation

◆ makeAlgs()

PartonHistoryConfig.PartonHistoryBlock.makeAlgs ( self,
config )

Definition at line 230 of file PartonHistoryConfig.py.

230 def makeAlgs(self, config):
231 if self.history not in TRUTH_BRANCHES:
232 valid = ", ".join(sorted(TRUTH_BRANCHES))
233 raise ValueError(
234 f"Unknown parton history '{self.history}'. Valid options: {valid}"
235 )
236
237 alg = config.createAlgorithm(
238 "CP::RunPartonHistoryAlg", f"PartonHistory{self.history}"
239 )
240 alg.partonScheme = self.history
241 alg.symbolFCNC = self.symbolFCNC
242
243 for branch in TRUTH_BRANCHES[self.history]:
244 config.addOutputVar(
245 "EventInfo",
246 f"{self.history}_{branch}",
247 f"{self.history}_{branch}",
248 noSys=True,
249 auxType=_get_aux_type(branch, self.history),
250 )

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