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];
 
   52         *
os_ << 
"[verifyPrecursorInfo] " << spectrum.
index << 
" " << spectrum.
id << 
" " 
   53              << precursorMZ << 
" " << precursorCharge << 
": " 
   59     if (precursorCharge != 0)
 
   66     MSDataFile msd((datadir / 
"5peptideFT.mzML").
string());
 
   69     if (
os_) *
os_ << 
"original spectra:\n";
 
   76     shared_ptr<SpectrumList_PrecursorRecalculator> spectrumListRecalculated(
 
   80     if (
os_) *
os_ << 
"recalculated spectra:\n";
 
   89 void test(
const bfs::path& datadir)
 
   95 int main(
int argc, 
char* argv[])
 
  101         bfs::path datadir = 
".";
 
  103         for (
int i=1; i<argc; i++)
 
  105             if (!strcmp(argv[i],
"-v")) 
 
  111                 datadir = bfs::path(argv[i]).branch_path(); 
 
  114         if (argc>1 && !strcmp(argv[1],
"-v")) 
os_ = &cout;