27 #include "boost/filesystem/path.hpp"
33 using namespace pwiz::msdata;
34 using namespace pwiz::util;
35 using namespace pwiz::analysis;
36 namespace bfs = boost::filesystem;
47 const SelectedIon& selectedIon = precursor.selectedIons[0];
55 *
os_ <<
"[verifyPrecursorMZ] " << spectrum.
index <<
" " << spectrum.
id <<
" "
56 << precursorMZ <<
": "
67 MSDataFile msd((datadir /
"PrecursorRefineOrbi.mzML").
string());
70 if (
os_) *
os_ <<
"original spectra:\n";
77 shared_ptr<SpectrumList_PrecursorRefine> spectrumListRecalculated(
80 unit_assert(spectrumListRecalculated->size() == 51);
81 if (
os_) *
os_ <<
"recalculated spectra:\n";
90 void test(
const bfs::path& datadir)
96 int main(
int argc,
char* argv[])
102 bfs::path datadir =
".";
104 for (
int i=1; i<argc; i++)
106 if (!strcmp(argv[i],
"-v"))
112 datadir = bfs::path(argv[i]).branch_path();
115 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;