Use GEnergies class instead of std::vector<GEnergy>