ATLAS Offline Software
|
#include <APReweightND.h>
Public Member Functions | |
APReweightND () | |
Default constructor. More... | |
APReweightND (THnSparse *denominator_in, THnSparse *numerator_in, bool isTrig=false) | |
Constructor for histograms (numerator/denominator) to read in. More... | |
virtual | ~APReweightND () |
Default destructor. More... | |
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.g. More... | |
APWeightEntry * | GetBinWeight (const int bin[]) |
Get Weight entry for a given n-tuple of bin numbers. More... | |
APWeightEntry * | GetWeight (double value[]) |
Get Weight entry for a given n-tuple 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... | |
const THnSparse * | GetDenominatorHist () const |
Get original denominator histogram. More... | |
const THnSparse * | 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(APReweightND, 1) private THnSparse * | m_denominator_hist |
< Holds the amount of dimensions. More... | |
THnSparse * | m_numerator_hist |
Holds the original numerator histogram. More... | |
std::map< std::vector< int >, APWeightEntry * > | m_weights |
Holds all weight entries. More... | |
std::vector< TAxis * > | m_axes |
Holds all axes of the APReweightND 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 n-dimensionally parameterized weight maps
Stores a n-dimensional parameterization of APWeightEntries from numerator and denominator histograms or from an efficiency histogram and uncertainties.
Definition at line 29 of file APReweightND.h.
APReweightND::APReweightND | ( | ) |
APReweightND::APReweightND | ( | THnSparse * | denominator_in, |
THnSparse * | numerator_in, | ||
bool | isTrig = false |
||
) |
Constructor for histograms (numerator/denominator) to read in.
Definition at line 26 of file APReweightND.cxx.
|
virtual |
Default destructor.
Definition at line 100 of file APReweightND.cxx.
APWeightEntry * APReweightND::GetBinWeight | ( | const int | bin[] | ) |
Get Weight entry for a given n-tuple of bin numbers.
Definition at line 114 of file APReweightND.cxx.
const THnSparse * APReweightND::GetDenominatorHist | ( | ) | const |
Get original denominator histogram.
Definition at line 141 of file APReweightND.cxx.
|
inherited |
Returns the unique ID for assignment of APWeightEntries to source.
Definition at line 23 of file APReweightBase.cxx.
const THnSparse * APReweightND::GetNumeratorHist | ( | ) | const |
Get original numerator histogram.
Definition at line 145 of file APReweightND.cxx.
double APReweightND::GetSampleScale | ( | ) | const |
Get scale factor that was calculated from sample sizes upon instantiation.
Definition at line 149 of file APReweightND.cxx.
APWeightEntry * APReweightND::GetWeight | ( | double | value[] | ) |
unsigned int APReweightND::NBins | ( | ) | const |
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)).
Definition at line 77 of file APReweightND.cxx.
void APReweightND::SetQuietMode | ( | bool | isQuiet = true | ) |
Sets the flag to turn off messages.
Definition at line 166 of file APReweightND.cxx.
void APReweightND::SetSystUncert | ( | double | rel_uncert | ) |
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
Definition at line 159 of file APReweightND.cxx.
std::vector< TAxis* > APReweightND::m_axes |
Holds all axes of the APReweightND instance (from input histograms).
Definition at line 57 of file APReweightND.h.
ClassDef (APReweightND, 1) private THnSparse* APReweightND::m_denominator_hist |
< Holds the amount of dimensions.
Holds the original denominator histogram.
Definition at line 54 of file APReweightND.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.
THnSparse* APReweightND::m_numerator_hist |
Holds the original numerator histogram.
Definition at line 55 of file APReweightND.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::map< std::vector<int> , APWeightEntry* > APReweightND::m_weights |
Holds all weight entries.
Definition at line 56 of file APReweightND.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.