20#ifndef _MSXDEMULTIPLEXER_HPP
21#define _MSXDEMULTIPLEXER_HPP
66 const std::vector<size_t>& muxIndices,
69 void GetMatrixBlockIndices(
size_t indexToDemux, std::vector<size_t>& muxIndices,
double demuxBlockExtra)
const override;
Helper functions for demultiplexing Helper functions include nice methods of accessing CV parameters ...
Interface for calculating demultiplexing scheme.
boost::shared_ptr< const IPrecursorMaskCodec > const_ptr
Constant shared pointer definition.
Implementation of the IDemultiplexer interface that is able to handle both MSX experiments,...
void GetMatrixBlockIndices(size_t indexToDemux, std::vector< size_t > &muxIndices, double demuxBlockExtra) const override
Figures out which spectra to include in the system of equations to demux.
std::vector< size_t > spectrumIndices_
A cache of the indices provided by SpectrumIndices()
msdata::SpectrumList_const_ptr sl_
A SpectrumList that provides access to the spectra specified in the muxIndices list provided to Build...
void BuildDeconvBlock(size_t index, const std::vector< size_t > &muxIndices, DemuxTypes::MatrixPtr &masks, DemuxTypes::MatrixPtr &signal) override
Translates a spectrum into a set of matrices to be solved by NNLS.
MSXDemultiplexer(Params p=Params())
Constructs an MSXDemultiplexer with optional user-specified parameters.
Params params_
A set of user-defined options.
const std::vector< size_t > & SpectrumIndices() const override
Returns the indices to the demultiplexed windows in the solution matrix corresponding to the windows ...
void Initialize(msdata::SpectrumList_const_ptr slc, IPrecursorMaskCodec::const_ptr pmc) override
Initializes the demultiplexer using the demux scheme provided by an IPrecursorMaskCodec.
IPrecursorMaskCodec::const_ptr pmc_
An IPrecursorMaskCodec that provides information about the experiment's scheme and can generate the m...
virtual ~MSXDemultiplexer()
boost::shared_ptr< MatrixType > MatrixPtr
boost::shared_ptr< const msdata::SpectrumList > SpectrumList_const_ptr
User-defined options for demultiplexing.
bool variableFill
Set to true if fill times are allowed to vary for each scan window.
bool applyWeighting
Weight the spectra nearby to the input spectrum more heavily in the solve than the outer ones.
pwiz::chemistry::MZTolerance massError
Mass error for extracting MS/MS peaks.
struct for expressing m/z tolerance in either amu or ppm