See for example the reply to this post. No need to load TRestG4Metadata to access TRestG4Event contents.
TRestG4Metadata
TRestG4Event