libpappsomspp
Library for mass spectrometry
|
#include <precision.h>
Static Public Member Functions | |
static PrecisionPtr | fromString (const QString &str) |
get a precision pointer from a string More... | |
static PrecisionPtr | getDaltonInstance (pappso_double value) |
get a Dalton precision pointer More... | |
static PrecisionPtr | getPpmInstance (pappso_double value) |
get a ppm precision pointer More... | |
static PrecisionPtr | getResInstance (pappso_double value) |
get a resolution precision pointer More... | |
static PrecisionPtr | getPrecisionPtrFractionInstance (PrecisionPtr origin, double fraction) |
get the fraction of an existing precision pointer More... | |
static PrecisionPtr | getPrecisionPtrInstance (PrecisionUnit unit, double value) |
get a precision pointer instance More... | |
Private Types | |
using | MapDaltonPrecision = std::map< pappso_double, DaltonPrecision * > |
using | MapPpmPrecision = std::map< pappso_double, PpmPrecision * > |
using | MapResPrecision = std::map< pappso_double, ResPrecision * > |
Static Private Attributes | |
static MapDaltonPrecision | m_mapDalton |
static MapPpmPrecision | m_mapPpm |
static MapResPrecision | m_mapRes |
Definition at line 126 of file precision.h.
|
private |
Definition at line 128 of file precision.h.
|
private |
Definition at line 129 of file precision.h.
|
private |
Definition at line 130 of file precision.h.
|
static |
get a precision pointer from a string
str | is of the form : "nominal_value unit", example : "0.02 dalton" |
Definition at line 72 of file precision.cpp.
References getDaltonInstance(), getPpmInstance(), and getResInstance().
Referenced by pappso::FilterChargeDeconvolution::buildFilterFromString(), pappso::FilterComplementIonEnhancer::buildFilterFromString(), and pappso::FilterMzExclusion::buildFilterFromString().
|
static |
get a Dalton precision pointer
value | the precision value in dalton |
Definition at line 130 of file precision.cpp.
References m_mapDalton.
Referenced by pappso::PrecisionWidget::PrecisionWidget(), fromString(), pappso::AaModification::getInstanceXtandemMod(), getPrecisionPtrInstance(), pappso::XtandemSpectrumProcess::process(), pappso::PrecisionWidget::setDaltonValueChanged(), and pappso::MzIntegrationParams::setPrecision().
|
static |
get a ppm precision pointer
value | the precision value in ppm |
Definition at line 150 of file precision.cpp.
References m_mapPpm.
Referenced by pappso::MzIntegrationParams::MzIntegrationParams(), pappso::PrecisionWidget::PrecisionWidget(), pappso::MassSpectrum::equals(), fromString(), getPrecisionPtrInstance(), pappso::MzIntegrationParams::operator=(), pappso::MzIntegrationParams::reset(), and pappso::PrecisionWidget::setPpmValueChanged().
|
static |
get the fraction of an existing precision pointer
origin | the original precision pointer |
fraction | the fraction to apply on the original precision |
Definition at line 203 of file precision.cpp.
References pappso::PrecisionBase::getNominal(), getPrecisionPtrInstance(), and pappso::PrecisionBase::unit().
Referenced by pappso::FilterChargeDeconvolution::FilterChargeDeconvolution(), pappso::PsmFeatures::PsmFeatures(), and pappso::FilterChargeDeconvolution::buildFilterFromString().
|
static |
get a precision pointer instance
unit | the precision unit |
value | the precision value |
Definition at line 214 of file precision.cpp.
References pappso::dalton, getDaltonInstance(), getPpmInstance(), getResInstance(), pappso::mz, pappso::none, pappso::ppm, and pappso::res.
Referenced by pappso::XtandemPresetReader::getMs2FiltersOptions(), and getPrecisionPtrFractionInstance().
|
static |
get a resolution precision pointer
value | the precision value in resolution |
Definition at line 177 of file precision.cpp.
References m_mapRes.
Referenced by pappso::PrecisionWidget::PrecisionWidget(), fromString(), getPrecisionPtrInstance(), and pappso::PrecisionWidget::setResValueChanged().
|
staticprivate |
Definition at line 133 of file precision.h.
Referenced by getDaltonInstance().
|
staticprivate |
Definition at line 134 of file precision.h.
Referenced by getPpmInstance().
|
staticprivate |
Definition at line 135 of file precision.h.
Referenced by getResInstance().