The object rootSystemG2 is an instance of the type RootSystem.
The source of this document is in WeylGroups.m2:1772:0.