-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from zfit/tfpwacomp
enh: add tf-pwa connection
- Loading branch information
Showing
26 changed files
with
1,440 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,5 @@ venv.bak/ | |
# mypy | ||
.mypy_cache/ | ||
/.idea/sonarlint/* | ||
/tests/tfpwa/data/ | ||
/src/zfit_physics/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
=== | ||
PDFs | ||
======================= | ||
|
||
.. automodule:: zfit_physics.pdf | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
TF-PWA | ||
======================= | ||
|
||
TFPWA 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: | ||
|
||
.. code-block:: python | ||
import zfit_physics.tfpwa as ztfpwa | ||
This will enable that :py:function:~`tfpwa.model.FCN` can be used as a loss function in zfit minimizers as | ||
|
||
.. code-block:: python | ||
minimizer.minimize(loss=fcn) | ||
More explicitly, the loss function can be created with | ||
|
||
.. code-block:: python | ||
nll = ztfpwa.loss.nll_from_fcn(fcn) | ||
which optionally takes already created :py:class:~`zfit.core.interfaces.ZfitParameter` as arguments. | ||
|
||
|
||
Variables | ||
++++++++++++ | ||
|
||
|
||
.. automodule:: zfit_physics.tfpwa.variables | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Loss | ||
++++++++++++ | ||
|
||
.. automodule:: zfit_physics.tfpwa.loss | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.