CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes
mkfit::axis_pow2_base< R, I, M, N > Struct Template Reference

#include <binnor.h>

Inheritance diagram for mkfit::axis_pow2_base< R, I, M, N >:
mkfit::axis_base< R, I, M, N > mkfit::axis_pow2< R, I, M, N > mkfit::axis_pow2_u1< R, I, M, N >

Public Member Functions

 axis_pow2_base (R min, R max)
 
unsigned size_of_M () const
 
unsigned size_of_N () const
 
- Public Member Functions inherited from mkfit::axis_base< R, I, M, N >
 axis_base (R min, R max, unsigned M_size, unsigned N_size)
 
from_M_bin_to_N_bin (I m) const
 
I_pair from_R_minmax_to_N_bins (R rmin, R rmax) const
 
I_pair from_R_rdr_to_N_bins (R r, R dr) const
 
from_R_to_M_bin (R r) const
 
from_R_to_M_bin_safe (R r) const
 
from_R_to_N_bin (R r) const
 
from_R_to_N_bin_safe (R r) const
 
next_N_bin (I bin) const
 

Static Public Attributes

static constexpr unsigned c_M_end = 1 << M
 
static constexpr unsigned c_N_end = 1 << N
 
- Static Public Attributes inherited from mkfit::axis_base< R, I, M, N >
static constexpr unsigned c_M = M
 
static constexpr unsigned c_M2N_shift = M - N
 
static constexpr unsigned c_N = N
 

Additional Inherited Members

- Public Types inherited from mkfit::axis_base< R, I, M, N >
typedef I index_t
 
typedef R real_t
 
- Public Attributes inherited from mkfit::axis_base< R, I, M, N >
const I m_last_M_bin
 
const I m_last_N_bin
 
const R m_M_fac
 
const R m_N_fac
 
const R m_R_max
 
const R m_R_min
 

Detailed Description

template<typename R, typename I, unsigned M, unsigned N>
struct mkfit::axis_pow2_base< R, I, M, N >

Definition at line 75 of file binnor.h.

Constructor & Destructor Documentation

template<typename R , typename I , unsigned M, unsigned N>
mkfit::axis_pow2_base< R, I, M, N >::axis_pow2_base ( min,
max 
)
inline

Definition at line 79 of file binnor.h.

79 : axis_base<R, I, M, N>(min, max, c_M_end, c_N_end) {}
static constexpr unsigned c_M_end
Definition: binnor.h:76
static constexpr unsigned c_N_end
Definition: binnor.h:77

Member Function Documentation

template<typename R , typename I , unsigned M, unsigned N>
unsigned mkfit::axis_pow2_base< R, I, M, N >::size_of_M ( ) const
inline

Definition at line 81 of file binnor.h.

References mkfit::axis_pow2_base< R, I, M, N >::c_M_end.

81 { return c_M_end; }
static constexpr unsigned c_M_end
Definition: binnor.h:76
template<typename R , typename I , unsigned M, unsigned N>
unsigned mkfit::axis_pow2_base< R, I, M, N >::size_of_N ( ) const
inline

Definition at line 82 of file binnor.h.

References mkfit::axis_pow2_base< R, I, M, N >::c_N_end.

82 { return c_N_end; }
static constexpr unsigned c_N_end
Definition: binnor.h:77

Member Data Documentation

template<typename R , typename I , unsigned M, unsigned N>
constexpr unsigned mkfit::axis_pow2_base< R, I, M, N >::c_M_end = 1 << M
static

Definition at line 76 of file binnor.h.

Referenced by mkfit::axis_pow2_base< R, I, M, N >::size_of_M().

template<typename R , typename I , unsigned M, unsigned N>
constexpr unsigned mkfit::axis_pow2_base< R, I, M, N >::c_N_end = 1 << N
static

Definition at line 77 of file binnor.h.

Referenced by mkfit::axis_pow2_base< R, I, M, N >::size_of_N().