17 #ifndef ATOMPROBE_PROCESSING_H 18 #define ATOMPROBE_PROCESSING_H 72 float tofBackIntensity, std::vector<float> &histogram);
90 void findPeaks(
const std::vector<float> &x0, std::vector<unsigned int>& peakInds,
float sel,
91 bool autoSel=
true,
bool includeEndpoints=
true);
94 bool testBackgroundFitMaths();
std::string getFitErrorMsg(unsigned int errCode)
unsigned int doFitBackground(const std::vector< float > &massData, BACKGROUND_PARAMS ¶ms)
Perform a background fit, assuming constant TOF noise, from 0->inf time.
void findPeaks(const std::vector< float > &x0, std::vector< unsigned int > &peakInds, float sel, bool autoSel=true, bool includeEndpoints=true)
Simple peak-finding algorithm.
void createMassBackground(float massStart, float massEnd, unsigned int nBinsMass, float tofBackIntensity, std::vector< float > &histogram)
Build a histogram of the background counts.