|
CbmRoot
|
Interface to a histogram/profile. More...
#include <Histogram.h>
Public Member Functions | |
| ~Histogram ()=default | |
| Destructor. | |
| template<EAxis A, unsigned IA = static_cast<unsigned>(A), std::enable_if_t<(IA< Rank), bool > = true> | |
| double | GetAxisMin () const |
| Gets range lower bound of the selected axis. | |
| template<EAxis A, unsigned IA = static_cast<unsigned>(A), std::enable_if_t<(IA< Rank), bool > = true> | |
| double | GetAxisMax () const |
| Gets range upper bound of the selected axis. | |
| template<EAxis A, unsigned IA = static_cast<unsigned>(A), std::enable_if_t<(IA< Rank), bool > = true> | |
| uint32_t | GetAxisNbins () const |
| Gets number of bins in axis. | |
| double | GetEntries () const |
| Gets number of entries. | |
| bool | GetFlag (EHistFlag key) const |
| Get flag. | |
| const std::string & | GetName () const |
| Gets name. | |
| const HistogramMetadata & | GetMetadata () const |
| Gets metadata instance. | |
| std::string | GetMetadataString () const |
| Gets metadata string. | |
| uint32_t | GetNbinsX () const |
| Gets number of bins for x axis. | |
| double | GetMinX () const |
| Gets x-axis lower bound. | |
| double | GetMaxX () const |
| Gets x-axis lower bound. | |
| template<unsigned RankCheck = Rank, std::enable_if_t<(RankCheck > 1), bool > = true> | |
| uint32_t | GetNbinsY () const |
| Gets number of bins for y axis. | |
| template<unsigned RankCheck = Rank, std::enable_if_t<(RankCheck > 1), bool > = true> | |
| double | GetMinY () const |
| Gets y-axis lower bound. | |
| template<unsigned RankCheck = Rank, std::enable_if_t<(RankCheck > 1), bool > = true> | |
| double | GetMaxY () const |
| Gets y-axis lower bound. | |
| double | GetMaximum () const |
| Gets maximum value. | |
| double | GetMinimum () const |
| Gets minimum value. | |
| const std::string & | GetTitle () const |
| Gets title. | |
| void | Reset () |
| Resets the histogram. | |
| void | SetFlag (EHistFlag key, bool flag=true) |
| Get flag. | |
| void | SetName (const std::string &name) |
| Sets name. | |
| void | SetTitle (const std::string &title) |
| Sets title. | |
Protected Types | |
| using | Hist_t = bh::histogram<Axes, Storage> |
Protected Member Functions | |
| Histogram ()=default | |
| String representation of the histogram/profile. | |
| Histogram (const Histogram< Axes, Storage, TotalSums > &h)=default | |
| Copy constructor. | |
| Histogram (const Hist_t &bhist, const std::string &name, const std::string title) | |
| Constructor. | |
Static Protected Member Functions | |
| static int | GetBinBH (uint32_t iBin) |
| Gets bin index in underlying boost histogram. | |
Protected Attributes | |
| Hist_t | fHistogram |
| Underlying boost histogram. | |
| std::string | fName = "" |
| Name of the histogram. | |
| std::string | fTitle = "" |
| Title of the histogram. | |
| int | fEntries = 0 |
| Number of histogram entries. | |
| HistogramMetadata | fMetadata |
| Meta-data for histogram. | |
Static Protected Attributes | |
| static constexpr unsigned | Rank = std::tuple_size_v<Axes> |
Private Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
| Serialization rule. | |
Friends | |
| class | boost::serialization::access |
Interface to a histogram/profile.
| Axes | The axes type |
| Storage | Storage type for the histogram |
| TotalSums | Class for storing the total sums of weights for axes (essential to calculate mean and std.dev.) |
Definition at line 251 of file Histogram.h.
|
protected |
Definition at line 253 of file Histogram.h.
|
default |
Destructor.
|
protecteddefault |
String representation of the histogram/profile.
Default constructor
|
explicitprotecteddefault |
Copy constructor.
|
inlineprotected |
Constructor.
| bhist | Boost histogram object |
| name | Name of the histogram |
| title | Title of the histogram |
Definition at line 399 of file Histogram.h.
|
inline |
Gets range upper bound of the selected axis.
| AxisType | An axis |
Definition at line 271 of file Histogram.h.
Referenced by cbm::algo::qa::Histogram< Axes1D_t, HistStorage_t, TotalSums1D >::GetMaxX(), and cbm::algo::qa::Histogram< Axes1D_t, HistStorage_t, TotalSums1D >::GetMaxY().
|
inline |
Gets range lower bound of the selected axis.
| AxisType | An axis |
Definition at line 263 of file Histogram.h.
Referenced by cbm::algo::qa::Histogram< Axes1D_t, HistStorage_t, TotalSums1D >::GetMinX(), and cbm::algo::qa::Histogram< Axes1D_t, HistStorage_t, TotalSums1D >::GetMinY().
|
inline |
Gets number of bins in axis.
| AxisT | An axis |
| D |
Definition at line 280 of file Histogram.h.
Referenced by cbm::algo::qa::Histogram< Axes1D_t, HistStorage_t, TotalSums1D >::GetNbinsX(), and cbm::algo::qa::Histogram< Axes1D_t, HistStorage_t, TotalSums1D >::GetNbinsY().
|
inlinestaticprotected |
Gets bin index in underlying boost histogram.
| iBin | Bin in histogram |
Definition at line 411 of file Histogram.h.
Referenced by cbm::algo::qa::H1D::GetBinAccumulator(), cbm::algo::qa::H2D::GetBinAccumulator(), cbm::algo::qa::Prof1D::GetBinAccumulator(), cbm::algo::qa::Prof2D::GetBinAccumulator(), cbm::algo::qa::H1D::GetBinContent(), cbm::algo::qa::H2D::GetBinContent(), cbm::algo::qa::Prof1D::GetBinContent(), cbm::algo::qa::Prof2D::GetBinContent(), cbm::algo::qa::Prof1D::GetBinCount(), cbm::algo::qa::Prof2D::GetBinCount(), cbm::algo::qa::H1D::GetBinError(), cbm::algo::qa::H2D::GetBinError(), cbm::algo::qa::Prof1D::GetBinError(), and cbm::algo::qa::Prof2D::GetBinError().
|
inline |
Gets number of entries.
Definition at line 287 of file Histogram.h.
Referenced by CbmTaskDigiEventQa::ToTH1D().
|
inline |
Get flag.
| key | Flag key from the EHistFlag enumeration |
Definition at line 295 of file Histogram.h.
|
inline |
Gets maximum value.
Definition at line 337 of file Histogram.h.
|
inline |
Gets x-axis lower bound.
Definition at line 313 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), and CbmTaskDigiEventQa::ToTH1D().
|
inline |
Gets y-axis lower bound.
Definition at line 331 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), and cbm::qa::OnlineInterface::ROOTHistogram().
|
inline |
Gets metadata instance.
Definition at line 301 of file Histogram.h.
|
inline |
Gets metadata string.
Definition at line 304 of file Histogram.h.
|
inline |
Gets minimum value.
Definition at line 343 of file Histogram.h.
|
inline |
Gets x-axis lower bound.
Definition at line 310 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), and CbmTaskDigiEventQa::ToTH1D().
|
inline |
Gets y-axis lower bound.
Definition at line 324 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), and cbm::qa::OnlineInterface::ROOTHistogram().
|
inline |
Gets name.
Definition at line 298 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), and CbmTaskDigiEventQa::ToTH1D().
|
inline |
Gets number of bins for x axis.
Definition at line 307 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), and CbmTaskDigiEventQa::ToTH1D().
|
inline |
Gets number of bins for y axis.
Definition at line 317 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), and cbm::qa::OnlineInterface::ROOTHistogram().
|
inline |
Gets title.
Definition at line 349 of file Histogram.h.
Referenced by cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), cbm::qa::OnlineInterface::ROOTHistogram(), and cbm::qa::OnlineInterface::ROOTHistogram().
|
inline |
Resets the histogram.
Definition at line 352 of file Histogram.h.
|
inlineprivate |
Serialization rule.
Definition at line 424 of file Histogram.h.
|
inline |
Get flag.
| key | Flag key from the EHistFlag enumeration |
| flag | Flag value |
Definition at line 362 of file Histogram.h.
|
inline |
|
inline |
Sets title.
| title | Histogram title |
Definition at line 371 of file Histogram.h.
|
friend |
Definition at line 421 of file Histogram.h.
|
protected |
Number of histogram entries.
Definition at line 416 of file Histogram.h.
|
protected |
Underlying boost histogram.
Definition at line 413 of file Histogram.h.
|
protected |
Meta-data for histogram.
Definition at line 417 of file Histogram.h.
|
protected |
Name of the histogram.
Definition at line 414 of file Histogram.h.
|
protected |
Title of the histogram.
Definition at line 415 of file Histogram.h.
|
staticconstexprprotected |
Definition at line 254 of file Histogram.h.