30 using namespace pwiz::util;
31 using namespace pwiz::msdata;
32 using namespace pwiz::analysis;
40 os <<
"size: " << sl.
size() << endl;
42 for (
size_t i=0, end=sl.
size(); i<end; i++)
45 vector<MZIntensityPair> data;
46 spectrum->getMZIntensityPairs(data);
48 os << spectrum->index <<
" "
49 << spectrum->id <<
": ";
51 copy(data.begin(), data.end(), ostream_iterator<MZIntensityPair>(os,
" "));
62 for (
size_t i=0; i<10; i++)
69 vector<MZIntensityPair> data(5);
73 sl->spectra.push_back(spectrum);
78 *
os_ <<
"original spectrum list:\n";
90 vector<MZIntensityPair> data;
91 spectrum->getMZIntensityPairs(data);
99 for (
size_t i=0; i<sl->size(); i++)
106 *
os_ <<
"filtered list:\n";
125 int main(
int argc,
char* argv[])
131 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;