Add the possibility to load RML files using restRoot
It would be interesting to automatically load the class definitions found inside a RML file directly using restRoot.
It could just create an instance md_name for each object found at the RML.
So that we could do restRoot config.rml
Shall it load only metadata from TRestRun section?
I was thinking more on a RML file as the following one.
https://github.com/rest-for-physics/axionlib/blob/mcpl_optics/pipeline/optics/setups.rml
where I have several definitions that I could load at once in a restRoot session.
So, that I would do restRoot setups.rml, and then I get 3 instances, for example, md_mcpl, md_mcpl2 and md_mcpl3 ready to use.
I was thinking about just parsing the file with a method that returns a std::pair with the ClassName and name.
https://github.com/rest-for-physics/framework/commit/ba941ef939de0e8cb6d39c8be01c04e731aa87c3
Then, just Process it in restRoot