slophep.Predictions.FormFactorBase

class slophep.Predictions.FormFactorBase.FormFactor(par: dict = None, scale: float = None)[source]

Bases: object

_fullsetter(params: dict, constants: dict)[source]

For usage with fluctuate - effectively alias of set_ff

Parameters:

params (dict)

property ffpar: dict

Form factor (floating) parameters, make sure to overwrite in derived classes

get_ff(q2: float) dict[source]

Calculate form factors at particular q2. To implement in derived class.

Parameters:

q2 (float)

Returns:

dictionary with FFs

Return type:

dict

property internalparams: dict

Internal parameters used in FF computation (e.g. alpha_s, quark/meson masses), where possible take from FormFactor.par, but things may differ if an implementation is taken from HAMMER so this is kept seperate

property name: str

Name of FF scheme

property par: dict

Dictionary of flavio parameters, defaults to flavio.default_parameters.get_central_all()

property params: list[str]

List of (floating) form factor parameters (the ones in ffpar), make sure to overwrite in derived classes

property scale: float

Renorm scale

set_ff(**kwargs)[source]

Set form factors - argument names should be as in FormFactor.params

set_ff_fromlist(params: list[float])[source]

Set form factors

Parameters:

params (list[float]) – Form factor parameters, in order as in FormFactor.params