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