Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible choice of quarks #11

Open
KajetanNiewczas opened this issue Dec 15, 2017 · 1 comment
Open

Impossible choice of quarks #11

KajetanNiewczas opened this issue Dec 15, 2017 · 1 comment

Comments

@KajetanNiewczas
Copy link
Member

Impossible choice of quark 3
Implsible flavour transition

The problem I found while running only NC DIS, especially on smaller targets. I thought it was irreproducible, but I managed to get 3 times in a row for deuterium (with free nucleon target).

We have already agreed that it is impossible (by construction) for the code to get to this point.

I attach the parameters of the simulation (I think the number of real events can be reduced :) ).
nuwro.root.par.txt

@karuboniru
Copy link
Contributor

karuboniru commented Oct 12, 2023

I got some report when people doing some production for JUNO NC sample. The reproduction was on NuWro 19.02.2. Same input can not reproduce the issue on lastest git version (is this due to any effort of fixing this or from just some random sampling in phase space has changed?)

But anyway, within NuWro 19.02.2, I tried to traceback the event generation process, it seems to be due to a nan is returned at cr_sec_nc_nu_n_d (E=E@entry=940.95209946452928, W=W@entry=1620.6293325514189, nu=nu@entry=929.19219500084807, m=m@entry=0)

double kwark_d = cr_sec_nc_nu_p_d(E,W,nu,m);

The nan will trace back to sigma_xy_nc_nu_n_d(E=941., xx=0.00, yy=0.988, m=0.00) = -nan which return nan.

return sigma_xy_nc_nu_n_d (E, xx, yy, m) * W / (M12 * E * nu) //jakobian

I think the issue is the xx here, which is calculated at

double xx = (M2 - W * W + 2 * M12 * nu) / (2 * M12 * nu);

Might be just a coincindene that gdb suggested that the formula do equal to zero

>>> p M2 - W * W + 2 * M12 * nu
$11 = 0

I checked and saw a lot of /xx thoughout the chain and the fact that xx can equal to zero is a problem. And in case M2 - W * W + 2 * M12 * nu can reach 0 by pure chance, I'd say this can explain why this kind of error is hard to reproduce. In this case should we investgate why xx = 0 or do we handle the situation when xx = 0


Tried to plot sigma_xy_nc_nu_n_d as a function of xx and the result suggest that the xx = 0 limit should be 0
截图 2023-10-15 16-14-03

karuboniru added a commit to karuboniru/nuwro that referenced this issue Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants