70{
71 if (
os_) *
os_ <<
"test()\n";
72
74
75 shared_ptr<istream> is(
new istringstream(
testMGF));
76
77
78
83
85
87 {
91 }
92
93
94
100
101
102 IndexList list = sl->findSpotID(
"small.pwiz.0004.0004.2");
105
106
107 list.clear();
108 list = sl->findSpotID("fake title string");
110
111
112
114 unit_assert(sl->spectrumIdentity(0).id ==
"index=0");
115 unit_assert(sl->spectrumIdentity(0).sourceFilePosition != -1);
116
118
128
130 Precursor& precursor0 = s->precursors[0];
133
136
137 s = sl->spectrum(0, true);
140 unit_assert(!s->binaryDataArrayPtrs[0]->data.empty() && !s->binaryDataArrayPtrs[1]->data.empty());
141
142 vector<MZIntensityPair> pairs;
143 s->getMZIntensityPairs(pairs);
144
146 {
148 copy(pairs.begin(), pairs.end(), ostream_iterator<MZIntensityPair>(*
os_,
"\n"));
150 }
151
152
153
154
156 unit_assert(sl->spectrumIdentity(1).id ==
"index=1");
157
158 s = sl->spectrum(1, true);
167
169 Precursor& precursor1 = s->precursors[0];
173
175
176 pairs.clear();
177 s->getMZIntensityPairs(pairs);
178
179 unit_assert(s->defaultArrayLength == pairs.size());
180
182 {
184 copy(pairs.begin(), pairs.end(), ostream_iterator<MZIntensityPair>(*
os_,
"\n"));
186 }
187
188
189
191 unit_assert(sl->spectrumIdentity(2).id ==
"index=2");
192
193 s = sl->spectrum(2, true);
202 Precursor& precursor2 = s->precursors[0];
207}
static SpectrumListPtr create(boost::shared_ptr< std::istream > is, const MSData &msd)
MS_possible_charge_state
possible charge state: A possible charge state of the ion in a situation where the charge of an ion i...
MS_ms_level
ms level: Stages of ms achieved in a multi stage mass spectrometry experiment.
MS_negative_scan
negative scan: Polarity of the scan is negative.
MS_charge_state
charge state: The charge state of the ion, single or multiple and positive or negatively charged.
MS_spectrum_title
spectrum title: A free-form text title describing a spectrum.
MS_total_ion_current
total ion current: The sum of all the separate ion currents carried by the ions of different m/z cont...
MS_selected_ion_m_z
selected ion m/z: Mass-to-charge ratio of an selected ion.
MS_scan_start_time
scan start time: The time that an analyzer started a scan, relative to the start of the MS run.
MS_LCQ_Deca
LCQ Deca: ThermoFinnigan LCQ Deca.
MS_base_peak_intensity
base peak intensity: The intensity of the greatest peak in the mass spectrum.
MS_base_peak_m_z
base peak m/z: M/z value of the signal of highest intensity in the mass spectrum.
PWIZ_API_DECL void write(minimxml::XMLWriter &writer, const CV &cv)
boost::shared_ptr< SpectrumList > SpectrumListPtr
boost::shared_ptr< Spectrum > SpectrumPtr
boost::shared_ptr< InstrumentConfiguration > InstrumentConfigurationPtr
Uncontrolled user parameters (essentially allowing free text). Before using these,...
Description of a particular hardware configuration of a mass spectrometer. Each configuration MUST ha...
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
std::vector< InstrumentConfigurationPtr > instrumentConfigurationPtrs
list and descriptions of instrument configurations.
The method of precursor ion selection and activation.
std::vector< SelectedIon > selectedIons
this list of precursor ions that were selected.
#define unit_assert_equal(x, y, epsilon)
#define unit_assert_operator_equal(expected, actual)