/// <summary> /// A product is the individual neutral fragment from an MS dissociation. A fragmentation product here contains one of the two termini (N- or C-). /// The ProductType describes where along the backbone the fragmentaiton occurred (e.g. b-, y-, c-, zdot-). The neutral loss mass (if any) that /// occurred from a mod on the fragment is listed as a mass. Finally the neutral mass of the whole fragment is provided. /// </summary> public Product(ProductType productType, NeutralTerminusFragment terminusFragment, double neutralLoss) { TerminusFragment = terminusFragment; ProductType = productType; NeutralLoss = neutralLoss; NeutralMass = DissociationTypeCollection.ProductTypeSpecificFragmentNeutralMass(terminusFragment.NeutralMass, productType) - neutralLoss; }
public override bool Equals(object obj) { NeutralTerminusFragment other = (NeutralTerminusFragment)obj; return(this.Terminus == other.Terminus && this.FragmentNumber == other.FragmentNumber && this.AminoAcidPosition == other.AminoAcidPosition && this.NeutralMass == other.NeutralMass); }