Berkeley Nuclear Data Software
Public Member Functions | List of all members
STOFFluxAnalysis Class Reference

#include <STOFFluxAnalysis.h>

Public Member Functions

 STOFFluxAnalysis ()
 default constructor More...
 
std::vector< std::vector< double > > fitLightVNeutronEnergyHist (TH2 *a_histogram, double a_minEnergy, double a_maxEnergy, double a_minLight, double a_maxLight, int a_numberOfBinPerProj)
 
std::vector< std::vector< double > > getTrueEnDist (TH2 *a_histogram, double a_minEnergy, double a_maxEnergy, int a_numberOfBinPerProj)
 
std::vector< std::vector< double > > estimateNeutronFlux (std::vector< double > a_neutronEnergy, std::vector< double > a_neutronEnergyError, std::vector< double > a_efficiency, std::vector< double > a_efficiencyError, std::vector< double > a_measIntensity, std::vector< double > a_measIntensityError, std::vector< std::vector< double >> a_trueEnergyDistribution)
 

Detailed Description

this class is intended to manage and provide analysis of reduced data products from the simulation and measured data from STOF experiments relevant reduction classes include STOFAna, STOFFluxAna and STOFPostProcessing for experimental data, and STOFSimAna for simulations

Constructor & Destructor Documentation

◆ STOFFluxAnalysis()

STOFFluxAnalysis::STOFFluxAnalysis ( )

default constructor

root includes

Member Function Documentation

◆ estimateNeutronFlux()

std::vector< std::vector< double > > STOFFluxAnalysis::estimateNeutronFlux ( std::vector< double >  a_neutronEnergy,
std::vector< double >  a_neutronEnergyError,
std::vector< double >  a_efficiency,
std::vector< double >  a_efficiencyError,
std::vector< double >  a_measIntensity,
std::vector< double >  a_measIntensityError,
std::vector< std::vector< double >>  a_trueEnergyDistribution 
)

calculating average efficiency over measuredEn bin = sum (trueEn) * efficiency(trueEn)

◆ fitLightVNeutronEnergyHist()

std::vector< std::vector< double > > STOFFluxAnalysis::fitLightVNeutronEnergyHist ( TH2 *  a_histogram,
double  a_minEnergy,
double  a_maxEnergy,
double  a_minLight,
double  a_maxLight,
int  a_numberOfBinPerProj 
)

function to automatically fit TH2D containing some linear background and a Gaussian like feature corresponding to the light deposited in the target scintillator as a function of neutron energy returns vectors of: neutron energy (bin centroid) neutron energy binwidth/2 integral of gaussian feature uncertainty on integral !!!this doesn't currently treat bins where the feature is partially cut properly

find bin associated with min/max energy

getting info about energy of bins

getting projection

SpectrumAnalysis fitter needs TH1F

pol1

Here is the call graph for this function:

◆ getTrueEnDist()

std::vector< std::vector< double > > STOFFluxAnalysis::getTrueEnDist ( TH2 *  a_histogram,
double  a_minEnergy,
double  a_maxEnergy,
int  a_numberOfBinPerProj 
)

find bin associated with min/max energy

getting info about energy of bins

getting projection

assuming we have the same x and y binning


The documentation for this class was generated from the following files: