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(
"")
211 template <
typename SpectrumContainer>
213 const String& scan_regexp = default_scan_regexp,
214 bool get_precursor_rt =
false)
219 n_spectra_ = spectra.size();
220 metadata_.reserve(n_spectra_);
221 setScanRegExp_(scan_regexp);
223 std::map<Size, double> precursor_rts;
224 for (
Size i = 0; i < n_spectra_; ++i)
228 getSpectrumMetaData(spectrum, meta, scan_regexp_, precursor_rts);
229 if (get_precursor_rt) precursor_rts[meta.
ms_level] = meta.
rt;
231 metadata_.push_back(meta);
243 this->spectra_data_ref = spectra_data;
267 const boost::regex& scan_regexp = boost::regex(),
268 const std::map<Size, double>& precursor_rts = (std::map<Size, double>()));
296 bool stop_on_error =
false);
314 bool stop_on_error =
false,
315 bool override_spectra_data =
false,
316 bool override_spectra_references =
false,
317 std::vector<ProteinIdentification> proteins = std::vector<ProteinIdentification>());
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Helper class for looking up spectra based on different attributes.
Definition: SpectrumLookup.h:68
A more convenient string class.
Definition: String.h:60
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:48