CMS 3D CMS Logo

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 int size_of_M () const
 
unsigned int size_of_N () const
 
- Public Member Functions inherited from mkfit::axis_base< R, I, M, N >
 axis_base (R min, R max, unsigned int M_size, unsigned int 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 int c_M_end = 1 << M
 
static constexpr unsigned int c_N_end = 1 << N
 
- Static Public Attributes inherited from mkfit::axis_base< R, I, M, N >
static constexpr unsigned int c_M = M
 
static constexpr unsigned int c_M2N_shift = M - N
 
static constexpr unsigned int 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_M_lbhp
 
const R m_N_fac
 
const R m_N_lbhp
 
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 81 of file binnor.h.

Constructor & Destructor Documentation

◆ axis_pow2_base()

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 85 of file binnor.h.

85 : axis_base<R, I, M, N>(min, max, c_M_end, c_N_end) {}
static constexpr unsigned int c_N_end
Definition: binnor.h:83
static constexpr unsigned int c_M_end
Definition: binnor.h:82

Member Function Documentation

◆ size_of_M()

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

Definition at line 87 of file binnor.h.

87 { return c_M_end; }
static constexpr unsigned int c_M_end
Definition: binnor.h:82

◆ size_of_N()

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

Definition at line 88 of file binnor.h.

Referenced by mkfit::LayerOfHits::isBinDead(), mkfit::LayerOfHits::LayerOfHits(), and mkfit::LayerOfHits::suckInDeads().

88 { return c_N_end; }
static constexpr unsigned int c_N_end
Definition: binnor.h:83

Member Data Documentation

◆ c_M_end

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

◆ c_N_end

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