![]() |
Rivet
3.1.3
|
A set of booked Histo1DPtr, each in a bin of a second variable. More...
#include <BinnedHistogram.hh>
Public Member Functions | |
BinnedHistogram ()=default | |
Create a new empty BinnedHistogram. | |
BinnedHistogram (const vector< double > &edges, const vector< Histo1DPtr > &histos) | |
Create a new BinnedHistogram with the given bin edges and contents. | |
const BinnedHistogram & | add (double binMin, double binMax, Histo1DPtr histo) |
Add a histogram in the T bin between binMin and binMax. More... | |
void | fill (double binval, double val, double weight=1.0) |
Fill the histogram in the same bin as binval with value val and weight weight. | |
const Histo1DPtr | histo (double binval) const |
Get the histogram in the same bin as binval (const) More... | |
Histo1DPtr | histo (double binval) |
Get the histogram in the same bin as binval. More... | |
const vector< Histo1DPtr > & | histos () const |
Get the contained histograms (const) | |
vector< Histo1DPtr > & | histos () |
Get the contained histograms. | |
void | scale (double scale, Analysis *ana) |
A set of booked Histo1DPtr, each in a bin of a second variable.
BinnedHistogram contains a series of histograms of the same quantity each in a different region of a second quantity. For example, a BinnedHistogram may contain histograms of the cross-section differential in \( p_T \) in different \( \eta \) regions.
const BinnedHistogram& Rivet::BinnedHistogram::add | ( | double | binMin, |
double | binMax, | ||
Histo1DPtr | histo | ||
) |
Add a histogram in the T
bin between binMin and binMax.
Referenced by BinnedHistogram().
const Histo1DPtr Rivet::BinnedHistogram::histo | ( | double | binval | ) | const |
Get the histogram in the same bin as binval (const)
Referenced by BinnedHistogram().
Histo1DPtr Rivet::BinnedHistogram::histo | ( | double | binval | ) |
Get the histogram in the same bin as binval.
void Rivet::BinnedHistogram::scale | ( | double | scale, |
Analysis * | ana | ||
) |