24class TGraphAsymmErrors;
29 APWeightHist(
const char *name,
const char *title,
const int n_bins,
const float x_min,
const float x_max);
37 TH1D*
GetBinPDF(
unsigned int bin,
bool autocompute =
true);
Class to store a single weight entry (one bin).
APWeightHist(const char *name, const char *title, const int n_bins, const float x_min, const float x_max)
Constructor which takes histo title, amount of bins and the range and optionally the preicision to us...
ClassDef(APWeightHist, 1)
ClassDef for ROOTCINT dictionary.
void ComputeGraph(const int prec=250)
Computes the resulting graph from all added ntuples and calculates the uncertainties for all bins.
int Fill(const double value, APWeightEntry *weight)
< Overloads TH1D's Fill method.
APWeightHist()
Default constructor.
std::vector< std::vector< APWeightEntry * > > m_binned_weights
Holds all filled weights weights as pointers.
TGraphAsymmErrors * m_graph_stat
Holds the histogram with statistical uncertainties.
TH1D * GetBinPDF(unsigned int bin, bool autocompute=true)
std::vector< double > m_SumSys2
Holds the variances of systematic uncertainties for the individual bins.
~APWeightHist()
Default destructor.
std::vector< TH1D * > m_bin_dists
Holds the PDFs for the individual bins.
TGraphErrors * m_graph_syst
Holds the histogram with systematic uncertainties.
TGraphAsymmErrors * GetGraphStatUncert(bool autocompute=true)
Extracts the histogram with statistical uncertainties.
TGraphErrors * GetGraphSystUncert(bool simple=true, bool autocompute=true)
Extracts the histogram with systematic uncertainties.
double m_computed_entries
Flag to store information about the status of the computation.