|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef APWeightHist_h
18 #define APWeightHist_h
24 class 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);
std::vector< double > m_SumSys2
Holds the variances of systematic uncertainties for the individual bins.
double m_computed_entries
Flag to store information about the status of the computation.
APWeightHist()
Default constructor.
int Fill(const double value, APWeightEntry *weight)
< Overloads TH1D's Fill method.
TGraphAsymmErrors * GetGraphStatUncert(bool autocompute=true)
Extracts the histogram with statistical uncertainties.
~APWeightHist()
Default destructor.
std::vector< std::vector< APWeightEntry * > > m_binned_weights
Holds all filled weights weights as pointers.
TH1D * GetBinPDF(unsigned int bin, bool autocompute=true)
TGraphErrors * m_graph_syst
Holds the histogram with systematic uncertainties.
TGraphAsymmErrors * m_graph_stat
Holds the histogram with statistical uncertainties.
ClassDef(APWeightHist, 1)
ClassDef for ROOTCINT dictionary.
std::vector< TH1D * > m_bin_dists
Holds the PDFs for the individual bins.
TGraphErrors * GetGraphSystUncert(bool simple=true, bool autocompute=true)
Extracts the histogram with systematic uncertainties.
void ComputeGraph(const int prec=250)
Computes the resulting graph from all added ntuples and calculates the uncertainties for all bins.