ATLAS Offline Software
|
#include <APReweight2D.h>
Public Member Functions | |
APReweight2D () | |
Default constructor. More... | |
APReweight2D (TH2 *denominator_in, TH2 *numerator_in, bool isTrig=false) | |
Constructor for histograms (numerator/denominator) to read in. More... | |
virtual | ~APReweight2D () |
Default destructor. More... | |
void | ReadEfficiency (TH2 *efficiency_in, TH2 *err_low_in, TH2 *err_high_in=0) |
Read efficiencies and upper/lower uncertainty (if numerator/denominator not applicable (e.g. More... | |
APWeightEntry * | GetBinWeight (unsigned int bin_x, unsigned int bin_y) const |
Get Weight entry for a given pair of bin numbers. More... | |
APWeightEntry * | GetWeight (double value_x, double value_y) const |
Get Weight entry for a given pair of values. More... | |
double | GetSampleScale () const |
Get scale factor that was calculated from sample sizes upon instantiation. More... | |
unsigned int | NBins () const |
Get amount of bins. More... | |
unsigned int | GetBinX (double value_x) const |
Get bin number in X that corresponds to a given value. More... | |
unsigned int | GetBinY (double value_y) const |
Get bin number in Y that corresponds to a given value. More... | |
const TH2D * | GetDenominatorHist () const |
Get original denominator histogram. More... | |
const TH2D * | GetNumeratorHist () const |
Get original numerator histogram. More... | |
void | SetSystUncert (double rel_uncert) |
Set the global relative (!) systematic uncertainty of all efficiencies/weights. More... | |
void | SetQuietMode (bool isQuiet=true) |
Sets the flag to turn off messages. More... | |
unsigned int | GetID () const |
Returns the unique ID for assignment of APWeightEntries to source. More... | |
Public Attributes | |
ClassDef(APReweight2D, 1) private TH2D * | m_numerator_hist |
< Holds the original denominator histogram. More... | |
std::vector< std::vector< APWeightEntry * > > | m_weights |
Holds all weight entries. More... | |
unsigned int | m_n_bins_x |
Holds the amount of bins in X. More... | |
unsigned int | m_n_bins_y |
Holds the amount of bins in Y. More... | |
TAxis * | m_axis_x |
Holds the X axis of the APReweight2D instance (from input histograms). More... | |
TAxis * | m_axis_y |
Holds the Y axis of the APReweight2D instance (from input histograms). More... | |
double | m_scale |
Holds the scale factor that was calculated from sample sizes upon instantiation. More... | |
bool | m_isTrig |
Flag to determine if the class holds trigger efficiencies or "simple" MC weights. More... | |
bool | m_isQuiet |
Flag to turn off messages. More... | |
double | m_syst_uncert_global |
Holds the global relative (!) systematic uncertainty of all efficiencies/weights. More... | |
APWeightEntry * | m_empty_weight |
Dummy weight (equals 0.) to return if value out of range is provided. More... | |
Static Public Attributes | |
static ClassDef(APReweightBase, 1) protected std::atomic< unsigned int > | s_NID = 0 |
< Holds the unique ID for assignment of APWeightEntries to source. More... | |
Class to store 2D parameterized weight maps
Stores a 2D parameterization of APWeightEntries from numerator and denominator histograms or from an efficiency histogram and uncertainties.
Definition at line 29 of file APReweight2D.h.
APReweight2D::APReweight2D | ( | ) |
APReweight2D::APReweight2D | ( | TH2 * | denominator_in, |
TH2 * | numerator_in, | ||
bool | isTrig = false |
||
) |
Constructor for histograms (numerator/denominator) to read in.
Definition at line 27 of file APReweight2D.cxx.
|
virtual |
APWeightEntry * APReweight2D::GetBinWeight | ( | unsigned int | bin_x, |
unsigned int | bin_y | ||
) | const |
unsigned int APReweight2D::GetBinX | ( | double | value_x | ) | const |
Get bin number in X that corresponds to a given value.
Definition at line 134 of file APReweight2D.cxx.
unsigned int APReweight2D::GetBinY | ( | double | value_y | ) | const |
Get bin number in Y that corresponds to a given value.
Definition at line 144 of file APReweight2D.cxx.
const TH2D * APReweight2D::GetDenominatorHist | ( | ) | const |
Get original denominator histogram.
Definition at line 118 of file APReweight2D.cxx.
|
inherited |
Returns the unique ID for assignment of APWeightEntries to source.
Definition at line 23 of file APReweightBase.cxx.
const TH2D * APReweight2D::GetNumeratorHist | ( | ) | const |
Get original numerator histogram.
Definition at line 122 of file APReweight2D.cxx.
double APReweight2D::GetSampleScale | ( | ) | const |
Get scale factor that was calculated from sample sizes upon instantiation.
Definition at line 126 of file APReweight2D.cxx.
APWeightEntry * APReweight2D::GetWeight | ( | double | value_x, |
double | value_y | ||
) | const |
Get Weight entry for a given pair of values.
Definition at line 114 of file APReweight2D.cxx.
unsigned int APReweight2D::NBins | ( | ) | const |
Get amount of bins.
Definition at line 130 of file APReweight2D.cxx.
void APReweight2D::ReadEfficiency | ( | TH2 * | efficiency_in, |
TH2 * | err_low_in, | ||
TH2 * | err_high_in = 0 |
||
) |
Read efficiencies and upper/lower uncertainty (if numerator/denominator not applicable (e.g.
Bootstrap)).
Definition at line 66 of file APReweight2D.cxx.
void APReweight2D::SetQuietMode | ( | bool | isQuiet = true | ) |
Sets the flag to turn off messages.
Definition at line 162 of file APReweight2D.cxx.
void APReweight2D::SetSystUncert | ( | double | rel_uncert | ) |
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
Definition at line 154 of file APReweight2D.cxx.
TAxis* APReweight2D::m_axis_x |
Holds the X axis of the APReweight2D instance (from input histograms).
Definition at line 60 of file APReweight2D.h.
TAxis* APReweight2D::m_axis_y |
Holds the Y axis of the APReweight2D instance (from input histograms).
Definition at line 61 of file APReweight2D.h.
|
inherited |
Dummy weight (equals 0.) to return if value out of range is provided.
Definition at line 40 of file APReweightBase.h.
|
inherited |
Flag to turn off messages.
Definition at line 38 of file APReweightBase.h.
|
inherited |
Flag to determine if the class holds trigger efficiencies or "simple" MC weights.
Definition at line 37 of file APReweightBase.h.
unsigned int APReweight2D::m_n_bins_x |
Holds the amount of bins in X.
Definition at line 58 of file APReweight2D.h.
unsigned int APReweight2D::m_n_bins_y |
Holds the amount of bins in Y.
Definition at line 59 of file APReweight2D.h.
ClassDef (APReweight2D,1) private TH2D* APReweight2D::m_numerator_hist |
< Holds the original denominator histogram.
Holds the original numerator histogram.
Definition at line 56 of file APReweight2D.h.
|
inherited |
Holds the scale factor that was calculated from sample sizes upon instantiation.
Definition at line 36 of file APReweightBase.h.
|
inherited |
Holds the global relative (!) systematic uncertainty of all efficiencies/weights.
Definition at line 39 of file APReweightBase.h.
std::vector< std::vector< APWeightEntry* > > APReweight2D::m_weights |
Holds all weight entries.
Definition at line 57 of file APReweight2D.h.
|
staticinherited |
< Holds the unique ID for assignment of APWeightEntries to source.
Holds the overall number of assigned IDs.
Definition at line 35 of file APReweightBase.h.