Berkeley Nuclear Data Software
Functions
SpectrumAnalysis.cpp File Reference
#include "SpectrumAnalysis.h"
#include "NSDPhysicsCalcs.h"
#include "TFitResult.h"
#include "TKey.h"
#include "TF1.h"
#include "TLegend.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TCanvas.h"
#include "TError.h"
#include <Eigen/Dense>
#include <iostream>
#include <sstream>
#include <fstream>
#include <random>
Include dependency graph for SpectrumAnalysis.cpp:

Functions

std::ostream & operator<< (std::ostream &os, const PeakInfo &a_peakInfo)
 
std::istream & operator>> (std::istream &a_istream, PeakInfo &a_peakInfo)
 
Double_t fGauss (Double_t *x, Double_t *par)
 
Double_t fDoubleGauss (Double_t *x, Double_t *par)
 Two gaussians + 1st degree polynomial background. More...
 
Double_t fDoubleGaussErf (Double_t *x, Double_t *par)
 Two gaussians + 1st degree polynomial background + erf. More...
 
Double_t fRadWareFitNoSkew (Double_t *x, Double_t *par)
 https://radware.phy.ornl.gov/gf3/gf3.html#3.6. More...
 
Double_t fRadWareFit (Double_t *x, Double_t *par)
 
Double_t fRadWareSkewNorm (Double_t *x, Double_t *par)
 not sure what this one is More...
 

Function Documentation

◆ fDoubleGauss()

Double_t fDoubleGauss ( Double_t *  x,
Double_t *  par 
)

Two gaussians + 1st degree polynomial background.

Here is the call graph for this function:

◆ fDoubleGaussErf()

Double_t fDoubleGaussErf ( Double_t *  x,
Double_t *  par 
)

Two gaussians + 1st degree polynomial background + erf.

Here is the call graph for this function:

◆ fGauss()

Double_t fGauss ( Double_t *  x,
Double_t *  par 
)

functions to fit to peaks Gaussian plus constant background

◆ fRadWareFit()

Double_t fRadWareFit ( Double_t *  x,
Double_t *  par 
)

same as above + skew gaussian (exp convovled with gaussian) for tail [0] = H_n [1] = c [2] = sigma [3] = R [4] = step [5] = beta [6],[7],[8] = background

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fRadWareFitNoSkew()

Double_t fRadWareFitNoSkew ( Double_t *  x,
Double_t *  par 
)

https://radware.phy.ornl.gov/gf3/gf3.html#3.6.

Gaussian + 1 deg poly + ErrorFunction backgrounds

Here is the call graph for this function:

◆ fRadWareSkewNorm()

Double_t fRadWareSkewNorm ( Double_t *  x,
Double_t *  par 
)

not sure what this one is

Here is the call graph for this function:

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const PeakInfo a_peakInfo 
)

◆ operator>>()

std::istream& operator>> ( std::istream &  a_istream,
PeakInfo a_peakInfo 
)