174 rt(std::numeric_limits<double>::quiet_NaN()),
175 precursor_rt(std::numeric_limits<double>::quiet_NaN()),
176 precursor_mz(std::numeric_limits<double>::quiet_NaN()),
177 precursor_charge(0), ms_level(0), scan_number(-1), native_id(
"")
212 template <
typename SpectrumContainer>
214 const String& scan_regexp = default_scan_regexp,
215 bool get_precursor_rt =
false)
220 n_spectra_ = spectra.size();
221 metadata_.reserve(n_spectra_);
222 setScanRegExp_(scan_regexp);
224 std::map<Size, double> precursor_rts;
225 for (
Size i = 0; i < n_spectra_; ++i)
229 getSpectrumMetaData(spectrum, meta, scan_regexp_, precursor_rts);
230 if (get_precursor_rt) precursor_rts[meta.
ms_level] = meta.
rt;
232 metadata_.push_back(meta);
244 this->spectra_data_ref = spectra_data;
268 const boost::regex& scan_regexp = boost::regex(),
269 const std::map<Size, double>& precursor_rts = (std::map<Size, double>()));
297 bool stop_on_error =
false);
315 bool stop_on_error =
false,
316 bool override_spectra_data =
false,
317 bool override_spectra_references =
false,
318 std::vector<ProteinIdentification> proteins = std::vector<ProteinIdentification>());
The representation of a 1D spectrum.
Definition: MSSpectrum.h:71
Helper class for looking up spectra based on different attributes.
Definition: SpectrumLookup.h:68
A more convenient string class.
Definition: String.h:61
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47