CustomPdf

class madspace.CustomPdf(*args, **kwargs)

Bases: pybind11_object

A user-supplied parton density, loaded as a UMAMI library.

Passed in place of a PdfGrid. The library receives the momentum fraction, the factorization scale, the parton PDG id and the beam index. It returns \(x f(x, q)\) under UMAMI_OUT_PDF.

Overloaded function.

  1. __init__(self: madspace._madspace_py.CustomPdf, function_index: typing.SupportsInt) -> None

Parameters:

function_index – Index of the loaded library in the context.

  1. __init__(self: madspace._madspace_py.CustomPdf, function_api: madspace._madspace_py.MatrixElementApi) -> None

Parameters:

function_api – The loaded library.

property function_index

Index of the loaded library in the context.