|
ATLAS Offline Software
|
Go to the documentation of this file.
34 APReweight(TTree*
denominator,
const std::string& denominator_branch, TTree* numerator,
const std::string& numerator_branch,
unsigned int n_bins,
double x_min,
double x_max,
bool isTrig =
false);
35 APReweight(std::vector< double >
denominator, std::vector< double > numerator,
unsigned int n_bins,
double x_min,
double x_max,
bool isTrig =
false);
36 APReweight(TH1* denominator_in, TH1* numerator_in,
bool isTrig =
false);
39 void ReadEfficiency(TH1* efficiency_in, TH1* err_low_in, TH1* err_high_in = 0);
45 unsigned int NBins()
const;
57 TH1D* m_denominator_hist;
void SetSystUncert(double rel_uncert)
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
unsigned int m_n_bins
Holds the amount of bins.
virtual ~APReweight()
Default destructor.
void ReadEfficiency(TH1 *efficiency_in, TH1 *err_low_in, TH1 *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
Holds the axis of the APReweight instance (from input histograms).
APReweight()
Default constructor.
const TH1D * GetDenominatorHist() const
Get original denominator histogram.
const TH1D * GetNumeratorHist() const
Get original numerator histogram.
ClassDef(APReweight, 1) private TH1D * m_numerator_hist
< Holds the original denominator histogram.
void SetQuietMode(bool isQuiet=true)
Sets the flag to turn off messages.
APWeightEntry * GetBinWeight(unsigned int bin) const
Get Weight entry for a given bin number.
std::vector< APWeightEntry * > m_weights
Holds all weight entries.
unsigned int GetBin(double value) const
Get bin number that corresponds to a given value.
APWeightEntry * GetWeight(double value) const
Get Weight entry for a given value.