95 template <
class MetaContainer>
130 template <
class SpectrumType>
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>
382 template <
class SpectrumType>
404 if (!(mz_left_ <= it->getMZ() && it->getMZ() <=
mz_right_))
430 template <
class SpectrumType>
451 Int tmp = it->getCharge();
474 template <
class PeakType>
511 template <
class PeakType>
547 template <
class SpectrumType>
570 bool hasCollisionEnergy =
false;
573 if (it->metaValueExists(
"collision energy"))
575 hasCollisionEnergy =
true;
576 double cE = it->getMetaValue(
"collision energy");
582 if (!hasCollisionEnergy)
return false;
599 template <
class SpectrumType>
625 const double isolationWindowSize = it->getIsolationWindowUpperOffset() + it->getIsolationWindowLowerOffset();
644 template <
class SpectrumType>
670 if (it->getIsolationWindowLowerOffset() == 0 || it->getIsolationWindowUpperOffset() == 0)
672 OPENMS_LOG_WARN <<
"IsInIsolationWindow(): Lower/Upper Offset for Precursor Isolation Window is Zero! " <<
673 "Filtering will probably be too strict (unless you hit the exact precursor m/z)!" << std::endl;
675 const double lower_mz = it->getMZ() - it->getIsolationWindowLowerOffset();
676 std::vector<double>::const_iterator it_mz = std::lower_bound(
vec_mz_.begin(),
vec_mz_.end(), lower_mz);
679 const double upper_mz = it->getMZ() + it->getIsolationWindowUpperOffset();
680 isIn |= (*it_mz <= upper_mz);
IsInIsolationWindowSizeRange(double min_size, double max_size, bool reverse=false)
Constructor.
Definition: RangeUtils.h:611
IntList levels_
Definition: RangeUtils.h:191
Predicate that determines if a spectrum lies inside/outside a specific retention time range...
Definition: RangeUtils.h:131
double min_
Definition: RangeUtils.h:500
bool reverse_
Definition: RangeUtils.h:590
InMSLevelRange(const IntList &levels, bool reverse=false)
Constructor.
Definition: RangeUtils.h:178
bool reverse_
Definition: RangeUtils.h:291
A more convenient string class.
Definition: String.h:58
Precursor meta information.
Definition: Precursor.h:58
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:54
HasScanPolarity(Int polarity, bool reverse=false)
Constructor.
Definition: RangeUtils.h:247
double max_size_
Definition: RangeUtils.h:634
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:315
IsInCollisionEnergyRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:558
std::vector< double > vec_mz_
Definition: RangeUtils.h:689
Predicate that determines if a spectrum has a certain scan mode.
Definition: RangeUtils.h:203
bool reverse_
Definition: RangeUtils.h:370
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:148
ScanMode getScanMode() const
returns the scan mode
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:350
bool reverse_
Definition: RangeUtils.h:226
const InstrumentSettings & getInstrumentSettings() const
returns a const reference to the instrument settings of the current spectrum
bool reverse_
Definition: RangeUtils.h:635
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:528
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
bool getZoomScan() const
return if this scan is a zoom (enhanced resolution) scan
double min_energy_
Definition: RangeUtils.h:589
double max_energy_
Definition: RangeUtils.h:589
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
IntensityType getIntensity() const
Definition: Peak2D.h:168
static const std::string NamesOfActivationMethod[SIZE_OF_ACTIVATIONMETHOD]
Names of activation methods.
Definition: Precursor.h:106
Predicate that determines if the isolation window covers ANY of the given m/z values.
Definition: RangeUtils.h:645
InMzRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:486
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:446
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:284
bool reverse_
Definition: RangeUtils.h:418
InRTRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:142
HasScanMode(Int mode, bool reverse=false)
Constructor.
Definition: RangeUtils.h:213
IsInIsolationWindow(std::vector< double > vec_mz, bool reverse=false)
Constructor.
Definition: RangeUtils.h:655
IsZoomSpectrum(bool reverse=false)
Constructor.
Definition: RangeUtils.h:311
Predicate that determines if a spectrum lies inside/outside a specific MS level set.
Definition: RangeUtils.h:168
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
double min_size_
Definition: RangeUtils.h:634
IsEmptySpectrum(bool reverse=false)
Constructor.
Definition: RangeUtils.h:280
bool reverse_
Definition: RangeUtils.h:157
double min_
Definition: RangeUtils.h:536
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:492
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:617
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:399
bool reverse_
Definition: RangeUtils.h:690
double max_
Definition: RangeUtils.h:500
double max_
Definition: RangeUtils.h:536
Predicate that determines if a spectrum has a certain precursor charge as given in the constructor li...
Definition: RangeUtils.h:431
bool reverse_
Definition: RangeUtils.h:260
static String & reverse(String &this_s)
Definition: StringUtilsSimple.h:355
bool reverse_
Definition: RangeUtils.h:322
Predicate that determines if a peak lies inside/outside a specific intensity range.
Definition: RangeUtils.h:512
InPrecursorMZRange(const double &mz_left, const double &mz_right, bool reverse=false)
Constructor.
Definition: RangeUtils.h:393
bool reverse_
Definition: RangeUtils.h:192
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:564
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
Predicate that determines if a spectrum has a certain scan polarity.
Definition: RangeUtils.h:237
Int mode_
Definition: RangeUtils.h:225
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak2D.h:180
bool reverse_
Definition: RangeUtils.h:537
IonSource::Polarity getPolarity() const
returns the polarity
double mz_right_
Definition: RangeUtils.h:417
IntList charges_
Definition: RangeUtils.h:460
StringList methods_
Definition: RangeUtils.h:369
double max_
Definition: RangeUtils.h:156
InIntensityRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:522
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:218
HasActivationMethod(const StringList &methods, bool reverse=false)
Constructor.
Definition: RangeUtils.h:345
UInt getMSLevel() const
Returns the MS level.
Predicate that determines if the width of the isolation window of an MSn spectrum is in the given ran...
Definition: RangeUtils.h:600
bool reverse_
Definition: RangeUtils.h:461
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:183
HasPrecursorCharge(const IntList &charges, bool reverse=false)
Constructor.
Definition: RangeUtils.h:441
Predicate that determines if a peak lies inside/outside a specific m/z range.
Definition: RangeUtils.h:475
Predicate that determines if a spectrum's precursor is within a certain m/z range.
Definition: RangeUtils.h:383
ActivationMethod
Method of activation.
Definition: Precursor.h:84
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:252
bool reverse_
Definition: RangeUtils.h:501
Predicate that determines if a spectrum is a zoom (enhanced resolution) spectrum. ...
Definition: RangeUtils.h:302
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
double mz_left_
Definition: RangeUtils.h:416
int Int
Signed integer type.
Definition: Types.h:102
double min_
Definition: RangeUtils.h:156
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:662
Predicate that determines if a spectrum was generated using any activation method given in the constr...
Definition: RangeUtils.h:335
Predicate that determines if an MSn spectrum was generated with a collision energy in the given range...
Definition: RangeUtils.h:548
Predicate that determines if a spectrum is empty.
Definition: RangeUtils.h:272
#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:465
Int polarity_
Definition: RangeUtils.h:259