MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / areaBeginConst

Method areaBeginConst

src/openms/source/KERNEL/MSExperiment.cpp:120–129  ·  view source on GitHub ↗

Returns a non-mutable area iterator for @p area

Source from the content-addressed store, hash-verified

118
119 /// Returns a non-mutable area iterator for @p area
120 MSExperiment::ConstAreaIterator MSExperiment::areaBeginConst(CoordinateType min_rt, CoordinateType max_rt, CoordinateType min_mz, CoordinateType max_mz, UInt ms_level) const
121 {
122 OPENMS_PRECONDITION(min_rt <= max_rt, "Swapped RT range boundaries!")
123 OPENMS_PRECONDITION(min_mz <= max_mz, "Swapped MZ range boundaries!")
124 OPENMS_PRECONDITION(this->isSorted(true), "Experiment is not sorted by RT and m/z! Using ConstAreaIterator will give invalid results!")
125 auto [min_im, max_im] = RangeMobility{}.getNonEmptyRange(); // a full range
126 auto area = ConstAreaIterator::Param(spectra_.begin(), RTBegin(min_rt), RTEnd(max_rt), ms_level);
127 area.lowMZ(min_mz).highMZ(max_mz).lowIM(min_im).highIM(max_im);
128 return ConstAreaIterator(area);
129 }
130
131 MSExperiment::ConstAreaIterator MSExperiment::areaBeginConst(const RangeManagerType& range, UInt ms_level) const
132 {

Callers 15

makeDataAsTopView_Method · 0.80
makeDataAsStick_Method · 0.80
paintAllIntensities_Method · 0.80
getProjectionMethod · 0.80
findHighestDataPointMethod · 0.80
extractXICsMethod · 0.80
findApexRTMethod · 0.80
main_Method · 0.80
filterByFoldChangeMethod · 0.80
runMethod · 0.80

Calls 3

isSortedMethod · 0.95
ParamClass · 0.50
beginMethod · 0.45

Tested by 2

START_SECTIONFunction · 0.64
START_SECTIONFunction · 0.64