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

#include <SingleTOFAnalysis.h>

Public Member Functions

 SingleTOFAnalysis ()
 
 SingleTOFAnalysis (double a_flightPath, double a_timeCalib=0)
 
int loadExpDataTrees (std::string a_fileName, int a_ch)
 
int addResponseTree (std::string a_filename)
 
TH1 * generatePSDPlot ()
 this function constructs histograms for obtaining psd cuts More...
 
std::vector< TH1 * > generateCalibrationAndPSDCutPlots (std::string a_psdBoundFileName)
 this function reads a series of xy pairs for boundary lines More...
 
int loadPSDBounds (std::string a_psdBoundFileName)
 
TH1 * correctGammaPeak (TH1 *a_gammaTimeHistory, double a_startTime, double a_stopTime)
 
TH3 * createResponseMatrix (TH1 *a_gammaTimeHistory)
 
TMultiGraph * getPSDBoundPlot ()
 this function returns a multigraph with the psd bounds More...
 
TH2F * producePH_V_TOF (TH1 *a_spectrum, TH3 *a_responseMatrix)
 
int setTimeBinWidth (double a_timeBinWidth)
 
int setTofMin (double a_tofMin)
 
int setTofMax (double a_tofMax)
 
int setPhRes (double a_phRes)
 
int setPhMin (double a_phMin)
 
int setPhMax (double a_phMax)
 
double getTimeBinWidth ()
 
double getTofMin ()
 
double getTofMax ()
 
double getPhRes ()
 
double getPhMin ()
 
double getPhMax ()
 

Detailed Description

this class is intended to manage an provide analysis of reduced data products from both the simulation and data collected from single tof experiments relevant reduction classes currently include TOFPostProcessing.cpp for experimental data and SingleTOFAna.h for simulations currently focused on a single detector simultaneous consideration of multiple detector should maybe just be built out of mutltiple instantiations of this class

Constructor & Destructor Documentation

◆ SingleTOFAnalysis() [1/2]

SingleTOFAnalysis::SingleTOFAnalysis ( )

default constructor puts the class into a working state with dummy parameters. It won't do much without loading file

◆ SingleTOFAnalysis() [2/2]

SingleTOFAnalysis::SingleTOFAnalysis ( double  a_flightPath,
double  a_timeCalib = 0 
)

onstructor puts the class into a working state with basic parameters. It won't do much without loading file

Member Function Documentation

◆ addResponseTree()

int SingleTOFAnalysis::addResponseTree ( std::string  a_filename)

add the response matrix reuction and derived quantities for the simulation of the experimental configuration

Here is the call graph for this function:

◆ correctGammaPeak()

TH1 * SingleTOFAnalysis::correctGammaPeak ( TH1 *  a_gammaTimeHistory,
double  a_startTime,
double  a_stopTime 
)

this function takes the gamma historay as well as two time points at which to consider the background for a subtraction to be used in the generation of an appropriately smeared response matrix

◆ createResponseMatrix()

TH3 * SingleTOFAnalysis::createResponseMatrix ( TH1 *  a_gammaTimeHistory)

◆ generateCalibrationAndPSDCutPlots()

std::vector< TH1 * > SingleTOFAnalysis::generateCalibrationAndPSDCutPlots ( std::string  a_psdBoundFileName)

this function reads a series of xy pairs for boundary lines

◆ generatePSDPlot()

TH1 * SingleTOFAnalysis::generatePSDPlot ( )

this function constructs histograms for obtaining psd cuts

◆ getPhMax()

double SingleTOFAnalysis::getPhMax ( )

◆ getPhMin()

double SingleTOFAnalysis::getPhMin ( )

◆ getPhRes()

double SingleTOFAnalysis::getPhRes ( )

◆ getPSDBoundPlot()

TMultiGraph * SingleTOFAnalysis::getPSDBoundPlot ( )

this function returns a multigraph with the psd bounds

◆ getTimeBinWidth()

double SingleTOFAnalysis::getTimeBinWidth ( )

◆ getTofMax()

double SingleTOFAnalysis::getTofMax ( )

◆ getTofMin()

double SingleTOFAnalysis::getTofMin ( )

◆ loadExpDataTrees()

int SingleTOFAnalysis::loadExpDataTrees ( std::string  a_fileName,
int  a_ch 
)

default constructor for use with detectors takes and loads the trees from reduced experimental data

◆ loadPSDBounds()

int SingleTOFAnalysis::loadPSDBounds ( std::string  a_psdBoundFileName)

this function generates the histograms needed for getting time of flight calibrations this function reads a series of PSD boundary graphs corresponding to gamma and neutron bounds for the experiments

this function reads a series of PSD boundary graphs corresponding to gamma and neutron bounds for the experiments

◆ producePH_V_TOF()

TH2F * SingleTOFAnalysis::producePH_V_TOF ( TH1 *  a_spectrum,
TH3 *  a_responseMatrix 
)

◆ setPhMax()

int SingleTOFAnalysis::setPhMax ( double  a_phMax)

◆ setPhMin()

int SingleTOFAnalysis::setPhMin ( double  a_phMin)

◆ setPhRes()

int SingleTOFAnalysis::setPhRes ( double  a_phRes)

◆ setTimeBinWidth()

int SingleTOFAnalysis::setTimeBinWidth ( double  a_timeBinWidth)

◆ setTofMax()

int SingleTOFAnalysis::setTofMax ( double  a_tofMax)

◆ setTofMin()

int SingleTOFAnalysis::setTofMin ( double  a_tofMin)

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