69 template <
class MetaContainer>
104 template <
class SpectrumType>
124 double tmp = s.
getRT();
141 template <
class SpectrumType>
176 template <
class SpectrumType>
210 template <
class SpectrumType>
245 template <
class SpectrumType>
275 template <
class SpectrumType>
308 template <
class SpectrumType>
356 template <
class SpectrumType>
378 if (!(mz_left_ <= it->getMZ() && it->getMZ() <=
mz_right_))
404 template <
class SpectrumType>
425 Int tmp = it->getCharge();
448 template <
class PeakType>
485 template <
class PeakType>
521 template <
class SpectrumType>
544 bool hasCollisionEnergy =
false;
547 if (it->metaValueExists(
"collision energy"))
549 hasCollisionEnergy =
true;
550 double cE = it->getMetaValue(
"collision energy");
556 if (!hasCollisionEnergy)
return false;
573 template <
class SpectrumType>
599 const double isolationWindowSize = it->getIsolationWindowUpperOffset() + it->getIsolationWindowLowerOffset();
618 template <
class SpectrumType>
644 if (it->getIsolationWindowLowerOffset() == 0 || it->getIsolationWindowUpperOffset() == 0)
646 OPENMS_LOG_WARN <<
"IsInIsolationWindow(): Lower/Upper Offset for Precursor Isolation Window is Zero! " <<
647 "Filtering will probably be too strict (unless you hit the exact precursor m/z)!" << std::endl;
649 const double lower_mz = it->getMZ() - it->getIsolationWindowLowerOffset();
650 std::vector<double>::const_iterator it_mz = std::lower_bound(
vec_mz_.begin(),
vec_mz_.end(), lower_mz);
653 const double upper_mz = it->getMZ() + it->getIsolationWindowUpperOffset();
654 isIn |= (*it_mz <= upper_mz);
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged.
Definition: LogStream.h:444
Predicate that determines if a spectrum was generated using any activation method given in the constr...
Definition: RangeUtils.h:310
HasActivationMethod(const StringList &methods, bool reverse=false)
Constructor.
Definition: RangeUtils.h:319
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:324
StringList methods_
Definition: RangeUtils.h:343
bool reverse_
Definition: RangeUtils.h:344
Predicate that determines if a spectrum has a certain precursor charge as given in the constructor li...
Definition: RangeUtils.h:406
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:420
HasPrecursorCharge(const IntList &charges, bool reverse=false)
Constructor.
Definition: RangeUtils.h:415
IntList charges_
Definition: RangeUtils.h:434
bool reverse_
Definition: RangeUtils.h:435
Predicate that determines if a spectrum has a certain scan mode.
Definition: RangeUtils.h:178
Int mode_
Definition: RangeUtils.h:199
HasScanMode(Int mode, bool reverse=false)
Constructor.
Definition: RangeUtils.h:187
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:192
bool reverse_
Definition: RangeUtils.h:200
Predicate that determines if a spectrum has a certain scan polarity.
Definition: RangeUtils.h:212
HasScanPolarity(Int polarity, bool reverse=false)
Constructor.
Definition: RangeUtils.h:221
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:226
Int polarity_
Definition: RangeUtils.h:233
bool reverse_
Definition: RangeUtils.h:234
Predicate that determines if a peak lies inside/outside a specific intensity range.
Definition: RangeUtils.h:487
double max_
Definition: RangeUtils.h:510
InIntensityRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:496
double min_
Definition: RangeUtils.h:510
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:502
bool reverse_
Definition: RangeUtils.h:511
Predicate that determines if a spectrum lies inside/outside a specific MS level set.
Definition: RangeUtils.h:143
InMSLevelRange(const IntList &levels, bool reverse=false)
Constructor.
Definition: RangeUtils.h:152
IntList levels_
Definition: RangeUtils.h:165
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:157
bool reverse_
Definition: RangeUtils.h:166
Predicate that determines if a peak lies inside/outside a specific m/z range.
Definition: RangeUtils.h:450
double max_
Definition: RangeUtils.h:474
InMzRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:460
double min_
Definition: RangeUtils.h:474
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:466
bool reverse_
Definition: RangeUtils.h:475
Predicate that determines if a spectrum's precursor is within a certain m/z range.
Definition: RangeUtils.h:358
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:373
double mz_right_
Definition: RangeUtils.h:391
InPrecursorMZRange(const double &mz_left, const double &mz_right, bool reverse=false)
Constructor.
Definition: RangeUtils.h:367
double mz_left_
Definition: RangeUtils.h:390
bool reverse_
Definition: RangeUtils.h:392
Predicate that determines if a spectrum lies inside/outside a specific retention time range.
Definition: RangeUtils.h:106
double max_
Definition: RangeUtils.h:130
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:122
InRTRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:116
double min_
Definition: RangeUtils.h:130
bool reverse_
Definition: RangeUtils.h:131
ScanMode getScanMode() const
returns the scan mode
IonSource::Polarity getPolarity() const
returns the polarity
bool getZoomScan() const
return if this scan is a zoom (enhanced resolution) scan
Predicate that determines if a spectrum is empty.
Definition: RangeUtils.h:247
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:258
IsEmptySpectrum(bool reverse=false)
Constructor.
Definition: RangeUtils.h:254
bool reverse_
Definition: RangeUtils.h:265
Predicate that determines if an MSn spectrum was generated with a collision energy in the given range...
Definition: RangeUtils.h:523
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:538
IsInCollisionEnergyRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:532
double min_energy_
Definition: RangeUtils.h:563
double max_energy_
Definition: RangeUtils.h:563
bool reverse_
Definition: RangeUtils.h:564
Predicate that determines if the width of the isolation window of an MSn spectrum is in the given ran...
Definition: RangeUtils.h:575
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:591
double max_size_
Definition: RangeUtils.h:608
double min_size_
Definition: RangeUtils.h:608
IsInIsolationWindowSizeRange(double min_size, double max_size, bool reverse=false)
Constructor.
Definition: RangeUtils.h:585
bool reverse_
Definition: RangeUtils.h:609
Predicate that determines if the isolation window covers ANY of the given m/z values.
Definition: RangeUtils.h:620
IsInIsolationWindow(std::vector< double > vec_mz, bool reverse=false)
Constructor.
Definition: RangeUtils.h:629
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:636
std::vector< double > vec_mz_
Definition: RangeUtils.h:663
bool reverse_
Definition: RangeUtils.h:664
Predicate that determines if a spectrum is a zoom (enhanced resolution) spectrum.
Definition: RangeUtils.h:277
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:289
IsZoomSpectrum(bool reverse=false)
Constructor.
Definition: RangeUtils.h:285
bool reverse_
Definition: RangeUtils.h:296
static bool contains(const std::vector< T > &container, const E &elem)
Checks whether the element elem is contained in the given container.
Definition: ListUtils.h:137
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
UInt getMSLevel() const
Returns the MS level.
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:29
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak2D.h:154
IntensityType getIntensity() const
Definition: Peak2D.h:142
Precursor meta information.
Definition: Precursor.h:35
static const std::string NamesOfActivationMethod[SIZE_OF_ACTIVATIONMETHOD]
Names of activation methods.
Definition: Precursor.h:82
ActivationMethod
Method of activation.
Definition: Precursor.h:59
const InstrumentSettings & getInstrumentSettings() const
returns a const reference to the instrument settings of the current spectrum
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:72
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:29
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
static String & reverse(String &this_s)
Definition: StringUtilsSimple.h:330
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19