Getting RHadrons Simulation working in ComponentAccumulator-based jobs
There are two parts to this:
- Ensure that the legacy and CA-based config jobs produce the same output. Implemented in this merge request. (Fixed a bug in the legacy configuration version.)
- Build configuration inputs (text files) created by running (legacy) Generator configuration and MadGraph itself. Not part of this merge request (currently copying these inputs into the CA job run directory as a workaround).
This merge request implements the special configuration hooks for RHadrons
simulation. It also adds some C++ code to ensure sensible ordering of G4PhysicsOption initialization at run-time. Previously it was entirely dependent on the order of the corresponding AlgTools in a ToolHandleArray. Now some logic is applied so that newly added particles do not miss having some G4Processes added.
In order to get things working the ART test job copies some text file inputs into the run directory of the CA-based job. In a future merge request I will add a way of creating these from scratch. This requires either finding a way to wrap the legacy generator configuration or re-writing it using ComponentAccumulator.
Edited by John Derek Chapman