|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef VARIABLEBINWIDTHHISTOGRAM_H
14 #define VARIABLEBINWIDTHHISTOGRAM_H
61 bool Initialize(
TH1F *
hist,
double binc_r,
double max_bin_width,
double min_x = -9e9,
double max_x = 9e9);
105 std::vector<VariableBinwidthHistogramBin *>
m_bins;
123 if (
val > 0.0)
return 1.0;
124 if (
val < 0.0)
return -1.0;
125 if (
val == 0.0)
return 0;
const VariableBinwidthHistogramBin & GetBin(unsigned int bin) const
Get a bin.
std::vector< VBHBinPtrSrt > m_sort_bins
bins sorted by content
const VariableBinwidthHistogramBin & GetSortedBin(unsigned int bin)
Get a bin sorted by content.
TGraph * DiffDensityGraph() const
Plot graph with differential density.
TGraph * DenistyGraph() const
create density graph - density vs bin center
unsigned int GetNumberOfBins() const
Get the number of bins
~VariableBinwidthHistogram()
destructor
std::vector< VariableBinwidthHistogramBin * > m_bins
vector containing histogram bins
TGraph * DiffBinwidthGraph() const
Plot graph with differential binwidth.
double m_max_bin_width
maximum bin width
TGraph * BinContentGraph() const
Plot bin content graph - bin content vs bin center.
bool Smooth(double width)
Removes steps that origin in a binning effekt.
double sign(double val) const
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
unsigned int m_binc
number of entries per bin
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.
VariableBinwidthHistogram()
Default constructor.
TGraph * BinWidthGraph() const
Plot binwidth graph - binwidth versus bin center.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)