99 while (spectrum.size() < acqus.
getSize())
104 spectrum.push_back(p);
120 if (acqus.
getParam(
".IONIZATION MODE") ==
"LD+")
124 else if (acqus.
getParam(
".IONIZATION MODE") ==
"LD-")
142 source_file.
setFileType(
"Xmass analysis file (fid)");
147 software.
setName(
"FlexControl");
151 fc_ver = fc_ver.
suffix(
' ');
155 fc_ver = fc_ver.
prefix(
'>');
160 std::set<DataProcessing::ProcessingAction> actions;
167 std::vector< boost::shared_ptr< DataProcessing> > data_processing_vector;
168 data_processing_vector.push_back( boost::shared_ptr< DataProcessing>(
new DataProcessing(data_processing)) );
191 std::vector<IonSource> & ionSourceList = instrument.
getIonSources();
192 ionSourceList.clear();
193 ionSourceList.resize(1);
194 if (acqus.
getParam(
".INLET") ==
"DIRECT")
203 if (acqus.
getParam(
".IONIZATION MODE") ==
"LD+")
207 else if (acqus.
getParam(
".IONIZATION MODE") ==
"LD-")
216 ionSourceList[0].setOrder(0);
218 std::vector<MassAnalyzer> & massAnalyzerList = instrument.
getMassAnalyzers();
219 massAnalyzerList.clear();
220 massAnalyzerList.resize(1);
221 if (acqus.
getParam(
".SPECTROMETER TYPE") ==
"TOF")
Description of the combination of raw data to a single spectrum.
Definition: AcquisitionInfo.h:55
void setMethodOfCombination(const String &method_of_combination)
sets the method of combination
Description of the applied preprocessing steps.
Definition: DataProcessing.h:53
void setCompletionTime(const DateTime &completion_time)
sets the time of completion taking a DateTime object
void setSoftware(const Software &software)
sets the software used for processing
void setProcessingActions(const std::set< ProcessingAction > &actions)
sets the description of the applied processing
@ CALIBRATION
Calibration of m/z positions.
Definition: DataProcessing.h:69
@ SMOOTHING
Smoothing of the signal to reduce noise.
Definition: DataProcessing.h:63
@ BASELINE_REDUCTION
Baseline reduction.
Definition: DataProcessing.h:66
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:59
DateTime Class.
Definition: DateTime.h:55
static DateTime now()
Returns the current date and time.
void set(UInt month, UInt day, UInt year, UInt hour, UInt minute, UInt second)
sets data from six integers
File not found exception.
Definition: Exception.h:517
Not implemented exception.
Definition: Exception.h:430
Description of the experimental settings.
Definition: ExperimentalSettings.h:62
const Instrument & getInstrument() const
returns a const reference to the MS instrument description
void setDateTime(const DateTime &date)
sets the date the experiment was performed
Description of the settings a MS Instrument was run with.
Definition: InstrumentSettings.h:49
void setPolarity(IonSource::Polarity polarity)
sets the polarity
void setZoomScan(bool zoom_scan)
sets if this scan is a zoom (enhanced resolution) scan
void setScanMode(ScanMode scan_mode)
sets the scan mode
@ MASSSPECTRUM
general spectrum type
Definition: InstrumentSettings.h:55
Description of a MS instrument.
Definition: Instrument.h:65
const std::vector< MassAnalyzer > & getMassAnalyzers() const
returns a const reference to the mass analyzer list
void setName(const String &name)
sets the name of the instrument
void setModel(const String &model)
sets the instrument model
void setVendor(const String &vendor)
sets the instrument vendor
const std::vector< IonSource > & getIonSources() const
returns a const reference to the ion source list
Read-only acqus File handler for XMass Analysis.
Definition: AcqusHandler.h:53
String getParam(const String ¶m)
Read param as string.
double getPosition(Size index)
Conversion from index to MZ ratio using internal calibration params.
Size getSize()
Get size of spectrum.
Read-only fid File handler for XMass Analysis.
Definition: FidHandler.h:53
Size getIntensity()
Get intensity of current position and move to next position.
Size getIndex()
Get index of current position (without position moving).
@ DIRECT
Direct.
Definition: IonSource.h:55
@ INLETNULL
Unknown.
Definition: IonSource.h:54
@ POSITIVE
Positive polarity.
Definition: IonSource.h:143
@ NEGATIVE
Negative polarity.
Definition: IonSource.h:144
@ POLNULL
Unknown.
Definition: IonSource.h:142
@ MALDI
Matrix-assisted laser desorption ionization.
Definition: IonSource.h:107
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
const ExperimentalSettings & getExperimentalSettings() const
returns the meta information of this experiment (const access)
The representation of a 1D spectrum.
Definition: MSSpectrum.h:71
void setMSLevel(UInt ms_level)
Sets the MS level.
void setName(const String &name)
Sets the name.
void clear(bool clear_meta_data)
Clears all data and meta data.
void setRT(double rt)
Sets the absolute retention time (in seconds)
@ ANALYZERNULL
Unknown.
Definition: MassAnalyzer.h:54
@ TOF
Time-of-flight.
Definition: MassAnalyzer.h:59
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
float IntensityType
Intensity type.
Definition: Peak1D.h:62
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: Peak1D.h:104
void setPosition(PositionType const &position)
Mutable access to the position.
Definition: Peak1D.h:143
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
Description of the software used for processing.
Definition: Software.h:50
void setName(const String &name)
Sets the name of the software.
void setVersion(const String &version)
Sets the software version.
Description of a file location, used to store the origin of (meta) data.
Definition: SourceFile.h:48
void setFileType(const String &file_type)
sets the file type
void setPathToFile(const String &path_path_to_file)
sets the file path
void setNameOfFile(const String &name_of_file)
sets the file name
void setFileSize(float file_size)
sets the file size in MB
void setComment(const String &comment)
sets the free-text comment
void setInstrumentSettings(const InstrumentSettings &instrument_settings)
sets the instrument settings of the current spectrum
void setType(SpectrumType type)
sets the spectrum type
void setSourceFile(const SourceFile &source_file)
sets the source file
void setDataProcessing(const std::vector< DataProcessingPtr > &data_processing)
sets the description of the applied processing
@ PROFILE
profile data
Definition: SpectrumSettings.h:74
void setAcquisitionInfo(const AcquisitionInfo &acquisition_info)
sets the acquisition info
void setNativeID(const String &native_id)
sets the native identifier for the spectrum, used by the acquisition software.
A more convenient string class.
Definition: String.h:61
bool hasPrefix(const String &string) const
true if String begins with string, false otherwise
String & remove(char what)
Remove all occurrences of the character what.
String prefix(SizeType length) const
returns the prefix of length length
bool hasSuffix(const String &string) const
true if String ends with string, false otherwise
String suffix(SizeType length) const
returns the suffix of length length
File adapter for 'XMass Analysis (fid)' files.
Definition: XMassFile.h:68
void importExperimentalSettings(const String &filename, PeakMap &exp)
Import settings from a XMass file.
Definition: XMassFile.h:180
void load(const String &filename, MSSpectrum &spectrum)
Loads a spectrum from a XMass file.
Definition: XMassFile.h:83
XMassFile()
Default constructor.
virtual ~XMassFile()
Destructor.
void store(const String &, const MSSpectrum &)
Stores a spectrum in a XMass file (not available)
Definition: XMassFile.h:240
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47