#include <APReweight3D.h>
Public Member Functions | |
APReweight3D () | |
APReweight3D (TH3 *denominator_in, TH3 *numerator_in, bool isTrig=false) | |
virtual | ~APReweight3D () |
void | ReadEfficiency (TH3 *efficiency_in, TH3 *err_low_in, TH3 *err_high_in=0) |
APWeightEntry * | GetBinWeight (unsigned int bin_x, unsigned int bin_y, unsigned int bin_z) const |
APWeightEntry * | GetWeight (double value_x, double value_y, double value_z) const |
double | GetSampleScale () const |
unsigned int | NBins () const |
unsigned int | GetBinX (double value_x) const |
unsigned int | GetBinY (double value_y) const |
unsigned int | GetBinZ (double value_z) const |
TH3D * | GetDenominatorHist () const |
TH3D * | GetNumeratorHist () const |
void | SetSystUncert (double rel_uncert) |
void | SetQuietMode (bool isQuiet=true) |
Class to store 3D parameterized weight maps
Stores a 3D parameterization of APWeightEntries from numerator and denominator histograms or from an efficiency histogram and uncertainties.
APReweight3D::APReweight3D | ( | ) |
Default constructor.
APReweight3D::APReweight3D | ( | TH3 * | denominator_in, | |
TH3 * | numerator_in, | |||
bool | isTrig = false | |||
) |
Constructor for histograms (numerator/denominator) to read in.
APReweight3D::~APReweight3D | ( | ) | [virtual] |
Default destructor.
APWeightEntry * APReweight3D::GetBinWeight | ( | unsigned int | bin_x, | |
unsigned int | bin_y, | |||
unsigned int | bin_z | |||
) | const |
Get Weight entry for a given triplet of bin numbers.
unsigned int APReweight3D::GetBinX | ( | double | value_x | ) | const |
Get bin number in X that corresponds to a given value.
unsigned int APReweight3D::GetBinY | ( | double | value_y | ) | const |
Get bin number in Y that corresponds to a given value.
unsigned int APReweight3D::GetBinZ | ( | double | value_z | ) | const |
Get bin number in Z that corresponds to a given value.
TH3D * APReweight3D::GetDenominatorHist | ( | ) | const |
Get original denominator histogram.
TH3D * APReweight3D::GetNumeratorHist | ( | ) | const |
Get original numerator histogram.
double APReweight3D::GetSampleScale | ( | ) | const |
Get scale factor that was calculated from sample sizes upon instantiation.
APWeightEntry * APReweight3D::GetWeight | ( | double | value_x, | |
double | value_y, | |||
double | value_z | |||
) | const |
Get Weight entry for a given triplet of values.
unsigned int APReweight3D::NBins | ( | ) | const |
Get amount of bins.
void APReweight3D::ReadEfficiency | ( | TH3 * | efficiency_in, | |
TH3 * | err_low_in, | |||
TH3 * | err_high_in = 0 | |||
) |
Read efficiencies and upper/lower uncertainty (if numerator/denominator not applicable (e.g. Bootstrap)).
void APReweight3D::SetQuietMode | ( | bool | isQuiet = true |
) |
Sets the flag to turn off messages.
void APReweight3D::SetSystUncert | ( | double | rel_uncert | ) |
Set the global relative (!) systematic uncertainty of all efficiencies/weights.