45 MASS_CHROMATOGRAM = 0,
54 SIZE_OF_CHROMATOGRAM_TYPE
58 static const char *
const ChromatogramNames[SIZE_OF_CHROMATOGRAM_TYPE+1];
179 struct hash<
OpenMS::ChromatogramSettings>
183 std::size_t seed = 0;
190 const auto& is = cs.getInstrumentSettings();
195 const auto& scan_windows = is.getScanWindows();
197 for (
const auto& sw : scan_windows)
204 const auto& ai = cs.getAcquisitionInfo();
207 for (
const auto& acq : ai)
213 const auto& sf = cs.getSourceFile();
224 const auto& prec = cs.getPrecursor();
226 const auto& am = prec.getActivationMethods();
228 for (
const auto& method : am)
241 const auto& pcs = prec.getPossibleChargeStates();
243 for (
const auto& charge : pcs)
255 const auto dp = cs.getDataProcessing();
257 for (
const auto& proc_ptr : dp)
264 const auto& actions = proc_ptr->getProcessingActions();
266 for (
const auto& action : actions)
Description of the combination of raw data to a single spectrum.
Definition AcquisitionInfo.h:29
Representation of chromatogram settings, e.g. SRM/MRM chromatograms.
Definition ChromatogramSettings.h:37
String comment_
Definition ChromatogramSettings.h:142
void setPrecursor(const Precursor &precursor)
sets the precursors
ChromatogramType type_
Definition ChromatogramSettings.h:149
AcquisitionInfo acquisition_info_
Definition ChromatogramSettings.h:145
Precursor & getPrecursor()
returns a mutable reference to the precursors
SourceFile source_file_
Definition ChromatogramSettings.h:144
void setComment(const String &comment)
sets the free-text comment
const String & getNativeID() const
returns the native identifier for the spectrum, used by the acquisition software.
InstrumentSettings instrument_settings_
Definition ChromatogramSettings.h:143
void setProduct(const Product &product)
sets the products
InstrumentSettings & getInstrumentSettings()
returns a mutable reference to the instrument settings of the current spectrum
std::vector< DataProcessingPtr > & getDataProcessing()
returns a mutable reference to the description of the applied processing
const Product & getProduct() const
returns a const reference to the products
const std::vector< std::shared_ptr< const DataProcessing > > getDataProcessing() const
returns a const reference to the description of the applied processing
void setInstrumentSettings(const InstrumentSettings &instrument_settings)
sets the instrument settings of the current spectrum
Product product_
Definition ChromatogramSettings.h:147
SourceFile & getSourceFile()
returns a mutable reference to the source file
ChromatogramSettings(ChromatogramSettings &&)=default
Move constructor.
ChromatogramSettings(const ChromatogramSettings &)=default
Copy constructor.
Product & getProduct()
returns a mutable reference to the products
ChromatogramSettings & operator=(ChromatogramSettings &&) &=default
Move assignment operator.
ChromatogramType
Definition ChromatogramSettings.h:44
@ ABSORPTION_CHROMATOGRAM
Definition ChromatogramSettings.h:52
@ EMISSION_CHROMATOGRAM
Definition ChromatogramSettings.h:53
@ SELECTED_ION_CURRENT_CHROMATOGRAM
Definition ChromatogramSettings.h:47
@ BASEPEAK_CHROMATOGRAM
Definition ChromatogramSettings.h:48
@ SELECTED_REACTION_MONITORING_CHROMATOGRAM
Definition ChromatogramSettings.h:50
@ TOTAL_ION_CURRENT_CHROMATOGRAM
Definition ChromatogramSettings.h:46
@ ELECTROMAGNETIC_RADIATION_CHROMATOGRAM
Definition ChromatogramSettings.h:51
@ SELECTED_ION_MONITORING_CHROMATOGRAM
Definition ChromatogramSettings.h:49
String native_id_
Definition ChromatogramSettings.h:141
const String & getComment() const
returns the free-text comment
void setSourceFile(const SourceFile &source_file)
sets the source file
ChromatogramSettings()
Constructor.
const InstrumentSettings & getInstrumentSettings() const
returns a const reference to the instrument settings of the current spectrum
AcquisitionInfo & getAcquisitionInfo()
returns a mutable reference to the acquisition info
void setChromatogramType(ChromatogramType type)
sets the chromatogram type
std::vector< DataProcessingPtr > data_processing_
Definition ChromatogramSettings.h:148
void setDataProcessing(const std::vector< DataProcessingPtr > &data_processing)
sets the description of the applied processing
const SourceFile & getSourceFile() const
returns a const reference to the source file
const AcquisitionInfo & getAcquisitionInfo() const
returns a const reference to the acquisition info
Precursor precursor_
Definition ChromatogramSettings.h:146
void setAcquisitionInfo(const AcquisitionInfo &acquisition_info)
sets the acquisition info
bool operator!=(const ChromatogramSettings &rhs) const
Equality operator.
const Precursor & getPrecursor() const
returns a const reference to the precursors
ChromatogramType getChromatogramType() const
returns the chromatogram type, e.g. a SRM chromatogram
ChromatogramSettings & operator=(const ChromatogramSettings &)=default
virtual ~ChromatogramSettings()
Destructor.
void setNativeID(const String &native_id)
sets the native identifier for the spectrum, used by the acquisition software.
bool operator==(const ChromatogramSettings &rhs) const
Equality operator.
Description of the settings a MS Instrument was run with.
Definition InstrumentSettings.h:24
Precursor meta information.
Definition Precursor.h:37
Product meta information.
Definition Product.h:26
Description of a file location, used to store the origin of (meta) data.
Definition SourceFile.h:23
A more convenient string class.
Definition String.h:34
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
std::size_t fnv1a_hash_string(const std::string &s) noexcept
FNV-1a hash for a string.
Definition HashUtils.h:70
std::size_t operator()(const OpenMS::ChromatogramSettings &cs) const noexcept
Definition ChromatogramSettings.h:181