EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/thirdparty/dfelibs/dfe/dfe_histogram.hpp>
Public Types | |
using | Data = dfe::histogram_impl::NArray< T, sizeof...(Axes)> |
using | Index = typename Data::Index |
Public Member Functions | |
Histogram (Axes &&...axes) | |
constexpr const Index & | size () const |
Get the number of bins along all axes. | |
const T & | value (Index idx) const |
Get the current entry value in the given bin. | |
void | fill (typename Axes::Value...values, T weight=static_cast< T >(1)) |
Private Member Functions | |
template<std::size_t... Is> | |
constexpr Index | index (std::index_sequence< Is...>, typename Axes::Value...values) const |
Private Attributes | |
Data | m_data |
std::tuple< Axes...> | m_axes |
A generic histogram with configurable axes.
T | The type of the data stored per bin |
Axes | Types must provide ::Value , .nbins() and .index(...) |
Definition at line 154 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 154 of file dfe_histogram.hpp
using dfe::Histogram< T, Axes >::Data = dfe::histogram_impl::NArray<T, sizeof...(Axes)> |
Definition at line 156 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 156 of file dfe_histogram.hpp
using dfe::Histogram< T, Axes >::Index = typename Data::Index |
Definition at line 157 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 157 of file dfe_histogram.hpp
|
inline |
Definition at line 323 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 323 of file dfe_histogram.hpp
|
inline |
Fill an entry into the histogram.
values | |
weight | Associated weight, the default of 1 just counts entries. |
Definition at line 169 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 169 of file dfe_histogram.hpp
References dfe::Histogram< T, Axes >::index(), and dfe::Histogram< T, Axes >::m_data.
|
inlineprivate |
Definition at line 176 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 176 of file dfe_histogram.hpp
References dfe::Histogram< T, Axes >::m_axes.
Referenced by dfe::Histogram< T, Axes >::fill().
|
inline |
Get the number of bins along all axes.
Definition at line 162 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 162 of file dfe_histogram.hpp
References dfe::Histogram< T, Axes >::m_data.
|
inline |
Get the current entry value in the given bin.
Definition at line 164 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 164 of file dfe_histogram.hpp
References dfe::Histogram< T, Axes >::m_data.
|
private |
Definition at line 182 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 182 of file dfe_histogram.hpp
Referenced by dfe::Histogram< T, Axes >::index().
|
private |
Definition at line 181 of file dfe_histogram.hpp.
View newest version in sPHENIX GitHub at line 181 of file dfe_histogram.hpp
Referenced by dfe::Histogram< T, Axes >::fill(), dfe::Histogram< T, Axes >::size(), and dfe::Histogram< T, Axes >::value().