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);
#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:470
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:369
bool reverse_
Definition: RangeUtils.h:370
Predicate that determines if a spectrum has a certain precursor charge as given in the constructor li...
Definition: RangeUtils.h:432
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:446
HasPrecursorCharge(const IntList &charges, bool reverse=false)
Constructor.
Definition: RangeUtils.h:441
IntList charges_
Definition: RangeUtils.h:460
bool reverse_
Definition: RangeUtils.h:461
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:513
double max_
Definition: RangeUtils.h:536
InIntensityRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:522
double min_
Definition: RangeUtils.h:536
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:528
bool reverse_
Definition: RangeUtils.h:537
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:476
double max_
Definition: RangeUtils.h:500
InMzRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:486
double min_
Definition: RangeUtils.h:500
bool operator()(const PeakType &p) const
Definition: RangeUtils.h:492
bool reverse_
Definition: RangeUtils.h:501
Predicate that determines if a spectrum's precursor is within a certain m/z range.
Definition: RangeUtils.h:384
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:399
double mz_right_
Definition: RangeUtils.h:417
InPrecursorMZRange(const double &mz_left, const double &mz_right, bool reverse=false)
Constructor.
Definition: RangeUtils.h:393
double mz_left_
Definition: RangeUtils.h:416
bool reverse_
Definition: RangeUtils.h:418
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:549
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:564
IsInCollisionEnergyRange(double min, double max, bool reverse=false)
Constructor.
Definition: RangeUtils.h:558
double min_energy_
Definition: RangeUtils.h:589
double max_energy_
Definition: RangeUtils.h:589
bool reverse_
Definition: RangeUtils.h:590
Predicate that determines if the width of the isolation window of an MSn spectrum is in the given ran...
Definition: RangeUtils.h:601
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:617
double max_size_
Definition: RangeUtils.h:634
double min_size_
Definition: RangeUtils.h:634
IsInIsolationWindowSizeRange(double min_size, double max_size, bool reverse=false)
Constructor.
Definition: RangeUtils.h:611
bool reverse_
Definition: RangeUtils.h:635
Predicate that determines if the isolation window covers ANY of the given m/z values.
Definition: RangeUtils.h:646
IsInIsolationWindow(std::vector< double > vec_mz, bool reverse=false)
Constructor.
Definition: RangeUtils.h:655
bool operator()(const SpectrumType &s) const
Definition: RangeUtils.h:662
std::vector< double > vec_mz_
Definition: RangeUtils.h:689
bool reverse_
Definition: RangeUtils.h:690
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:70
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:180
IntensityType getIntensity() const
Definition: Peak2D.h:168
Precursor meta information.
Definition: Precursor.h:61
static const std::string NamesOfActivationMethod[SIZE_OF_ACTIVATIONMETHOD]
Names of activation methods.
Definition: Precursor.h:106
ActivationMethod
Method of activation.
Definition: Precursor.h:85
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:60
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
static String & reverse(String &this_s)
Definition: StringUtilsSimple.h:355
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48