![]() |
ATLAS Offline Software
|
A histogram where every bin has the same number of entries. More...
#include <VariableBinwidthHistogram.h>
Public Member Functions | |
| VariableBinwidthHistogram () | |
| Default constructor. | |
| ~VariableBinwidthHistogram () | |
| destructor | |
| bool | Initialize (TH1F *hist, double binc_r, double max_bin_width, double min_x=-9e9, double max_x=9e9) |
| Initialize with new input histogram Returns on error false. | |
| bool | Smooth (double width) |
| Removes steps that origin in a binning effekt. | |
| const VariableBinwidthHistogramBin & | GetBin (unsigned int bin) const |
| Get a bin. | |
| const VariableBinwidthHistogramBin & | GetSortedBin (unsigned int bin) |
| Get a bin sorted by content. | |
| unsigned int | GetNumberOfBins () const |
| Get the number of bins. | |
| TGraph * | DenistyGraph () const |
| create density graph - density vs bin center | |
| TGraph * | BinWidthGraph () const |
| Plot binwidth graph - binwidth versus bin center. | |
| TGraph * | BinContentGraph () const |
| Plot bin content graph - bin content vs bin center. | |
| TGraph * | DiffDensityGraph () const |
| Plot graph with differential density. | |
| TGraph * | DiffBinwidthGraph () const |
| Plot graph with differential binwidth. | |
Private Member Functions | |
| double | sign (double val) const |
Private Attributes | |
| std::vector< VariableBinwidthHistogramBin * > | m_bins |
| vector containing histogram bins | |
| std::vector< VBHBinPtrSrt > | m_sort_bins |
| bins sorted by content | |
| unsigned int | m_binc |
| number of entries per bin | |
| double | m_max_bin_width |
| maximum bin width | |
| bool | m_error |
| error flag | |
| bool | m_sorted |
A histogram where every bin has the same number of entries.
The density is represented by the bin width.
Definition at line 40 of file VariableBinwidthHistogram.h.
|
inline |
Default constructor.
Definition at line 44 of file VariableBinwidthHistogram.h.
|
inline |
destructor
Definition at line 47 of file VariableBinwidthHistogram.h.
| TGraph * MuonCalib::VariableBinwidthHistogram::BinContentGraph | ( | ) | const |
Plot bin content graph - bin content vs bin center.
Definition at line 141 of file VariableBinwidthHistogram.cxx.
| TGraph * MuonCalib::VariableBinwidthHistogram::BinWidthGraph | ( | ) | const |
Plot binwidth graph - binwidth versus bin center.
Definition at line 127 of file VariableBinwidthHistogram.cxx.
| TGraph * MuonCalib::VariableBinwidthHistogram::DenistyGraph | ( | ) | const |
create density graph - density vs bin center
Definition at line 113 of file VariableBinwidthHistogram.cxx.
| TGraph * MuonCalib::VariableBinwidthHistogram::DiffBinwidthGraph | ( | ) | const |
Plot graph with differential binwidth.
Definition at line 166 of file VariableBinwidthHistogram.cxx.
| TGraph * MuonCalib::VariableBinwidthHistogram::DiffDensityGraph | ( | ) | const |
Plot graph with differential density.
Definition at line 151 of file VariableBinwidthHistogram.cxx.
|
inline |
Get a bin.
| bin | The bin index of the bin. bin < VariableBinwidthHistogram :: GetNumberOfBins() |
Definition at line 71 of file VariableBinwidthHistogram.h.
|
inline |
|
inline |
Get a bin sorted by content.
| bin | The bin index of the bin. bin < VariableBinwidthHistogram :: GetNumberOfBins() |
Definition at line 76 of file VariableBinwidthHistogram.h.
| bool MuonCalib::VariableBinwidthHistogram::Initialize | ( | TH1F * | hist, |
| double | binc_r, | ||
| double | max_bin_width, | ||
| double | min_x = -9e9, | ||
| double | max_x = 9e9 ) |
Initialize with new input histogram Returns on error false.
| hist | the input histogram |
| binc_r | number of entries per bin / max number of entries in hist |
| max_bin_width | The binwidth will not exceed the maximum_bin_width |
| min_x | only the range between min_x and max_x will be used |
| max_x | only the range between min_x and max_x will be used |
Definition at line 22 of file VariableBinwidthHistogram.cxx.
|
inlineprivate |
Definition at line 122 of file VariableBinwidthHistogram.h.
| bool MuonCalib::VariableBinwidthHistogram::Smooth | ( | double | width | ) |
Removes steps that origin in a binning effekt.
| width | smoothin parameter (typically the binwidth of the input-hisatogram) |
Definition at line 87 of file VariableBinwidthHistogram.cxx.
|
private |
number of entries per bin
Definition at line 111 of file VariableBinwidthHistogram.h.
|
private |
vector containing histogram bins
Definition at line 105 of file VariableBinwidthHistogram.h.
|
private |
error flag
Definition at line 117 of file VariableBinwidthHistogram.h.
|
private |
maximum bin width
Definition at line 114 of file VariableBinwidthHistogram.h.
|
private |
bins sorted by content
Definition at line 108 of file VariableBinwidthHistogram.h.
|
private |
Definition at line 119 of file VariableBinwidthHistogram.h.