3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Enumerations | Functions | Variables
mass.h File Reference
#include <vector>
#include <algorithm>
#include <cmath>
#include <limits>
#include <gsl/gsl_sf_erf.h>
#include <gsl/gsl_histogram.h>
#include "../../filter.h"
Include dependency graph for mass.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  BACKGROUND_PARAMS
 

Enumerations

enum  { FIT_MODE_NONE, FIT_MODE_CONST_TOF, FIT_MODE_ENUM_END }
 

Functions

template<typename T >
void meanAndStdev (const std::vector< T > &f, float &meanVal, float &stdevVal, bool normalCorrection=true)
 
unsigned int doFitBackground (const std::vector< const FilterStreamData *> &dataIn, BACKGROUND_PARAMS &params)
 
void createMassBackground (float massStart, float massEnd, unsigned int nBinsMass, float tofBackIntensity, vector< float > &histogram)
 
template<class T >
bool andersonDarlingStatistic (std::vector< T > vals, float &meanV, float &stdevVal, float &statistic, size_t &undefCount, bool computeMeanAndStdev=true)
 
void makeHistogram (const std::vector< float > &data, float start, float end, float step, std::vector< float > &histVals)
 

Variables

const char * BACKGROUND_MODE_STRING [FIT_MODE_ENUM_END]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FIT_MODE_NONE 
FIT_MODE_CONST_TOF 
FIT_MODE_ENUM_END 

Function Documentation

◆ andersonDarlingStatistic()

template<class T >
bool andersonDarlingStatistic ( std::vector< T >  vals,
float &  meanV,
float &  stdevVal,
float &  statistic,
size_t &  undefCount,
bool  computeMeanAndStdev = true 
)

References makeHistogram(), and meanAndStdev().

Referenced by createMassBackground(), and doFitBackground().

Here is the caller graph for this function:

◆ createMassBackground()

void createMassBackground ( float  massStart,
float  massEnd,
unsigned int  nBinsMass,
float  tofBackIntensity,
vector< float > &  histogram 
)

◆ doFitBackground()

unsigned int doFitBackground ( const std::vector< const FilterStreamData *> &  dataIn,
BACKGROUND_PARAMS params 
)

◆ makeHistogram()

void makeHistogram ( const std::vector< float > &  data,
float  start,
float  end,
float  step,
std::vector< float > &  histVals 
)

References ASSERT.

Referenced by andersonDarlingStatistic(), createMassBackground(), and doFitBackground().

Here is the caller graph for this function:

◆ meanAndStdev()

template<typename T >
void meanAndStdev ( const std::vector< T > &  f,
float &  meanVal,
float &  stdevVal,
bool  normalCorrection = true 
)

References createMassBackground(), doFitBackground(), BACKGROUND_PARAMS::massEnd, and BACKGROUND_PARAMS::massStart.

Referenced by andersonDarlingStatistic().

Here is the caller graph for this function:

Variable Documentation

◆ BACKGROUND_MODE_STRING

const char* BACKGROUND_MODE_STRING[FIT_MODE_ENUM_END]