214 void store(ofstream& os);
221 void load(ifstream& is);
Basic definitions of fragment ions occurring in the mass spectra.
eFragmentIonType
The types of supported fragment ions.
Definition: cFragmentIons.h:944
A structure representing a peak in a mass spectrum.
Definition: cPeak.h:22
double mzratio
MZ ratio.
Definition: cPeak.h:42
int compoundid
Identifier of a compound.
Definition: cPeak.h:144
double matchedmz
m/z ratio when the peak was matched with an experimental peak.
Definition: cPeak.h:72
int groupid
Identifier of a group of peaks.
Definition: cPeak.h:138
double absoluteintensity
Absolute intensity.
Definition: cPeak.h:54
void load(ifstream &is)
Load the structure from an input stream.
Definition: cPeak.cpp:114
bool removeme
True if the peak should be removed.
Definition: cPeak.h:156
cPeak()
The constructor.
Definition: cPeak.cpp:4
cSummaryFormula formula
Summary formlula.
Definition: cPeak.h:27
void clear()
Clear the structure.
Definition: cPeak.cpp:47
int neutrallosstype
Neutral loss type corresponding to the peak.
Definition: cPeak.h:102
int isotopeformulaid
Id of isotope summary formula.
Definition: cPeak.h:37
int matchedid
An order of an experimental peak which has been matched with a theoretical peak.
Definition: cPeak.h:114
bool isotope
True if the peak is an isotope peak.
Definition: cPeak.h:150
int charge
A charge of the peak.
Definition: cPeak.h:120
double relativeintensity
Relative ntensity.
Definition: cPeak.h:48
double matchedabsoluteintensity
Absolute intensity when the peak was matched with an experimental peak.
Definition: cPeak.h:84
string description
Description of a peak.
Definition: cPeak.h:60
int orderid
An order id of a peak in a peaklist.
Definition: cPeak.h:174
double matchedppm
An error in ppm when the peak was matched with an experimental peak.
Definition: cPeak.h:90
bool equals(cPeak &secondpeak)
Check if the object equals to another object.
Definition: cPeak.cpp:144
int rotationid
Id of a rotation of a cyclic peptide or a permutation of a branched peptide which has been matched.
Definition: cPeak.h:126
bool empty()
Test whether the structure is empty.
Definition: cPeak.cpp:78
bool decoy
True if the peak corresponds to a decoy compound.
Definition: cPeak.h:168
int descriptionid
Description id of a peak.
Definition: cPeak.h:66
cPeak & operator=(const cPeak &peak)
Overloaded operator=.
Definition: cPeak.cpp:14
eFragmentIonType iontype
Ion type corresponding to the peak.
Definition: cPeak.h:96
double matchedrelativeintensity
Relative intensity when the peak was matched with an experimental peak.
Definition: cPeak.h:78
bool scrambled
True if the peak corresponds to a scrambled fragment ion.
Definition: cPeak.h:162
int seriesid
An order of a peak in a series (e.g., B_5 in a B series).
Definition: cPeak.h:132
string isotopeformula
Isotope summary formula.
Definition: cPeak.h:32
int matched
Number of matches of an experimental peak (when the peak is compared to a theoretical spectrum).
Definition: cPeak.h:108
void store(ofstream &os)
Store the structure into an output stream.
Definition: cPeak.cpp:84