~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: 2012-11-12 15:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20121112155812-vr15wtg9b50cuesg
Tags: upstream-1.9.0
ImportĀ upstreamĀ versionĀ 1.9.0

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