I would like to create several RML files that share a common <globals section. However, when I introduce something like <include file="globals.xml">, where globals.xml contains just <globals> ... </globals> definition it seems that it is not working.
From TRestMetadata documentation it looks as if this should be allowed.
Yes. In the current implementation, “include”, “for”, “if”, “${VAR}” is expanded after “global” expansion. But I think you can still use include definition in the “globals” section:
<globals file="globals.xml"/>
You can place the “include” for this TRestRun section inside TRestManager section.
I see. It seems only the child sections of the “global” section is extracted into the TRestManager section, and this process is before “include” expansion.
I have added a quick modification to TRestMetadata to support global section include.