| OpenMS 2.5.0

Public Member Functions | Private Attributes | List of all members
IsInIsolationWindowSizeRange< SpectrumType > Class Template Reference
Kernel » RangeUtils

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>`

Inheritance diagram for IsInIsolationWindowSizeRange< SpectrumType >:

## 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_size | minimum width of the isolation window.
  max_size | maximum width of the isolation window.
  reverse | if `reverse` is true, operator() returns true if the width of the isolation window lies outside the range.

## Member Function Documentation

## ◆ operator()()

bool operator() | ( | const SpectrumType & | s | ) | const

inline

References MSSpectrum::getMSLevel(), SpectrumSettings::getPrecursors(), IsInIsolationWindowSizeRange< SpectrumType >::max_size_, IsInIsolationWindowSizeRange< SpectrumType >::min_size_, and IsInIsolationWindowSizeRange< SpectrumType >::reverse_.

## Member Data Documentation

## ◆ max_size_

double max_size_

private

Referenced by IsInIsolationWindowSizeRange< SpectrumType >::operator()().

## ◆ min_size_

double min_size_

private

Referenced by IsInIsolationWindowSizeRange< SpectrumType >::operator()().

## ◆ reverse_

bool reverse_

private

Referenced by IsInIsolationWindowSizeRange< SpectrumType >::operator()().