libatomprobe
Library for Atom Probe Tomography (APT) computation
Typedefs | Functions | Variables
specsim.cpp File Reference
#include "atomprobe/atomprobe.h"
#include <tuple>
#include <numeric>
Include dependency graph for specsim.cpp:

Go to the source code of this file.

Typedefs

typedef vector< pair< string, size_t > > FRAGMENT
 

Functions

void getMassDistributions (const vector< FRAGMENT > &fragmentVec, const vector< string > &parentSpecies, const AbundanceData &natTable, vector< vector< pair< float, float > > > &massDistVec)
 
void normaliseVec (vector< float > &v)
 
int main (int argc, char *argv[])
 

Variables

const float MASS_TOL =0.05
 

Typedef Documentation

◆ FRAGMENT

typedef vector<pair<string,size_t> > FRAGMENT

Definition at line 11 of file specsim.cpp.

Function Documentation

◆ getMassDistributions()

void getMassDistributions ( const vector< FRAGMENT > &  fragmentVec,
const vector< string > &  parentSpecies,
const AbundanceData natTable,
vector< vector< pair< float, float > > > &  massDistVec 
)

Definition at line 360 of file specsim.cpp.

References AtomProbe::AbundanceData::generateGroupedIsotopeDist(), AtomProbe::AbundanceData::getSymbolIndices(), and MASS_TOL.

Referenced by main().

Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ normaliseVec()

void normaliseVec ( vector< float > &  v)

Definition at line 19 of file specsim.cpp.

Referenced by main().

Variable Documentation

◆ MASS_TOL

const float MASS_TOL =0.05

Definition at line 9 of file specsim.cpp.

Referenced by AtomProbe::MultiRange::copyDataFromRange(), getMassDistributions(), and main().