OpenMS
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. More...
 
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()

IsInIsolationWindowSizeRange ( double  min_size,
double  max_size,
bool  reverse = false 
)
inline

Constructor.

Parameters
min_sizeminimum width of the isolation window.
max_sizemaximum width of the isolation window.
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_

double max_size_
private

◆ min_size_

double min_size_
private

◆ reverse_

bool reverse_
private