TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
Public Member Functions | Public Attributes | List of all members
HistLoader Class Reference

C++ class. Generic histogram loader with methods to return bin values. More...

Public Member Functions

std::vector< float > eval (float xval, float yval=0., float zval=0.)
 Evaluate by axis value. More...
 
std::vector< float > eval_bybin (int binx, int biny=0, int binz=0)
 Evaluate by bin numbers. More...
 
 HistLoader ()
 Empty constructor.
 
 HistLoader (std::string filename, std::string histname)
 Construct a new HistLoader object. More...
 

Public Attributes

TH1 * hist
 Histogram object.
 

Detailed Description

C++ class. Generic histogram loader with methods to return bin values.

Constructor & Destructor Documentation

◆ HistLoader()

HistLoader ( std::string  filename,
std::string  histname 
)

Construct a new HistLoader object.

Parameters
filenameFile to access.
histnameHistogram name in the file.

Member Function Documentation

◆ eval()

std::vector< float > eval ( float  xval,
float  yval = 0.,
float  zval = 0. 
)

Evaluate by axis value.

Parameters
xval
yval
zval
Returns
std::vector<float> {nominal value, up error+nominal, down error+nominal}

◆ eval_bybin()

std::vector< float > eval_bybin ( int  binx,
int  biny = 0,
int  binz = 0 
)

Evaluate by bin numbers.

Parameters
binx
biny
binz
Returns
std::vector<float> {nominal value, up error+nominal, down error+nominal}

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