villano-lab / nrCascadeSim

calculating the NR spectrum resulting from neutron-capture cascades.
MIT License
0 stars 1 forks source link

Allow user input for stopping power #110

Open nuclearGoblin opened 1 year ago

nuclearGoblin commented 1 year ago

I am submitting a feature request.

The feature I am requesting is for: realizeCascades

I am requesting: A completely new feature

Ideas for implementation: I have implemented some basic aspects of this on the branch PRD-Review. The implementation should be simple enough for a constant stopping power -- make s2 a global variable that is set in realizeCascades.cpp with a provided default but allowing user input.

Other Information: For some reason, declaring but not defining the s2 variable in cascadeProd.cpp causes a considerable increase in run time; although the program does still run (with -n1), the time is impractical for even just 10 events -- not sure why this is.