How to tell Moore which application to run?
Triggered by !2153 (comment 6731749) and !2307 (comment 6727170). At the moment run_moore does many things (at least Ht1 (CPU + MC for GPU), Hlt2, Sprucing), this leads in parts to a relatively complicated structure with many if statements. One idea would be refactor the use cases into separate functions and only let them share the basic functions. Control and data flow which are different for all use cases would be setup separately.
This could also address the issue that at the moment it is only implicitly defined what to run based on the line names (https://gitlab.cern.ch/lhcb/Moore/-/blob/master/Hlt/Moore/python/Moore/config.py#L703). But then we need the process
option in lbexec to actually distinguish between them (!2320 (merged)), as global binds are setup before run_moore is executed.