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

C++ class. Specializes in the construction of trigger efficiency weights stored as histograms. Uncertainties are calculated as one half of the trigger inefficiency (ie. (1-eff)/2). More...

Public Member Functions

RVec< float > eval (float var, float plateau=0)
 Evaluates the efficiency as a weight for the provided value, var. Also calculates variations of the weight with uncertainties calculated as one half of the trigger inefficiency. More...
 
 Trigger_weight (std::string filename, std::string histname)
 Construct a new Trigger_weight object. More...
 

Detailed Description

C++ class. Specializes in the construction of trigger efficiency weights stored as histograms. Uncertainties are calculated as one half of the trigger inefficiency (ie. (1-eff)/2).

Uncertainties are capped to never be greater than 1 or less than 0. Additionally, a plateau value can be provided which assumes 100% efficiency (and zero uncertainty) beyond the provided threshold.

Finally, if a bin is 0 and the surrounding bins are non-zero (this could happen in the case of poor statistics), a value for the 0 bin will be linearly interpolated from the two neighboring bins.

Constructor & Destructor Documentation

◆ Trigger_weight()

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

Construct a new Trigger_weight object.

Parameters
filename
histname

Member Function Documentation

◆ eval()

RVec< float > eval ( float  var,
float  plateau = 0 
)

Evaluates the efficiency as a weight for the provided value, var. Also calculates variations of the weight with uncertainties calculated as one half of the trigger inefficiency.

Parameters
varBranch/column name to evaluate
plateauAssumes plateau (100% efficiency with no uncertainty) beyond provided value. Defaults to -1.0 in which case there is no plateau considered.
Returns
RVec<float> {nominal, up, down}

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