-
Notifications
You must be signed in to change notification settings - Fork 93
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
Incorrect xsec_max in RES importance sampling #282
Comments
Thanks for the report, Chen. This is somewhat old code, so we will need to refresh our memory about how the importance sampliing envelope was constructed and investigate further. We will try to do this asap. In the mean time, if you are concerned that the actual differential cross-section overshoots the importance sampling envelope and, therefore, the generation of kinematics distorts the inputs cross-section modek, you can use the safety check implemented in KineGeneratorWithCache::AssertXSecLimits() - See https://github.com/GENIE-MC/Generator/blob/25df35f9ca97b6eeab79308b6b49974ffb01d4ef/src/Physics/Common/KineGeneratorWithCache.cxx. |
Follow up by Chen Xia: Following your suggestions, we set MaxXSec-DiffTolerance = 0.1 and tested with the following command using GENIE R-3_04_00:
This test was passed. However, we found an issue with the test code implemented in RESKinematicGenerator.cxx, which is at Line 215:
This comparison between We have tried to correct this line as follows:
where the Jacobian J is inserted. In this case, the test was failed even if setting a large tolerance of MaxXSec-DiffTolerance = 100. We would greatly appreciate any further guidance or assistance you can provide regarding this matter. |
In the importance sampling of RESKinematicsGenerator, the maximal cross section
xsec_max
is being passed to the envelope function in the following line:Generator/src/Physics/Resonance/EventGen/RESKinematicsGenerator.cxx
Line 187 in 25df35f
The envelope represents a distribution of the transformed kinematic variable$Q_D^2$ . However, the variable $\frac{d\sigma^{\max}}{dWdQ^2}$ , with original $Q^2$ ,
xsec_max
is calculated as the maximal differential cross section,Generator/src/Physics/Resonance/EventGen/RESKinematicsGenerator.cxx
Line 104 in 25df35f
which has incorrect dimension and numerically may be much less than the maximal differential cross section in$Q_D^2$ , $\frac{d\sigma^{\max}}{dWdQ_D^2}$ , as expected by the envelope.
The phase space
kPSWQD2fE
instead ofkPSWQ2fE
should be used inComputeMaxXSec
,Generator/src/Physics/Resonance/EventGen/RESKinematicsGenerator.cxx
Line 370 in 25df35f
Could someone help investigate this issue?
The text was updated successfully, but these errors were encountered: