![]() |
ATLAS Offline Software
|
#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) | |
| Constructor which takes histo title, amount of bins and the range and optionally the preicision to use for the calculation of the uncertainty. More... | |
| APWeightHist () | |
| Default constructor. More... | |
| ~APWeightHist () | |
| Default destructor. More... | |
| int | Fill (const double value, APWeightEntry *weight) |
| < Overloads TH1D's Fill method. More... | |
| TGraphAsymmErrors * | GetGraphStatUncert (bool autocompute=true) |
| Extracts the histogram with statistical uncertainties. More... | |
| TGraphErrors * | GetGraphSystUncert (bool simple=true, bool autocompute=true) |
| Extracts the histogram with systematic uncertainties. More... | |
| void | ComputeGraph (const int prec=250) |
| Computes the resulting graph from all added ntuples and calculates the uncertainties for all bins. More... | |
| TH1D * | GetBinPDF (unsigned int bin, bool autocompute=true) |
| ClassDef (APWeightHist, 1) | |
| ClassDef for ROOTCINT dictionary. More... | |
Private Attributes | |
| double | m_computed_entries |
| Flag to store information about the status of the computation. More... | |
| std::vector< std::vector< APWeightEntry * > > | m_binned_weights |
| Holds all filled weights weights as pointers. More... | |
| std::vector< TH1D * > | m_bin_dists |
| Holds the PDFs for the individual bins. More... | |
| std::vector< double > | m_SumSys2 |
| Holds the variances of systematic uncertainties for the individual bins. More... | |
| TGraphAsymmErrors * | m_graph_stat |
| Holds the histogram with statistical uncertainties. More... | |
| TGraphErrors * | m_graph_syst |
| Holds the histogram with systematic uncertainties. More... | |
Extended histogramming class.
Extended histogramming class (inheriting from TH1D) which allows propagation of uncertainties on the actual weights used for filling.
Definition at line 26 of file APWeightHist.h.
| 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.
Definition at line 18 of file APWeightHist.cxx.
| APWeightHist::APWeightHist | ( | ) |
Default constructor.
Definition at line 34 of file APWeightHist.cxx.
| APWeightHist::~APWeightHist | ( | ) |
| APWeightHist::ClassDef | ( | APWeightHist | , |
| 1 | |||
| ) |
ClassDef for ROOTCINT dictionary.
| void APWeightHist::ComputeGraph | ( | const int | prec = 250 | ) |
Computes the resulting graph from all added ntuples and calculates the uncertainties for all bins.
Definition at line 67 of file APWeightHist.cxx.
| int APWeightHist::Fill | ( | const double | value, |
| APWeightEntry * | weight | ||
| ) |
< Overloads TH1D's Fill method.
Adds a weighted value to the calculation.
Definition at line 46 of file APWeightHist.cxx.
| TH1D * APWeightHist::GetBinPDF | ( | unsigned int | bin, |
| bool | autocompute = true |
||
| ) |
Definition at line 178 of file APWeightHist.cxx.
| TGraphAsymmErrors * APWeightHist::GetGraphStatUncert | ( | bool | autocompute = true | ) |
Extracts the histogram with statistical uncertainties.
Definition at line 156 of file APWeightHist.cxx.
| TGraphErrors * APWeightHist::GetGraphSystUncert | ( | bool | simple = true, |
| bool | autocompute = true |
||
| ) |
Extracts the histogram with systematic uncertainties.
Definition at line 161 of file APWeightHist.cxx.
|
private |
Holds the PDFs for the individual bins.
Definition at line 44 of file APWeightHist.h.
|
private |
Holds all filled weights weights as pointers.
Definition at line 43 of file APWeightHist.h.
|
private |
Flag to store information about the status of the computation.
Definition at line 42 of file APWeightHist.h.
|
private |
Holds the histogram with statistical uncertainties.
Definition at line 46 of file APWeightHist.h.
|
private |
Holds the histogram with systematic uncertainties.
Definition at line 47 of file APWeightHist.h.
|
private |
Holds the variances of systematic uncertainties for the individual bins.
Definition at line 45 of file APWeightHist.h.
1.8.18