ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dfe::VariableAxis< T > Class Template Reference

Variable binninng defined by arbitrary bin edges. More...

#include <acts/blob/master/thirdparty/dfelibs/dfe/dfe_histogram.hpp>

Public Types

using Value = T
 

Public Member Functions

 VariableAxis (std::vector< T > &&edges)
 
 VariableAxis (std::initializer_list< T > edges)
 
constexpr std::size_t nbins () const
 Total number of bins along this axis including under/overflow bins.
 
std::size_t index (T value) const
 Compute bin number for a test value.
 

Private Attributes

std::vector< Tm_edges
 

Detailed Description

template<typename T>
class dfe::VariableAxis< T >

Variable binninng defined by arbitrary bin edges.

Definition at line 131 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 131 of file dfe_histogram.hpp

Member Typedef Documentation

template<typename T >
using dfe::VariableAxis< T >::Value = T

Definition at line 133 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 133 of file dfe_histogram.hpp

Constructor & Destructor Documentation

template<typename T >
dfe::VariableAxis< T >::VariableAxis ( std::vector< T > &&  edges)
inlineexplicit
Parameters
edgesBin edges, lower ones inclusive, upper ones exclusive.

Definition at line 290 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 290 of file dfe_histogram.hpp

References dfe::VariableAxis< T >::m_edges.

template<typename T >
dfe::VariableAxis< T >::VariableAxis ( std::initializer_list< T edges)
inline
Parameters
edgesBin edges, lower ones inclusive, upper ones exclusive.

Definition at line 303 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 303 of file dfe_histogram.hpp

Member Function Documentation

template<typename T >
std::size_t dfe::VariableAxis< T >::index ( T  value) const
inline

Compute bin number for a test value.

Definition at line 308 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 308 of file dfe_histogram.hpp

References it.

template<typename T >
constexpr std::size_t dfe::VariableAxis< T >::nbins ( ) const
inline

Total number of bins along this axis including under/overflow bins.

Definition at line 141 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 141 of file dfe_histogram.hpp

References dfe::VariableAxis< T >::m_edges.

Member Data Documentation

template<typename T >
std::vector<T> dfe::VariableAxis< T >::m_edges
private

Definition at line 146 of file dfe_histogram.hpp.

View newest version in sPHENIX GitHub at line 146 of file dfe_histogram.hpp

Referenced by dfe::VariableAxis< T >::nbins(), and dfe::VariableAxis< T >::VariableAxis().


The documentation for this class was generated from the following file: