Make hltmonitoringJson optional in xAODConfigTool
It was noted by @khamano that xAODConfigTool
crashes on data22_900GeV.00423027.physics_Main.merge.AOD.f1216_m2093
in analysis base due to a present but zero-sized monitoring JSON collection in the AOD.
There is a mistake in the logic of the xAODConfigTool
(but not the alternate xAODConfigSvc
) which classes this as an error, this is a mistake as we do not quite yet write the monitoring JSON to data AODs.
The zero-sized collection is coming here a product of the AOD-MERGE stage.
Altering the logic of the xAODConfigTool
to not crash also on an empty-collection.
Note: MR opened via GitLab UI