![]() |
TIMBER
beta
Tree Interface for Making Binned Events with RDataFrame
|
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 | |
| Trigger_weight (std::string filename, std::string histname) | |
| Construct a new Trigger_weight object. More... | |
| 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... | |
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.
| Trigger_weight | ( | std::string | filename, |
| std::string | histname | ||
| ) |
Construct a new Trigger_weight object.
| filename | |
| histname |
| 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.
| var | Branch/column name to evaluate |
| plateau | Assumes plateau (100% efficiency with no uncertainty) beyond provided value. Defaults to -1.0 in which case there is no plateau considered. |
1.8.13