|
ACTS
Experiment-independent tracking
|
Multi-dimensional profile histogram using boost::histogram. More...
#include <Acts/Utilities/Histogram.hpp>
Public Member Functions | |
| ProfileHistogram (std::string name, std::string title, const std::array< AxisVariant, Dim > &axes, std::string sampleAxisTitle, Range1D< double > sampleRange={}) | |
| Construct multi-dimensional profile histogram from axes. | |
| void | fill (const std::array< double, Dim > &values, double sample) |
| Fill profile with values and sample. | |
| const BoostProfileHist & | histogram () const |
| Direct access to boost::histogram (for converters and tests). | |
| const std::string & | name () const |
| Get histogram name. | |
| const std::string & | sampleAxisTitle () const |
| Get title of the sample axis. | |
| 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 profile histogram using boost::histogram.
This class wraps boost::histogram to provide a ROOT-independent profile histogram implementation with compile-time dimensionality. For each bin, it tracks the mean and variance of sample values.
| Dim | Number of dimensions |
| Acts::Experimental::ProfileHistogram< Dim >::ProfileHistogram | ( | std::string | name, |
| std::string | title, | ||
| const std::array< AxisVariant, Dim > & | axes, | ||
| std::string | sampleAxisTitle, | ||
| Range1D< double > | sampleRange = {} ) |
Construct multi-dimensional profile histogram from axes.
| name | Histogram name (for identification and output) |
| title | Histogram title (for plotting) |
| axes | Array of axes with binning and metadata |
| sampleAxisTitle | Title for the sampled axis (profiled quantity) |
| sampleRange | Samples are discarded when outside range |
| void Acts::Experimental::ProfileHistogram< Dim >::fill | ( | const std::array< double, Dim > & | values, |
| double | sample ) |
Fill profile with values and sample.
| values | Bin coordinate values (one per axis) |
| sample | Sample value (profiled quantity) |
| const BoostProfileHist & Acts::Experimental::ProfileHistogram< Dim >::histogram | ( | ) | const |
Direct access to boost::histogram (for converters and tests).
| const std::string & Acts::Experimental::ProfileHistogram< Dim >::name | ( | ) | const |
Get histogram name.
|
staticconstexpr |
Get number of dimensions (compile-time constant).
| const std::string & Acts::Experimental::ProfileHistogram< Dim >::sampleAxisTitle | ( | ) | const |
Get title of the sample axis.
| const std::string & Acts::Experimental::ProfileHistogram< Dim >::title | ( | ) | const |
Get histogram title.