ProteoWizard
Public Member Functions | Public Attributes | List of all members
pwiz::analysis::IsolationWindow Struct Reference

A container that wraps DemuxWindow to preserve the full precision window boundaries. More...

#include <IPrecursorMaskCodec.hpp>

Public Member Functions

 IsolationWindow (const msdata::Precursor &p)
 Constructs an IsolationWindow from a Precursor.
 
 IsolationWindow (double mzLow, double mzHigh)
 Constructs an IsolationWindow from a given mass range.
 
bool operator< (const IsolationWindow &rhs) const
 Isolation windows are sorted by their start value.
 

Public Attributes

double lowMz
 Full precision lower m/z bound.
 
double highMz
 Full precision upper m/z bound.
 
DemuxWindow demuxWindow
 Set of isolation window boundaries that provides useful operations for sorting and comparing different isolation windows.
 

Detailed Description

A container that wraps DemuxWindow to preserve the full precision window boundaries.

Definition at line 167 of file IPrecursorMaskCodec.hpp.

Constructor & Destructor Documentation

◆ IsolationWindow() [1/2]

pwiz::analysis::IsolationWindow::IsolationWindow ( const msdata::Precursor p)
inlineexplicit

Constructs an IsolationWindow from a Precursor.

Definition at line 171 of file IPrecursorMaskCodec.hpp.

171 :
double precursor_mz_low(const msdata::Precursor &p)
double precursor_mz_high(const msdata::Precursor &p)
double highMz
Full precision upper m/z bound.
DemuxWindow demuxWindow
Set of isolation window boundaries that provides useful operations for sorting and comparing differen...
double lowMz
Full precision lower m/z bound.

◆ IsolationWindow() [2/2]

pwiz::analysis::IsolationWindow::IsolationWindow ( double  mzLow,
double  mzHigh 
)
inline

Constructs an IsolationWindow from a given mass range.

Definition at line 175 of file IPrecursorMaskCodec.hpp.

175 :
176 lowMz(mzLow), highMz(mzHigh), demuxWindow(IsoWindowHasher::Hash(mzLow), IsoWindowHasher::Hash(mzHigh)) {}
static MZHash Hash(double mz)
Hash a floating-point m/z value to an integer.

Member Function Documentation

◆ operator<()

bool pwiz::analysis::IsolationWindow::operator< ( const IsolationWindow rhs) const
inline

Isolation windows are sorted by their start value.

Definition at line 187 of file IPrecursorMaskCodec.hpp.

187{ return this->demuxWindow < rhs.demuxWindow; }

References demuxWindow.

Member Data Documentation

◆ lowMz

double pwiz::analysis::IsolationWindow::lowMz

Full precision lower m/z bound.

Definition at line 178 of file IPrecursorMaskCodec.hpp.

◆ highMz

double pwiz::analysis::IsolationWindow::highMz

Full precision upper m/z bound.

Definition at line 180 of file IPrecursorMaskCodec.hpp.

◆ demuxWindow

DemuxWindow pwiz::analysis::IsolationWindow::demuxWindow

Set of isolation window boundaries that provides useful operations for sorting and comparing different isolation windows.

Definition at line 184 of file IPrecursorMaskCodec.hpp.

Referenced by operator<().


The documentation for this struct was generated from the following file: