|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef APReweight2D_h
18 #define APReweight2D_h
33 APReweight2D(TH2* denominator_in, TH2* numerator_in,
bool isTrig =
false);
36 void ReadEfficiency(TH2* efficiency_in, TH2* err_low_in, TH2* err_high_in = 0);
42 unsigned int NBins()
const;
43 unsigned int GetBinX(
double value_x)
const;
44 unsigned int GetBinY(
double value_y)
const;
55 TH2D* m_denominator_hist;
57 std::vector< std::vector< APWeightEntry* > >
m_weights;
APWeightEntry * GetBinWeight(unsigned int bin_x, unsigned int bin_y) const
Get Weight entry for a given pair of bin numbers.
APReweight2D()
Default constructor.
const TH2D * GetNumeratorHist() const
Get original numerator histogram.
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....
const TH2D * GetDenominatorHist() const
Get original denominator histogram.
void SetQuietMode(bool isQuiet=true)
Sets the flag to turn off messages.
unsigned int GetBinX(double value_x) const
Get bin number in X that corresponds to a given value.
TAxis * m_axis_y
Holds the Y axis of the APReweight2D instance (from input histograms).
TAxis * m_axis_x
Holds the X axis of the APReweight2D instance (from input histograms).
unsigned int m_n_bins_x
Holds the amount of bins in X.
void SetSystUncert(double rel_uncert)
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
APWeightEntry * GetWeight(double value_x, double value_y) const
Get Weight entry for a given pair of values.
unsigned int NBins() const
Get amount of bins.
unsigned int GetBinY(double value_y) const
Get bin number in Y that corresponds to a given value.
unsigned int m_n_bins_y
Holds the amount of bins in Y.
std::vector< std::vector< APWeightEntry * > > m_weights
Holds all weight entries.
virtual ~APReweight2D()
Default destructor.
double GetSampleScale() const
Get scale factor that was calculated from sample sizes upon instantiation.
ClassDef(APReweight2D, 1) private TH2D * m_numerator_hist
< Holds the original denominator histogram.