ATLAS Offline Software
Loading...
Searching...
No Matches
python.MadGraphPDFSettings Namespace Reference

Classes

class  MadGraphPDFSets

Functions

 get_pdf_set (pdf_set)

Function Documentation

◆ get_pdf_set()

python.MadGraphPDFSettings.get_pdf_set ( pdf_set)
Return the MadGraph PDF setting for a strongly-typed preset.

Definition at line 37 of file MadGraphPDFSettings.py.

37def get_pdf_set(pdf_set):
38 """Return the MadGraph PDF setting for a strongly-typed preset."""
39 if not isinstance(pdf_set, MadGraphPDFSets):
40 raise TypeError(
41 f"pdf_set must be a MadGraphPDFSets value, got {type(pdf_set).__name__}."
42 )
43 return pdf_set.get_pdf_set_from_enum()