-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for included files #155
base: main
Are you sure you want to change the base?
Conversation
Did you mean to add another link? You are not pointing to a steering file but to a geometry description. |
Sorry, that's the wrong reference. |
This seems to partially overlap with #148 although it solves the issue in a different manner. In principle the recommended way to handle these includes is to run |
Just for completeness: We also (very) recently updated the documentation on this here: https://key4hep.github.io/key4hep-doc/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.html#automatic-conversion-of-marlin-xml-steering-files |
I understand. |
With these includes the only thing Marlin does is paste the contents? If so I think it would be fine to have something like that here if people need it, but it may not be as trivial; for example what if one converts the steering file from a different directory from the one where the main .xml is, are the paths in the includes resolved correctly? |
I think Marlin actually parses the included xmls (and in this way also walks include trees), and it also resolves all the Matching the full Marlin functionality here is probably quite a bit of work, which is why we opted for letting Marlin do the heavy lifting in the beginning. |
As discussed during todays Key4hep meeting we will merge #148 first to make a tag and a new Key4hep release and then pick this up later once we have sorted out some more of the details of the Marlin XML parsing. One open question that came up today as well was whether Marlin supports |
This is a simple patch for including part-files in the main steer file.
Unfortunately part-files are not xml compliant and should be included as raw ones.
An example of fragmented configuration is available at https://github.com/MuonColliderSoft/lcgeo/tree/master/MuColl/MuColl_v1