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

#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)
 

Detailed Description

This class is intended to aid in the analysis of secondary neutron distributions from GENESIS experiments

Constructor & Destructor Documentation

◆ NeutronAngularDistAna()

NeutronAngularDistAna::NeutronAngularDistAna ( )

Member Function Documentation

◆ addExperimentalTOFBKGData()

void NeutronAngularDistAna::addExperimentalTOFBKGData ( std::string  a_fileName)

stores 2D time-since-last-RF vs outgoing neutron energy hists in m_tofHistsBKG

◆ addExperimentalTOFData()

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

◆ drawEffCorrAngDist()

TH2F * NeutronAngularDistAna::drawEffCorrAngDist ( std::string  a_expFile,
std::string  a_bkgFile 
)

looking for histogram called "neutronAngularDist_En" which can be made in GenesisPhysEventAna::getNeutronAngularDist()

◆ drawRFExpBkg()

void NeutronAngularDistAna::drawRFExpBkg ( int  a_detID,
bool  a_drawSub = false 
)

draw x-projection of m_tofHists histograms for data and background

◆ getAngDistTOF()

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

Here is the call graph for this function:

◆ getEffData()

EffData NeutronAngularDistAna::getEffData ( int  a_detID)

returns efficiency data

◆ getEnerDistTOF() [1/2]

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

◆ getEnerDistTOF() [2/2]

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

Here is the caller graph for this function:

◆ getScintScintHist()

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

◆ plot2DEnerDistTOF()

void NeutronAngularDistAna::plot2DEnerDistTOF ( int  a_detID)

uses fits to draw time-since-last-rf vs neutron energy

Here is the call graph for this function:

◆ plotEnerDistTOF() [1/3]

void NeutronAngularDistAna::plotEnerDistTOF ( double  a_angle,
double  a_angleWidth 
)
Here is the call graph for this function:

◆ plotEnerDistTOF() [2/3]

void NeutronAngularDistAna::plotEnerDistTOF ( int  a_detID)

plots integral and temperature from maxwellian fit across TOF domain

Here is the call graph for this function:

◆ plotEnerDistTOF() [3/3]

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

Here is the call graph for this function:

◆ readEfficiencyData()

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

◆ setBackgroundScaler()

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

◆ uniBinEfficiency()

void NeutronAngularDistAna::uniBinEfficiency ( int  a_detID,
int  a_nBins,
double  a_lowE = 1 
)

draw efficiency with uniform a_lowE-10 MeV binning


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