|
ACTS
Experiment-independent tracking
|
Multi-dimensional histogram wrapper using boost::histogram for data collection. More...
#include <Acts/Utilities/Histogram.hpp>
Public Member Functions | |
| Histogram (std::string name, std::string title, const std::array< AxisVariant, Dim > &axes) | |
| Construct multi-dimensional histogram from axes. | |
| void | fill (const std::array< double, Dim > &values) |
| Fill histogram with values. | |
| const BoostHist & | histogram () const |
| Direct access to boost::histogram (for converters and tests). | |
| const std::string & | name () const |
| Get histogram name. | |
| const std::string & | title () const |
| Get histogram title. | |
Static Public Member Functions | |
| static constexpr std::size_t | rank () |
| Get number of dimensions (compile-time constant). | |
Multi-dimensional histogram wrapper using boost::histogram for data collection.
This class wraps boost::histogram to provide a ROOT-independent histogram implementation with compile-time dimensionality.
| Dim | Number of dimensions |
| Acts::Experimental::Histogram< Dim >::Histogram | ( | std::string | name, |
| std::string | title, | ||
| const std::array< AxisVariant, Dim > & | axes ) |
Construct multi-dimensional histogram from axes.
| name | Histogram name (for identification and output) |
| title | Histogram title (for plotting) |
| axes | Array of axes with binning and metadata |
| void Acts::Experimental::Histogram< Dim >::fill | ( | const std::array< double, Dim > & | values | ) |
Fill histogram with values.
| values | Values to fill (one per axis) |
| const BoostHist & Acts::Experimental::Histogram< Dim >::histogram | ( | ) | const |
Direct access to boost::histogram (for converters and tests).
| const std::string & Acts::Experimental::Histogram< Dim >::name | ( | ) | const |
Get histogram name.
|
staticconstexpr |
Get number of dimensions (compile-time constant).
| const std::string & Acts::Experimental::Histogram< Dim >::title | ( | ) | const |
Get histogram title.