Skip to content

Conversation

@jase231
Copy link

@jase231 jase231 commented Sep 17, 2025

Hello! I am trying to integrate the tool described here into the repository.

I am not entirely sure how to integrate my build process into the central Makefile found in the repository root. I have tried patterning my makefile off the environment variables used by some of the other programs' makefiles (e.g. MakeDSelector
/Makefile), but I am not entirely confident they will work. The original makefile, from my standalone repo, can be found here for reference.

Please let me know if anything needs changing!

Best,
Jake Serwe

@aaust
Copy link
Contributor

aaust commented Sep 17, 2025

Hi Jake, thank you for this pull request.
The make file successfully compiles the program. However, it should also copy the executable to $(BMS_OSNAME)/bin, which is in the PATH for our standard environment. You can look at the tree_to_amptools Makefile for inspiration.
As a final step, you should add lines for chisq_hypothesis_comparison into the central Makefile and make_all.sh.

@jase231
Copy link
Author

jase231 commented Sep 20, 2025

Hi Dr. Austregesilo,
I have made the requested changes. I also modified my Makefile to further reflect the patterns in tree_to_amptools's Makefile (the env target, producing object files in the bin dir, install being the default target).

@aaust
Copy link
Contributor

aaust commented Sep 20, 2025

@jase231 Thanks, that looks good. The Makefile complained about the separators, but I just replaced the spaces with tab characters and it works now. I will try to test it early next week.

@jase231
Copy link
Author

jase231 commented Sep 20, 2025

Sorry about that! Must've had my IDE misconfigured.

@aaust
Copy link
Contributor

aaust commented Sep 22, 2025

I made a simple example with pi+pi- and K+K- events and successfully suppressed misidentified kaons:
test_pippim_KK_preserve

I tested both modes for preserve_combos, but I would prefer to set the default to true as they are needed for proper accidental subtraction. Others may weight in.

And please update the Installation part of the README file.

@jase231
Copy link
Author

jase231 commented Sep 25, 2025

Should be complete. Let me know if I should be more thorough in the installation instructions; I'm not familiar with the build process the average user at GlueX would be using.

@aaust
Copy link
Contributor

aaust commented Sep 29, 2025

Thanks, that's enough

@aaust aaust merged commit 392c6a3 into JeffersonLab:master Sep 29, 2025
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

Successfully merging this pull request may close these issues.

2 participants