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

#include <HistHelpers.h>

Static Public Member Functions

static TH1 * scintResConvolve (TH1 *a_hist, double a_A, double a_B, double a_C)
 
static double getIntegralCounts (double a_start, double a_stop, TH1 *a_hist, double &a_error)
 
static double getBinWeightedAvg (double a_start, double a_stop, TH1 *a_hist, double &a_error)
 
static std::vector< double > getGaussSeed (TH1 *a_hist)
 

Detailed Description

this namespace is intended to hold function generically useful for manipulating cern root histograms

Member Function Documentation

◆ getBinWeightedAvg()

double NSDHistHelp::getBinWeightedAvg ( double  a_start,
double  a_stop,
TH1 *  a_hist,
double &  a_error 
)
static
Here is the caller graph for this function:

◆ getGaussSeed()

std::vector< double > NSDHistHelp::getGaussSeed ( TH1 *  a_hist)
static

this function attempts to guess at pararmters for a gaussian fit of the supplied histogram. No attempt at estimating background is included

Here is the caller graph for this function:

◆ getIntegralCounts()

double NSDHistHelp::getIntegralCounts ( double  a_start,
double  a_stop,
TH1 *  a_hist,
double &  a_error 
)
static

this function computes the approximate integral of a histogram from start to stop in the user range not the bin number. The error of the integral is made available via the a_error argument. It is assumed in the function that the start value is less than the stop value additionally the value of the bins should be a number quantity not normalizd by the axis (ie counts, not counts/MeV)

this function computes the approximate integral of a histogram from start to stop in the user range not the bin number. If bins don't fully overlap with the edge of the

Here is the caller graph for this function:

◆ scintResConvolve()

TH1 * NSDHistHelp::scintResConvolve ( TH1 *  a_hist,
double  a_A,
double  a_B,
double  a_C 
)
static

this function is used to convolve a histogram with a scintillator resolution function using a Monte Carlo method.

create a copy of the hist with a new name

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

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