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