jiangyi15 / tf-pwa

Partial Wave Analysis using TensorFlow.
MIT License
27 stars 14 forks source link

FlatteGen and Flatte2 model #132

Closed jiangyi15 closed 12 months ago

jiangyi15 commented 12 months ago

Two new model for Flatte.

FlatteGen

$$ R(m) = \frac{1}{m_0^2 - m^2 - i m0 [\sum{i} g_i \frac{q_i}{m} \times \frac{m0}{|q{i0}|} \times \frac{|q_i|^{2li}}{|q{i0}|^{2li}} B{l_i}'^2(|qi|,|q{i0}|,d)]} $$

Flatte2

$$ R(m) = \frac{1}{m_0^2 - m^2 - i m0 [\sum{i} \color{red}g_i^2\color{black} \frac{q_i}{m} \times \frac{m0}{|q{i0}|} \times \frac{|q_i|^{2li}}{|q{i0}|^{2li}} B{l_i}'^2(|qi|,|q{i0}|,d)]} $$

More options, has_bprime=False to remove $B_{l_i}'^2(|qi|,|q{i0}|,d)$. cut_phsp=True to set $qi = 0$ when $(m^2-(m{i,1}+m{i,2})^2)(m^2-(m{i,1}-m_{i,2})^2) < 0$ no_q0 to remove q0 parts. no_m0 to set the $im_0$ to $i$ in the width parts.

New plot options, add_chi2=True to add chi2 in pull. And some rewrite of plot.

codecov[bot] commented 12 months ago

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (9d9c099) 77.22% compared to head (a37bb79) 77.30%.

Files Patch % Lines
tf_pwa/config_loader/plot.py 81.48% 3 Missing and 2 partials :warning:
tf_pwa/amp/core.py 33.33% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #132 +/- ## ========================================== + Coverage 77.22% 77.30% +0.07% ========================================== Files 114 114 Lines 16735 16815 +80 Branches 3136 3152 +16 ========================================== + Hits 12924 12999 +75 - Misses 3101 3103 +2 - Partials 710 713 +3 ``` | [Flag](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/132/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/132/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | `77.30% <92.22%> (+0.07%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.