|
CbmRoot
|
#include <Histogram.h>
Public Member Functions | |
| Prof1D (const std::string &name, const std::string &title, uint32_t nBinsX, double xMin, double xMax, double yMin=0., double yMax=0.) | |
| Constructor for 2D-histogram. | |
| Prof1D ()=default | |
| Default constructor. | |
| Prof1D (const Prof1D &)=default | |
| Copy constructor. | |
| Prof1D (Prof1D &&)=default | |
| Move constructor. | |
| Prof1D & | operator= (const Prof1D &)=default |
| Copy assignment operator. | |
| Prof1D & | operator= (Prof1D &&)=default |
| Move assignment operator. | |
| int | Fill (double x, double y, double w=1.) |
| Fills histogram. | |
| auto | GetBinAccumulator (uint32_t iBin) const |
| Gets underlying bin accumulator. | |
| double | GetBinContent (uint32_t iBin) const |
| Gets bin content. | |
| double | GetBinCount (uint32_t iBin) const |
| Gets bin entries. | |
| double | GetBinError (uint32_t iBin) const |
| Gets bin error. | |
| double | GetMinY () const |
| Gets y-axis lower bound. | |
| double | GetMaxY () const |
| Gets y-axis lower bound. | |
| double | GetAxisMin () const |
| Gets range lower bound of the selected axis. | |
| double | GetAxisMin () const |
| Gets range lower bound of the selected axis. | |
| double | GetAxisMax () const |
| Gets range upper bound of the selected axis. | |
| double | GetAxisMax () const |
| Gets range upper bound of the selected axis. | |
| uint32_t | GetAxisNbins () const |
| Gets number of bins in axis. | |
| uint32_t | GetAxisNbins () const |
| Gets number of bins in axis. | |
| double | GetEntries () const |
| Gets number of entries. | |
| double | GetEntries () const |
| Gets number of entries. | |
| bool | GetFlag (EHistFlag key) const |
| Get flag. | |
| bool | GetFlag (EHistFlag key) const |
| Get flag. | |
| const std::string & | GetName () const |
| Gets name. | |
| const std::string & | GetName () const |
| Gets name. | |
| const HistogramMetadata & | GetMetadata () const |
| Gets metadata instance. | |
| const HistogramMetadata & | GetMetadata () const |
| Gets metadata instance. | |
| std::string | GetMetadataString () const |
| Gets metadata string. | |
| std::string | GetMetadataString () const |
| Gets metadata string. | |
| uint32_t | GetNbinsX () const |
| Gets number of bins for x axis. | |
| uint32_t | GetNbinsX () const |
| Gets number of bins for x axis. | |
| double | GetMinX () const |
| Gets x-axis lower bound. | |
| double | GetMinX () const |
| Gets x-axis lower bound. | |
| double | GetMaxX () const |
| Gets x-axis lower bound. | |
| double | GetMaxX () const |
| Gets x-axis lower bound. | |
| uint32_t | GetNbinsY () const |
| Gets number of bins for y axis. | |
| uint32_t | GetNbinsY () const |
| Gets number of bins for y axis. | |
| double | GetMaximum () const |
| Gets maximum value. | |
| double | GetMaximum () const |
| Gets maximum value. | |
| double | GetMinimum () const |
| Gets minimum value. | |
| double | GetMinimum () const |
| Gets minimum value. | |
| const std::string & | GetTitle () const |
| Gets title. | |
| const std::string & | GetTitle () const |
| Gets title. | |
| void | Reset () |
| Resets the histogram. | |
| void | Reset () |
| Resets the histogram. | |
| void | SetFlag (EHistFlag key, bool flag=true) |
| Get flag. | |
| void | SetFlag (EHistFlag key, bool flag=true) |
| Get flag. | |
| void | SetName (const std::string &name) |
| Sets name. | |
| void | SetName (const std::string &name) |
| Sets name. | |
| void | SetTitle (const std::string &title) |
| Sets title. | |
| void | SetTitle (const std::string &title) |
| Sets title. | |
| double | GetTotSumW () const |
| Gets total sum of weights. | |
| double | GetTotSumW2 () const |
| Gets total sum of squared weights. | |
| double | GetTotSumWX () const |
| Gets total sum of weight over x products. | |
| double | GetTotSumWX2 () const |
| Gets total sum of weight over squared x products. | |
Protected Types | |
| using | Hist_t |
Protected Member Functions | |
| void | UpdateTotalSums (double x, double w) |
| Updates the sums. | |
Static Protected Member Functions | |
| static int | GetBinBH (uint32_t iBin) |
| Gets bin index in underlying boost histogram. | |
| static int | GetBinBH (uint32_t iBin) |
| Gets bin index in underlying boost histogram. | |
Protected Attributes | |
| Hist_t | fHistogram |
| Underlying boost histogram. | |
| Hist_t | fHistogram |
| Underlying boost histogram. | |
| std::string | fName |
| Name of the histogram. | |
| std::string | fName |
| Name of the histogram. | |
| std::string | fTitle |
| Title of the histogram. | |
| std::string | fTitle |
| Title of the histogram. | |
| int | fEntries |
| Number of histogram entries. | |
| int | fEntries |
| Number of histogram entries. | |
| HistogramMetadata | fMetadata |
| Meta-data for histogram. | |
| HistogramMetadata | fMetadata |
| Meta-data for histogram. | |
| double | fTotSumW = 0. |
| Total sum (over all bins) of weights. | |
| double | fTotSumW2 = 0. |
| Total sum (over all bins) of squared weights. | |
| double | fTotSumWX = 0. |
| Total sum (over all bins) of weight over x products. | |
| double | fTotSumWX2 = 0. |
| Total sum (over all bins) of weight over square x products. | |
Static Protected Attributes | |
| static constexpr unsigned | Rank |
| static constexpr unsigned | Rank |
Private Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
| double | fYmin = 0. |
| Lower bound of the profile y-axis. | |
| double | fYmax = 0. |
| Upper bound of the profile y-axis. | |
Friends | |
| class | boost::serialization::access |
| Serialization rule. | |
Definition at line 604 of file Histogram.h.
|
protectedinherited |
Definition at line 253 of file Histogram.h.
|
inline |
Constructor for 2D-histogram.
| name | Name of histogram |
| title | Title of histogram |
| nBinsX | Number of x bins |
| xMin | Lower x bound |
| xMax | Upper x bound |
| yMin | Lower y bound (optional) |
| yMax | Upper y bound (optional) |
Definition at line 617 of file Histogram.h.
|
default |
Default constructor.
|
default |
Copy constructor.
|
default |
Move constructor.
|
inline |
Fills histogram.
| x | Value along x-axis |
| y | Value along y-axis |
| w | Weight |
Skip measurement, if it goes beyond the defined [fYmin, fYmax] range
Definition at line 645 of file Histogram.h.
|
inlineinherited |
Gets range upper bound of the selected axis.
| AxisType | An axis |
Definition at line 271 of file Histogram.h.
|
inlineinherited |
Gets range upper bound of the selected axis.
| AxisType | An axis |
Definition at line 271 of file Histogram.h.
|
inlineinherited |
Gets range lower bound of the selected axis.
| AxisType | An axis |
Definition at line 263 of file Histogram.h.
|
inlineinherited |
Gets range lower bound of the selected axis.
| AxisType | An axis |
Definition at line 263 of file Histogram.h.
|
inlineinherited |
Gets number of bins in axis.
| AxisT | An axis |
| D |
Definition at line 280 of file Histogram.h.
|
inlineinherited |
Gets number of bins in axis.
| AxisT | An axis |
| D |
Definition at line 280 of file Histogram.h.
|
inline |
Gets underlying bin accumulator.
| iBin | Bin index along x-axis |
Definition at line 665 of file Histogram.h.
|
inlinestaticprotectedinherited |
Gets bin index in underlying boost histogram.
| iBin | Bin in histogram |
Definition at line 411 of file Histogram.h.
|
inlinestaticprotectedinherited |
Gets bin index in underlying boost histogram.
| iBin | Bin in histogram |
Definition at line 411 of file Histogram.h.
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Gets number of entries.
Definition at line 287 of file Histogram.h.
|
inlineinherited |
Gets number of entries.
Definition at line 287 of file Histogram.h.
|
inlineinherited |
Get flag.
| key | Flag key from the EHistFlag enumeration |
Definition at line 295 of file Histogram.h.
|
inlineinherited |
Get flag.
| key | Flag key from the EHistFlag enumeration |
Definition at line 295 of file Histogram.h.
|
inlineinherited |
Gets maximum value.
Definition at line 337 of file Histogram.h.
|
inlineinherited |
Gets maximum value.
Definition at line 337 of file Histogram.h.
|
inlineinherited |
Gets x-axis lower bound.
Definition at line 313 of file Histogram.h.
|
inlineinherited |
Gets x-axis lower bound.
Definition at line 313 of file Histogram.h.
|
inline |
Gets y-axis lower bound.
Definition at line 683 of file Histogram.h.
|
inlineinherited |
Gets metadata instance.
Definition at line 301 of file Histogram.h.
|
inlineinherited |
Gets metadata instance.
Definition at line 301 of file Histogram.h.
|
inlineinherited |
Gets metadata string.
Definition at line 304 of file Histogram.h.
|
inlineinherited |
Gets metadata string.
Definition at line 304 of file Histogram.h.
|
inlineinherited |
Gets minimum value.
Definition at line 343 of file Histogram.h.
|
inlineinherited |
Gets minimum value.
Definition at line 343 of file Histogram.h.
|
inlineinherited |
Gets x-axis lower bound.
Definition at line 310 of file Histogram.h.
|
inlineinherited |
Gets x-axis lower bound.
Definition at line 310 of file Histogram.h.
|
inline |
Gets y-axis lower bound.
Definition at line 680 of file Histogram.h.
|
inlineinherited |
Gets name.
Definition at line 298 of file Histogram.h.
|
inlineinherited |
Gets name.
Definition at line 298 of file Histogram.h.
|
inlineinherited |
Gets number of bins for x axis.
Definition at line 307 of file Histogram.h.
Referenced by cbm::algo::qa::Prof1D::Fill().
|
inlineinherited |
Gets number of bins for x axis.
Definition at line 307 of file Histogram.h.
|
inlineinherited |
Gets number of bins for y axis.
Definition at line 317 of file Histogram.h.
|
inlineinherited |
Gets number of bins for y axis.
Definition at line 317 of file Histogram.h.
|
inlineinherited |
Gets title.
Definition at line 349 of file Histogram.h.
|
inlineinherited |
Gets title.
Definition at line 349 of file Histogram.h.
|
inlineinherited |
|
inlineinherited |
Gets total sum of squared weights.
Definition at line 145 of file Histogram.h.
References fTotSumW2.
|
inlineinherited |
Gets total sum of weight over x products.
Definition at line 148 of file Histogram.h.
References fTotSumWX.
|
inlineinherited |
Gets total sum of weight over squared x products.
Definition at line 151 of file Histogram.h.
References fTotSumWX2.
|
inlineinherited |
Resets the histogram.
Definition at line 352 of file Histogram.h.
|
inlineinherited |
Resets the histogram.
Definition at line 352 of file Histogram.h.
|
inlineprivate |
Definition at line 689 of file Histogram.h.
|
inlineinherited |
Get flag.
| key | Flag key from the EHistFlag enumeration |
| flag | Flag value |
Definition at line 362 of file Histogram.h.
|
inlineinherited |
Get flag.
| key | Flag key from the EHistFlag enumeration |
| flag | Flag value |
Definition at line 362 of file Histogram.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Sets title.
| title | Histogram title |
Definition at line 371 of file Histogram.h.
|
inlineinherited |
Sets title.
| title | Histogram title |
Definition at line 371 of file Histogram.h.
|
inlineprotectedinherited |
Updates the sums.
| x | X value |
| w | weight |
Definition at line 157 of file Histogram.h.
References fTotSumW, fTotSumW2, fTotSumWX, fTotSumWX2, and x.
Referenced by cbm::algo::qa::H1D::Fill(), cbm::algo::qa::H2D::Fill(), cbm::algo::qa::Prof1D::Fill(), cbm::algo::qa::Prof2D::Fill(), and cbm::algo::qa::TotalSums2D::UpdateTotalSums().
|
friend |
Serialization rule.
Definition at line 687 of file Histogram.h.
|
protectedinherited |
Number of histogram entries.
Definition at line 416 of file Histogram.h.
Referenced by cbm::algo::qa::Prof1D::Fill().
|
protectedinherited |
Number of histogram entries.
Definition at line 416 of file Histogram.h.
|
protectedinherited |
Underlying boost histogram.
Definition at line 413 of file Histogram.h.
Referenced by cbm::algo::qa::Prof1D::Fill(), cbm::algo::qa::Prof1D::GetBinAccumulator(), cbm::algo::qa::Prof1D::GetBinContent(), cbm::algo::qa::Prof1D::GetBinCount(), and cbm::algo::qa::Prof1D::GetBinError().
|
protectedinherited |
Underlying boost histogram.
Definition at line 413 of file Histogram.h.
|
protectedinherited |
Meta-data for histogram.
Definition at line 417 of file Histogram.h.
|
protectedinherited |
Meta-data for histogram.
Definition at line 417 of file Histogram.h.
|
protectedinherited |
Name of the histogram.
Definition at line 414 of file Histogram.h.
|
protectedinherited |
Name of the histogram.
Definition at line 414 of file Histogram.h.
|
protectedinherited |
Title of the histogram.
Definition at line 415 of file Histogram.h.
|
protectedinherited |
Title of the histogram.
Definition at line 415 of file Histogram.h.
|
protectedinherited |
Total sum (over all bins) of weights.
Definition at line 174 of file Histogram.h.
Referenced by GetTotSumW(), Reset(), serialize(), and UpdateTotalSums().
|
protectedinherited |
Total sum (over all bins) of squared weights.
Definition at line 175 of file Histogram.h.
Referenced by GetTotSumW2(), Reset(), serialize(), and UpdateTotalSums().
|
protectedinherited |
Total sum (over all bins) of weight over x products.
Definition at line 176 of file Histogram.h.
Referenced by GetTotSumWX(), Reset(), serialize(), and UpdateTotalSums().
|
protectedinherited |
Total sum (over all bins) of weight over square x products.
Definition at line 177 of file Histogram.h.
Referenced by GetTotSumWX2(), Reset(), serialize(), and UpdateTotalSums().
|
private |
Upper bound of the profile y-axis.
Definition at line 697 of file Histogram.h.
|
private |
Lower bound of the profile y-axis.
Definition at line 696 of file Histogram.h.
|
staticconstexprprotectedinherited |
Definition at line 254 of file Histogram.h.
|
staticconstexprprotectedinherited |
Definition at line 254 of file Histogram.h.