-
Notifications
You must be signed in to change notification settings - Fork 11
Add efficient SDME Random Initialization and Random Fit Summary Reporting in fit.cc #366
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
Conversation
- Introduced new library files randomized_sdme.cc/.h for random randomization of spin-density matrix elements (SDMEs) from helicity amplitudes sampled from uniform/gaussian distribution by choice, following Mathieu et al. (PRD 97, 094003). - Modified fit.cc to initialize SDME parameters from the randomized generator, with assert check for parameter count (must be 9) and reminder about SDME output order.
- Introduced summarizeFits() to sort fit results by log-likelihood and print a formatted summary table to stdout and fit_ranking.txt. - Table includes: index, success flag, fit status, eMatrix status, and log-likelihood with aligned columns. - Added overall success rate (count and percentage) printed to terminal. - Fit results are stored in vector<tuple<int,bool,int,int,double>> and filled during the fit loop.
|
Test status for this pull request: SUCCESS Summary: /work/halld/pull_request_test/halld_sim^hao_randomized_sdme/tests/summary.txt Build log: /work/halld/pull_request_test/halld_sim^hao_randomized_sdme/make_hao_randomized_sdme.log |
…six-helicity normalization and parity-averaged (λγ=±1) bilinears, replacing +1 photon helicity only version. Improves consistency with Schilling constraints.
|
Test status for this pull request: SUCCESS Summary: /work/halld/pull_request_test/halld_sim^hao_randomized_sdme/tests/summary.txt Build log: /work/halld/pull_request_test/halld_sim^hao_randomized_sdme/make_hao_randomized_sdme.log |
…t in the .cc file. No change in the code
|
The new commit 1b2520 updates the implementation to use both photon helicities (λγ = ±1) in parity-averaged bilinears form, replacing the earlier version that relied solely on the +1 photon helicity since the creation of this pull request. The updated build has been tested on the kπ data with 10 random fits (helicity amplitude randomized by gaussian distribution by default):
The randomized helicity amplitudes look the same, since there is no change to the sampling method. The pairplot of the resulted SDMEs look a bit different: This change also improves consistency with the Schilling constraints (table 2 in Nucl. Phys. B15, 397 (1970)): |
jrstevenjlab
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for implementing this, which I hope is useful for others fitting vector SDMEs.
There are still a couple differences between the constraints from the Schilling paper and the randomly generated SDMEs, but we can work those out separately. Could you provide a link to the code used to produce those constraint plots so others could look at it and potentially use as well?



This pull request introduces two functionalities to improve the random fitting workflow:
src/libraries/UTILITIES/randomized_sdme.cc/.hfor randomized initialization of spin-density matrix elements (SDMEs) in upper vertex photoproduction of the vector mesons.src/libraries/UTILITIES/randomized_sdme.hand Hao's presentation on Amplitude Analysis Meeting, July 7, 2025.fit.ccto initialize SDME parameters at runtime.summarizeFits()to sort fit results by log-likelihood.fit_ranking.txt.