public static ChemicalFormula GetIonCap(this FragmentTypes fragmentType)
{
if (fragmentType == FragmentTypes.None || (fragmentType & (fragmentType - 1)) != FragmentTypes.None)
{
throw new ArgumentException("Fragment Type must be a single value to determine the ion cap", "fragmentType");
}
return FragmentIonCaps[fragmentType];
}