hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
HistogramHelpers Namespace Reference

Functions

double GaussExpTails_f (double *x, double *par)
 description
 
double twoGaussExp_f (double *x, double *par)
 description
 
double twoGauss_f (double *x, double *par)
 description
 
int IterativeGaussFit (TH1 *hist, double &mu, double &mu_err, double &sigma, double &sigma_err, int m_PrintLevel=0)
 description
 
TF1 * IterativeGeneralFit (TH1 *hist, double(*fcn)(double *, double *), const std::vector< float > &initial, const std::vector< float > &fitRange, TFitResultPtr *fitr_p, int m_PrintLevel)
 description
 
void profileYwithIterativeGaussFit (TH2 *hist, TH1 *mu_graph, TH1 *sigma_graph, int num_bins=1, int m_PrintLevel=0)
 description
 
void profileZwithIterativeGaussFit (TH3 *hist, TH2 *mu_graph, TH2 *sigma_graph, int num_bins, TH2 *mu_err_graph, TH2 *sigma_err_graph)
 description
 
void HistogramConditioning (TH1 *hist, int m_PrintLevel=0)
 description
 
void OpenProjectionFile ()
 description
 
void CloseProjectionFile ()
 description
 

Variables

TFile * outFile_for_projections
 

Function Documentation

◆ CloseProjectionFile()

void CloseProjectionFile ( )

description

Definition at line 559 of file HistogramHelpers.cxx.

◆ GaussExpTails_f()

double GaussExpTails_f ( double *  x,
double *  par 
)

description

Parameters
x
par
Returns
double

Definition at line 6 of file HistogramHelpers.cxx.

◆ HistogramConditioning()

void HistogramConditioning ( TH1 *  hist,
int  m_PrintLevel = 0 
)

description

Parameters
hist
m_PrintLevel

Definition at line 566 of file HistogramHelpers.cxx.

◆ IterativeGaussFit()

int IterativeGaussFit ( TH1 *  hist,
double &  mu,
double &  mu_err,
double &  sigma,
double &  sigma_err,
int  m_PrintLevel = 0 
)

description

Parameters
hist
mu
mu_err
sigma
sigma_err
m_PrintLevel
Returns
int

Definition at line 386 of file HistogramHelpers.cxx.

◆ IterativeGeneralFit()

TF1 * IterativeGeneralFit ( TH1 *  hist,
double(*)(double *, double *)  fcn,
const std::vector< float > &  initial,
const std::vector< float > &  fitRange,
TFitResultPtr *  fitr_p,
int  m_PrintLevel 
)

description

Parameters
hist
fcn
initial
fitRange
fitr_p
m_PrintLevel
Returns
TF1*

Definition at line 346 of file HistogramHelpers.cxx.

◆ OpenProjectionFile()

void OpenProjectionFile ( )

description

Definition at line 555 of file HistogramHelpers.cxx.

◆ profileYwithIterativeGaussFit()

void profileYwithIterativeGaussFit ( TH2 *  hist,
TH1 *  mu_graph,
TH1 *  sigma_graph,
int  num_bins = 1,
int  m_PrintLevel = 0 
)

description

Parameters
hist
mu_graph
sigma_graph
num_bins
m_PrintLevel

Definition at line 225 of file HistogramHelpers.cxx.

◆ profileZwithIterativeGaussFit()

void profileZwithIterativeGaussFit ( TH3 *  hist,
TH2 *  mu_graph,
TH2 *  sigma_graph,
int  num_bins,
TH2 *  mu_err_graph,
TH2 *  sigma_err_graph 
)

description

Parameters
hist
mu_graph
sigma_graph
num_bins
mu_err_graph
sigma_err_graph

Definition at line 78 of file HistogramHelpers.cxx.

◆ twoGauss_f()

double twoGauss_f ( double *  x,
double *  par 
)

description

Parameters
x
par
Returns
double

Definition at line 63 of file HistogramHelpers.cxx.

◆ twoGaussExp_f()

double twoGaussExp_f ( double *  x,
double *  par 
)

description

Parameters
x
par
Returns
double

Definition at line 42 of file HistogramHelpers.cxx.

Variable Documentation

◆ outFile_for_projections

TFile* outFile_for_projections

description

Definition at line 121 of file HistogramHelpers.h.