APWeightHist Class Reference

#include <APWeightHist.h>

List of all members.

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)

Detailed Description

Extended histogramming class.

Extended histogramming class (inheriting from TH1D) which allows propagation of uncertainties on the actual weights used for filling.

Author:
fabian.Kohn@cern.ch

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1