/// /// print out a list of modification that can be used in OMSSA /// void COMSSABase::PrintMods(CRef <CMSModSpecSet> Modset) { typedef multimap <string, int> TModMap; TModMap ModMap; int i; for(i = 0; i < eMSMod_max; i++) { if(Modset->GetModMass(i) != 0.0) ModMap.insert(TModMap::value_type(Modset->GetModName(i), i)); } cout << " # : Name" << endl; ITERATE (TModMap, iModMap, ModMap) { cout << setw(3) << iModMap->second << ": " << iModMap->first << endl; }