#include <APWeightHist.h>
Public Member Functions | |
| APWeightHist (const char *name, const char *title, const int n_bins, const float x_min, const float x_max) | |
| APWeightHist () | |
| ~APWeightHist () | |
| int | Fill (const double value, APWeightEntry *weight) |
| TGraphAsymmErrors * | GetGraphStatUncert (bool autocompute=true) |
| TGraphErrors * | GetGraphSystUncert (bool simple=true, bool autocompute=true) |
| void | ComputeGraph (const int prec=250) |
| TH1D * | GetBinPDF (unsigned int bin, bool autocompute=true) |
Extended histogramming class.
Extended histogramming class (inheriting from TH1D) which allows propagation of uncertainties on the actual weights used for filling.
| APWeightHist::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 use for the calculation of the uncertainty.
| APWeightHist::APWeightHist | ( | ) |
Default constructor.
| APWeightHist::~APWeightHist | ( | ) |
Default destructor.
| void APWeightHist::ComputeGraph | ( | const int | prec = 250 |
) |
Computes the resulting graph from all added ntuples and calculates the uncertainties for all bins.
| int APWeightHist::Fill | ( | const double | value, | |
| APWeightEntry * | weight | |||
| ) |
< Overloads TH1D's Fill method. Adds a weighted value to the calculation.
| TGraphAsymmErrors * APWeightHist::GetGraphStatUncert | ( | bool | autocompute = true |
) |
Extracts the histogram with statistical uncertainties.
| TGraphErrors * APWeightHist::GetGraphSystUncert | ( | bool | simple = true, |
|
| bool | autocompute = true | |||
| ) |
Extracts the histogram with systematic uncertainties.
1.6.1