Vector<FragmentIon> bDoubleIons = new Vector<FragmentIon>();
double mass;
for (int i = 0; i < bIons.length; i++) {
// b-ion plus 'H' over a double charge
mass = (bIons[i].getMass() + hydrogenMass) / 2.0;
bDoubleIons.add(new FragmentIon(mass, ionType, i + 1));
}
return bDoubleIons;
}