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

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

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ EffLoader()

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

Construct a new EffLoader 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 per-axis bin numbers.

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

◆ eval_byglobal()

std::vector< float > eval_byglobal ( int  globalbin)

Evaluate by global bin number.

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

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