~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to source/EXAMPLES/Tutorial_InternalCalibration.C

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2013-12-20 11:30:16 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131220113016-wre5g9bteeheq6he
Tags: 1.11.1-3
* remove version number from libbost development package names;
* ensure that AUTHORS is correctly shipped in all packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <OpenMS/FILTERING/CALIBRATION/InternalCalibration.h>
2
 
#include <OpenMS/FORMAT/MzMLFile.h>
3
 
#include <OpenMS/KERNEL/StandardTypes.h>
4
 
#include <iostream>
5
 
 
6
 
using namespace OpenMS;
7
 
using namespace std;
8
 
 
9
 
Int main()
10
 
{
11
 
  InternalCalibration ic;
12
 
  PeakMap exp,exp_calibrated;
13
 
  MzMLFile mzml_file;
14
 
  mzml_file.load("data/Tutorial_InternalCalibration.mzML",exp);
15
 
 
16
 
  std::vector<double> ref_masses;
17
 
  ref_masses.push_back(1296.68476942);
18
 
  ref_masses.push_back(2465.19833942);
19
 
 
20
 
  ic.calibrateMapSpectrumwise(exp,exp_calibrated,ref_masses);
21
 
  
22
 
  return 0;
23
 
} //end of main