celeritas icon indicating copy to clipboard operation
celeritas copied to clipboard

Replace SetupOptions with `inp::FrameworkInput`

Open sethrj opened this issue 2 months ago • 0 comments

The parameter setup that's evolved in accel is fragile and half-duplicated in several other places in the code. We want migrate to using the inp data structures.

UI integration:

  • [ ] Add G4UI wrapper class that stores values into a JSON object (refactoring SetupOptionMessenger as needed)
  • [ ] Add JSON converters for the key celeritas configuration classes (system, scoring, control)

Input integration:

  • [ ] Have SetOptions convert immediately to inp, have SharedParams take FrameworkInput (and for backward compatibility, leave setupoptions)
  • [ ] Add a SetInput method to IntegrationBase
  • [ ] At initialize, apply UI json options to stored input, then reset UI options

sethrj avatar Oct 10 '25 15:10 sethrj