Berkeley Nuclear Data Software
|
#include <NeutronAngularDistAna.h>
Public Member Functions | |
NeutronAngularDistAna () | |
void | readEfficiencyData (std::string a_effFile) |
void | uniBinEfficiency (int a_detID, int a_nBins, double a_lowE=1) |
draw efficiency with uniform a_lowE-10 MeV binning More... | |
TH2F * | drawEffCorrAngDist (std::string a_expFile, std::string a_bkgFile) |
void | addExperimentalTOFData (std::string a_fileName) |
void | addExperimentalTOFBKGData (std::string a_fileName) |
void | setBackgroundScaler (double a_bkgScaler, bool a_scintScint=false) |
std::vector< double > | getEnerDistTOF (int a_detID, double a_tof, bool a_draw=false, bool a_useEff=true, double a_tofWidth=8) |
std::vector< double > | getEnerDistTOF (double a_angle, double a_angleWidth, double a_tof, bool a_draw=false, bool a_useEff=true, double a_tofWidth=8) |
void | drawRFExpBkg (int a_detID, bool a_drawSub=false) |
draw x-projection of m_tofHists histograms for data and background More... | |
void | plotEnerDistTOF (int a_detID) |
plots integral and temperature from maxwellian fit across TOF domain More... | |
void | plotEnerDistTOF (double a_angle, double a_angleWidth) |
map< double, std::pair< double, double > > | plotEnerDistTOF (int a_detID, Eigen::VectorXf a_calcYield, double a_normalization=-1) |
void | plot2DEnerDistTOF (int a_detID) |
uses fits to draw time-since-last-rf vs neutron energy More... | |
void | getAngDistTOF (int a_tof, bool a_normalize=false, int a_tofWidth=8) |
EffData | getEffData (int a_detID) |
returns efficiency data More... | |
TH2F * | getScintScintHist (int a_detID, bool a_normEff=false) |
This class is intended to aid in the analysis of secondary neutron distributions from GENESIS experiments
NeutronAngularDistAna::NeutronAngularDistAna | ( | ) |
void NeutronAngularDistAna::addExperimentalTOFBKGData | ( | std::string | a_fileName | ) |
stores 2D time-since-last-RF vs outgoing neutron energy hists in m_tofHistsBKG
void NeutronAngularDistAna::addExperimentalTOFData | ( | std::string | a_fileName | ) |
read in histograms generated by GenesisPhysEventAna::getNeutronEnergyVsTimeSinceRF stores 2D time-since-last-RF vs outgoing neutron energy hists in m_tofHists can also load scint/scint hists from GenesisPhysEventAna::getScintScint... stores in m_tofHistsOrgOrg
TH2F * NeutronAngularDistAna::drawEffCorrAngDist | ( | std::string | a_expFile, |
std::string | a_bkgFile | ||
) |
looking for histogram called "neutronAngularDist_En" which can be made in GenesisPhysEventAna::getNeutronAngularDist()
void NeutronAngularDistAna::drawRFExpBkg | ( | int | a_detID, |
bool | a_drawSub = false |
||
) |
draw x-projection of m_tofHists histograms for data and background
void NeutronAngularDistAna::getAngDistTOF | ( | int | a_tof, |
bool | a_normalize = false , |
||
int | a_tofWidth = 8 |
||
) |
plots energy-integrated neutron yield at a given TOF for all angles (detectors); a_normalize = true set lowest angle to be at y = 1
EffData NeutronAngularDistAna::getEffData | ( | int | a_detID | ) |
returns efficiency data
vector< double > NeutronAngularDistAna::getEnerDistTOF | ( | double | a_angle, |
double | a_angleWidth, | ||
double | a_tof, | ||
bool | a_draw = false , |
||
bool | a_useEff = true , |
||
double | a_tofWidth = 8 |
||
) |
same as above but for a range of angle i.e. a_angle = 10, a_angleWidth = 5 for 10 +/- 5
vector< double > NeutronAngularDistAna::getEnerDistTOF | ( | int | a_detID, |
double | a_tof, | ||
bool | a_draw = false , |
||
bool | a_useEff = true , |
||
double | a_tofWidth = 8 |
||
) |
energy distribution at a given tof fits maxwellian after correcting for efficiency
TH2F * NeutronAngularDistAna::getScintScintHist | ( | int | a_detID, |
bool | a_normEff = false |
||
) |
returns background sub'd set a_normEff=true to normalize by efficiency time-since-last-rf vs outgoing neutron energy from scint/scint
going for 8 ns time bins, .2 MeV energy bins
void NeutronAngularDistAna::plot2DEnerDistTOF | ( | int | a_detID | ) |
uses fits to draw time-since-last-rf vs neutron energy
void NeutronAngularDistAna::plotEnerDistTOF | ( | double | a_angle, |
double | a_angleWidth | ||
) |
void NeutronAngularDistAna::plotEnerDistTOF | ( | int | a_detID | ) |
plots integral and temperature from maxwellian fit across TOF domain
map< double, std::pair< double, double > > NeutronAngularDistAna::plotEnerDistTOF | ( | int | a_detID, |
Eigen::VectorXf | a_calcYield, | ||
double | a_normalization = -1 |
||
) |
same but takes a yield calc'd from sTOF/TALYS and a normalization a_normalization = -1 -> normalize to area
void NeutronAngularDistAna::readEfficiencyData | ( | std::string | a_effFile | ) |
reads in efficiency data, expecting a tab-delimited file with columns: det ID | det angle | energy bin lower edge | eff | eff error
void NeutronAngularDistAna::setBackgroundScaler | ( | double | a_bkgScaler, |
bool | a_scintScint = false |
||
) |
set m_bkgScaler for normalization in background subtraction (i.e. target count time / background count time); set a_scintScint=true if scaler is for scint/scint hists default value of m_bkgScaler is 1 default m_bkgScalerOrgOrg = 1
void NeutronAngularDistAna::uniBinEfficiency | ( | int | a_detID, |
int | a_nBins, | ||
double | a_lowE = 1 |
||
) |
draw efficiency with uniform a_lowE-10 MeV binning