34 double getMZ(
double neutral_mass)
const;
Definition: AdductInfo.h:17
double getMassShift(bool use_avg_mass=false) const
returns the mass shift caused by this adduct if charges are compensated with protons
AdductInfo(const String &name, const EmpiricalFormula &adduct, int charge, UInt mol_multiplier=1)
double mass_
computed from ef_.getMonoWeight(), but stored explicitly for efficiency
Definition: AdductInfo.h:67
EmpiricalFormula ef_
Sum formula for the actual adduct e.g. 'H' in 2M+H;+1.
Definition: AdductInfo.h:66
const EmpiricalFormula & getEmpiricalFormula() const
sum formula of adduct itself. Useful for comparison with feature adduct annotation
String name_
members
Definition: AdductInfo.h:65
UInt getMolMultiplier() const
get molecular multiplier
bool operator==(const AdductInfo &other) const
equality operator
double getNeutralMass(double observed_mz) const
returns the neutral mass of the small molecule without adduct (creates monomer from nmer,...
int getCharge() const
get charge of adduct
static AdductInfo parseAdductString(const String &adduct)
UInt mol_multiplier_
Mol multiplier, e.g. 2 in 2M+H;+1.
Definition: AdductInfo.h:69
int charge_
negative or positive charge; must not be 0
Definition: AdductInfo.h:68
const String & getName() const
original string used for parsing
bool isCompatible(const EmpiricalFormula &db_entry) const
double getMZ(double neutral_mass) const
returns the m/z of the small molecule with neutral mass neutral_mass if the adduct is added (given ma...
A more convenient string class.
Definition: String.h:34
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22