enable fsr writing during HLT for MC
For data FSRs can first be written during sprucing, but for MC we have FSR compatible data formats earlier in the dataflow. This is to enable writing decoding keys and application options to the FSR of MC files during HLT1/2
To be validated with LHCbIntegrationTests!92
Quick summary of the changes:
- enable writing of fsr when options.simulation is true
- adjustments to the reading of fsr in lbexec so it works for merged as well as not merged file (the application options are moved to 'inputs' in the fsr of a merged file)
- ensure the entire fsr is read in, ie not only the 'top level information ' or everything under 'inputs' key
- add two small unit tests to ensure when keys/options are set to be written into the fsr they actually appear
Edited by Ellinor Eckstein