TF-PWA
TF-PWA is a generic software package intended for Partial Wave Analysis (PWA). It can be connected with zfit,
currently by providing a loss function that can be minimized by a zfit minimizer.
Import the module with:
import zfit_physics.tfpwa as ztfpwa
This will enable that FCN can be used as a loss function in zfit minimizers as
minimizer.minimize(loss=fcn)
More explicitly, the loss function can be created with
nll = ztfpwa.loss.nll_from_fcn(fcn)
which optionally takes already created ZfitParameter as arguments.
Variables
-
zfit_physics.tfpwa.variables.params_from_fcn(fcn)[source]
Get zfit.Parameter objects from a tf_pwa.FCN.
- Parameters:
fcn (FCN) – A tf_pwa.FCN
- Return type:
HashableList[Parameter]
- Returns:
list of zfit.Parameter
Loss
-
zfit_physics.tfpwa.loss.nll_from_fcn(fcn, *, params=None)[source]
Create a zfit loss from a tf_pwa FCN.
- Parameters:
fcn (FCN) – A tf_pwa.FCN
params (Union[ZfitParameter, Iterable[ZfitParameter], None]) – list of zfit.Parameter, optional
Parameters to use in the loss. If None, all trainable parameters in the FCN are used.
- Returns:
zfit.loss.SimpleLoss