OpenMS
Loading...
Searching...
No Matches
IsInIsolationWindowSizeRange< SpectrumType > Class Template Reference

Predicate that determines if the width of the isolation window of an MSn spectrum is in the given range. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for IsInIsolationWindowSizeRange< SpectrumType >:
[legend]

Public Member Functions

 IsInIsolationWindowSizeRange (double min_size, double max_size, bool reverse=false)
 Constructor.
 
bool operator() (const SpectrumType &s) const
 

Private Attributes

double min_size_
 
double max_size_
 
bool reverse_
 

Detailed Description

template<class SpectrumType>
class OpenMS::IsInIsolationWindowSizeRange< SpectrumType >

Predicate that determines if the width of the isolation window of an MSn spectrum is in the given range.

Note
This predicate will return always true for spectra with getMSLevel() = 1.

Constructor & Destructor Documentation

◆ IsInIsolationWindowSizeRange()

template<class SpectrumType >
IsInIsolationWindowSizeRange ( double  min_size,
double  max_size,
bool  reverse = false 
)
inline

Constructor.

Parameters
[in]min_sizeminimum width of the isolation window.
[in]max_sizemaximum width of the isolation window.
[in]reverseif reverse is true, operator() returns true if the width of the isolation window lies outside the range.

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ max_size_

template<class SpectrumType >
double max_size_
private

◆ min_size_

template<class SpectrumType >
double min_size_
private

◆ reverse_

template<class SpectrumType >
bool reverse_
private