Copied from libTPythia8, TPythia is taken from root.