95 template <
class MetaContainer>
130 template <
class SpectrumType>
142 InRTRange(
double min,
double max,
bool reverse =
false) :
150 double tmp = s.
getRT();
167 template <
class SpectrumType>
202 template <
class SpectrumType>
236 template <
class SpectrumType>
271 template <
class SpectrumType>
301 template <
class SpectrumType>
334 template <
class SpectrumType>
354 for (std::set<Precursor::ActivationMethod>::const_iterator it_a = it->getActivationMethods().begin();
355 it_a != it->getActivationMethods().end();
385 template <
class SpectrumType>
407 if (!(mz_left_ <= it->getMZ() && it->getMZ() <=
mz_right_))
433 template <
class SpectrumType>
454 Int tmp = it->getCharge();
477 template <
class PeakType>
489 InMzRange(
double min,
double max,
bool reverse =
false) :
514 template <
class PeakType>
550 template <
class SpectrumType>
573 bool hasCollisionEnergy =
false;
576 if (it->metaValueExists(
"collision energy"))
578 hasCollisionEnergy =
true;
579 double cE = it->getMetaValue(
"collision energy");
585 if (!hasCollisionEnergy)
return false;
602 template <
class SpectrumType>
628 const double isolationWindowSize = it->getIsolationWindowUpperOffset() + it->getIsolationWindowLowerOffset();
647 template <
class SpectrumType>
673 if (it->getIsolationWindowLowerOffset() == 0 || it->getIsolationWindowUpperOffset() == 0)
675 OPENMS_LOG_WARN <<
"IsInIsolationWindow(): Lower/Upper Offset for Precursor Isolation Window is Zero! " <<
676 "Filtering will probably be too strict (unless you hit the exact precursor m/z)!" << std::endl;
678 const double lower_mz = it->getMZ() - it->getIsolationWindowLowerOffset();
679 std::vector<double>::const_iterator it_mz = std::lower_bound(
vec_mz_.begin(),
vec_mz_.end(), lower_mz);
682 const double upper_mz = it->getMZ() + it->getIsolationWindowUpperOffset();
683 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:460
Predicate that determines if a spectrum was generated using any activation method given in the constr...
Definition: RangeUtils.h:336
HasActivationMethod(const StringList &methods, bool reverse=false)
Constructor.
Definition: RangeUtils.h:345
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:350
StringList methods_
Definition: RangeUtils.h:372
bool reverse_
Definition: RangeUtils.h:373
Predicate that determines if a spectrum has a certain precursor charge as given in the constructor li...
Definition: RangeUtils.h:435
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:449
HasPrecursorCharge(const IntList &charges, bool reverse=false)
Constructor.
Definition: RangeUtils.h:444
IntList charges_
Definition: RangeUtils.h:463
bool reverse_
Definition: RangeUtils.h:464
Predicate that determines if a spectrum has a certain scan mode.
Definition: RangeUtils.h:204
Int mode_
Definition: RangeUtils.h:225
HasScanMode(Int mode, bool reverse=false)
Constructor.
Definition: RangeUtils.h:213
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:218
bool reverse_
Definition: RangeUtils.h:226
Predicate that determines if a spectrum has a certain scan polarity.
Definition: RangeUtils.h:238
HasScanPolarity(Int polarity, bool reverse=false)
Constructor.
Definition: RangeUtils.h:247
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:252
Int polarity_
Definition: RangeUtils.h:259
bool reverse_
Definition: RangeUtils.h:260
Predicate that determines if a peak lies inside/outside a specific intensity range.
Definition: RangeUtils.h:516
double max_
Definition: RangeUtils.h:539
InIntensityRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:525
double min_
Definition: RangeUtils.h:539
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:531
bool reverse_
Definition: RangeUtils.h:540
Predicate that determines if a spectrum lies inside/outside a specific MS level set.
Definition: RangeUtils.h:169
InMSLevelRange(const IntList &levels, bool reverse=false)
Constructor.
Definition: RangeUtils.h:178
IntList levels_
Definition: RangeUtils.h:191
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:183
bool reverse_
Definition: RangeUtils.h:192
Predicate that determines if a peak lies inside/outside a specific m/z range.
Definition: RangeUtils.h:479
double max_
Definition: RangeUtils.h:503
InMzRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:489
double min_
Definition: RangeUtils.h:503
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:495
bool reverse_
Definition: RangeUtils.h:504
Predicate that determines if a spectrum's precursor is within a certain m/z range.
Definition: RangeUtils.h:387
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:402
double mz_right_
Definition: RangeUtils.h:420
InPrecursorMZRange(const double &mz_left, const double &mz_right, bool reverse=false)
Constructor.
Definition: RangeUtils.h:396
double mz_left_
Definition: RangeUtils.h:419
bool reverse_
Definition: RangeUtils.h:421
Predicate that determines if a spectrum lies inside/outside a specific retention time range.
Definition: RangeUtils.h:132
double max_
Definition: RangeUtils.h:156
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:148
InRTRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:142
double min_
Definition: RangeUtils.h:156
bool reverse_
Definition: RangeUtils.h:157
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:273
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:284
IsEmptySpectrum(bool reverse=false)
Constructor.
Definition: RangeUtils.h:280
bool reverse_
Definition: RangeUtils.h:291
Predicate that determines if an MSn spectrum was generated with a collision energy in the given range...
Definition: RangeUtils.h:552
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:567
IsInCollisionEnergyRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:561
double min_energy_
Definition: RangeUtils.h:592
double max_energy_
Definition: RangeUtils.h:592
bool reverse_
Definition: RangeUtils.h:593
Predicate that determines if the width of the isolation window of an MSn spectrum is in the given ran...
Definition: RangeUtils.h:604
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:620
double max_size_
Definition: RangeUtils.h:637
double min_size_
Definition: RangeUtils.h:637
IsInIsolationWindowSizeRange(double min_size, double max_size, bool reverse=false)
Constructor.
Definition: RangeUtils.h:614
bool reverse_
Definition: RangeUtils.h:638
Predicate that determines if the isolation window covers ANY of the given m/z values.
Definition: RangeUtils.h:649
IsInIsolationWindow(std::vector< double > vec_mz, bool reverse=false)
Constructor.
Definition: RangeUtils.h:658
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:665
std::vector< double > vec_mz_
Definition: RangeUtils.h:692
bool reverse_
Definition: RangeUtils.h:693
Predicate that determines if a spectrum is a zoom (enhanced resolution) spectrum.
Definition: RangeUtils.h:303
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:315
IsZoomSpectrum(bool reverse=false)
Constructor.
Definition: RangeUtils.h:311
bool reverse_
Definition: RangeUtils.h:322
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:162
The representation of a 1D spectrum.
Definition: MSSpectrum.h:71
UInt getMSLevel() const
Returns the MS level.
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:55
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak2D.h:178
IntensityType getIntensity() const
Definition: Peak2D.h:166
static const std::string NamesOfActivationMethod[SIZE_OF_ACTIVATIONMETHOD]
Names of activation methods.
Definition: Precursor.h:103
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:61
int Int
Signed integer type.
Definition: Types.h:102
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool find(TFinder &finder, const Pattern< TNeedle, FuzzyAC > &me, PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:886