ATLAS Offline Software
|
#include <APReweight3D.h>
Public Member Functions | |
APReweight3D () | |
Default constructor. More... | |
APReweight3D (TH3 *denominator_in, TH3 *numerator_in, bool isTrig=false) | |
Constructor for histograms (numerator/denominator) to read in. More... | |
virtual | ~APReweight3D () |
Default destructor. More... | |
void | 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. More... | |
APWeightEntry * | GetBinWeight (unsigned int bin_x, unsigned int bin_y, unsigned int bin_z) const |
Get Weight entry for a given triplet of bin numbers. More... | |
APWeightEntry * | GetWeight (double value_x, double value_y, double value_z) const |
Get Weight entry for a given triplet 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... | |
unsigned int | GetBinZ (double value_z) const |
Get bin number in Z that corresponds to a given value. More... | |
const TH3D * | GetDenominatorHist () const |
Get original denominator histogram. More... | |
const TH3D * | 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(APReweight3D, 1) private TH3D * | m_numerator_hist |
< Holds the original denominator histogram. More... | |
std::vector< 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... | |
unsigned int | m_n_bins_z |
Holds the amount of bins in Z. More... | |
TAxis * | m_axis_x |
Holds the X axis of the APReweight3D instance (from input histograms). More... | |
TAxis * | m_axis_y |
Holds the Y axis of the APReweight3D instance (from input histograms). More... | |
TAxis * | m_axis_z |
Holds the Z axis of the APReweight3D 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 3D parameterized weight maps
Stores a 3D parameterization of APWeightEntries from numerator and denominator histograms or from an efficiency histogram and uncertainties.
Definition at line 29 of file APReweight3D.h.
APReweight3D::APReweight3D | ( | ) |
APReweight3D::APReweight3D | ( | TH3 * | denominator_in, |
TH3 * | numerator_in, | ||
bool | isTrig = false |
||
) |
Constructor for histograms (numerator/denominator) to read in.
Definition at line 29 of file APReweight3D.cxx.
|
virtual |
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.
Definition at line 128 of file APReweight3D.cxx.
unsigned int APReweight3D::GetBinX | ( | double | value_x | ) | const |
Get bin number in X that corresponds to a given value.
Definition at line 153 of file APReweight3D.cxx.
unsigned int APReweight3D::GetBinY | ( | double | value_y | ) | const |
Get bin number in Y that corresponds to a given value.
Definition at line 163 of file APReweight3D.cxx.
unsigned int APReweight3D::GetBinZ | ( | double | value_z | ) | const |
Get bin number in Z that corresponds to a given value.
Definition at line 173 of file APReweight3D.cxx.
const TH3D * APReweight3D::GetDenominatorHist | ( | ) | const |
Get original denominator histogram.
Definition at line 137 of file APReweight3D.cxx.
|
inherited |
Returns the unique ID for assignment of APWeightEntries to source.
Definition at line 23 of file APReweightBase.cxx.
const TH3D * APReweight3D::GetNumeratorHist | ( | ) | const |
Get original numerator histogram.
Definition at line 141 of file APReweight3D.cxx.
double APReweight3D::GetSampleScale | ( | ) | const |
Get scale factor that was calculated from sample sizes upon instantiation.
Definition at line 145 of file APReweight3D.cxx.
APWeightEntry * APReweight3D::GetWeight | ( | double | value_x, |
double | value_y, | ||
double | value_z | ||
) | const |
Get Weight entry for a given triplet of values.
Definition at line 133 of file APReweight3D.cxx.
unsigned int APReweight3D::NBins | ( | ) | const |
Get amount of bins.
Definition at line 149 of file APReweight3D.cxx.
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)).
Definition at line 75 of file APReweight3D.cxx.
void APReweight3D::SetQuietMode | ( | bool | isQuiet = true | ) |
Sets the flag to turn off messages.
Definition at line 193 of file APReweight3D.cxx.
void APReweight3D::SetSystUncert | ( | double | rel_uncert | ) |
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
Definition at line 183 of file APReweight3D.cxx.
TAxis* APReweight3D::m_axis_x |
Holds the X axis of the APReweight3D instance (from input histograms).
Definition at line 62 of file APReweight3D.h.
TAxis* APReweight3D::m_axis_y |
Holds the Y axis of the APReweight3D instance (from input histograms).
Definition at line 63 of file APReweight3D.h.
TAxis* APReweight3D::m_axis_z |
Holds the Z axis of the APReweight3D instance (from input histograms).
Definition at line 64 of file APReweight3D.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 APReweight3D::m_n_bins_x |
Holds the amount of bins in X.
Definition at line 59 of file APReweight3D.h.
unsigned int APReweight3D::m_n_bins_y |
Holds the amount of bins in Y.
Definition at line 60 of file APReweight3D.h.
unsigned int APReweight3D::m_n_bins_z |
Holds the amount of bins in Z.
Definition at line 61 of file APReweight3D.h.
ClassDef (APReweight3D,1) private TH3D* APReweight3D::m_numerator_hist |
< Holds the original denominator histogram.
Holds the original numerator histogram.
Definition at line 57 of file APReweight3D.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< std::vector< APWeightEntry* > > > APReweight3D::m_weights |
Holds all weight entries.
Definition at line 58 of file APReweight3D.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.