33 APReweightND(THnSparse* denominator_in, THnSparse* numerator_in,
bool isTrig =
false);
36 void ReadEfficiency(THnSparse* efficiency_in, THnSparse* err_low_in, THnSparse* err_high_in = 0);
42 unsigned int NBins()
const;
APReweightBase()
Default constructor.
void SetQuietMode(bool isQuiet=true)
Sets the flag to turn off messages.
const THnSparse * GetDenominatorHist() const
Get original denominator histogram.
std::vector< TAxis * > m_axes
Holds all axes of the APReweightND instance (from input histograms).
std::map< std::vector< int >, APWeightEntry * > m_weights
Holds all weight entries.
APWeightEntry * GetBinWeight(const int bin[])
Get Weight entry for a given n-tuple of bin numbers.
double GetSampleScale() const
Get scale factor that was calculated from sample sizes upon instantiation.
unsigned int NBins() const
Get amount of bins.
void SetSystUncert(double rel_uncert)
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
THnSparse * m_numerator_hist
Holds the original numerator histogram.
virtual ~APReweightND()
Default destructor.
APReweightND()
Default constructor.
void 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....
ClassDef(APReweightND, 1) private THnSparse * m_denominator_hist
< Holds the amount of dimensions.
APWeightEntry * GetWeight(double value[])
Get Weight entry for a given n-tuple of values.
const THnSparse * GetNumeratorHist() const
Get original numerator histogram.
Class to store a single weight entry (one bin).