Predicate that determines if a spectrum's precursor is within a certain m/z range. More...
#include <OpenMS/KERNEL/RangeUtils.h>
Public Member Functions | |
| InPrecursorMZRange (const DoubleReal &mz_left, const DoubleReal &mz_right, bool reverse=false) | |
| Constructor. | |
| bool | operator() (const SpectrumType &s) const |
Protected Attributes | |
| DoubleReal | mz_left_ |
| DoubleReal | mz_right_ |
| bool | reverse_ |
Predicate that determines if a spectrum's precursor is within a certain m/z range.
SpectrumType must have a getPrecursors() method
If multiple precursors are present, all must fulfill the range criterium.
| InPrecursorMZRange | ( | const DoubleReal & | mz_left, | |
| const DoubleReal & | mz_right, | |||
| bool | reverse = false | |||
| ) | [inline] |
Constructor.
| mz_left | left m/z boundary (closed interval) | |
| mz_right | right m/z boundary (closed interval) | |
| reverse | if reverse is true, operator() returns true if the precursor's m/z is outside of the given interval. |
| bool operator() | ( | const SpectrumType & | s | ) | const [inline] |
DoubleReal mz_left_ [protected] |
DoubleReal mz_right_ [protected] |
Referenced by InPrecursorMZRange< SpectrumType >::operator()().
bool reverse_ [protected] |
Referenced by InPrecursorMZRange< SpectrumType >::operator()().
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:55 using doxygen 1.7.1 |