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 | Public Attributes
KDTreeBox< DIM > Struct Template Reference

#include <KDTreeLinkerAlgo.h>

Public Member Functions

template<typename... Ts>
 KDTreeBox (Ts...dimargs)
 
 KDTreeBox ()
 

Public Attributes

std::array< float, DIMdimmax
 
std::array< float, DIMdimmin
 

Detailed Description

template<unsigned DIM = 2>
struct KDTreeBox< DIM >

Definition at line 14 of file KDTreeLinkerAlgo.h.

Constructor & Destructor Documentation

template<unsigned DIM = 2>
template<typename... Ts>
KDTreeBox< DIM >::KDTreeBox ( Ts...  dimargs)
inline

Definition at line 18 of file KDTreeLinkerAlgo.h.

References DIM, KDTreeBox< DIM >::dimmax, KDTreeBox< DIM >::dimmin, and mps_fire::i.

18  {
19  static_assert(sizeof...(dimargs) == 2 * DIM, "Constructor requires 2*DIM args");
20  std::vector<float> dims = {dimargs...};
21  for (unsigned i = 0; i < DIM; ++i) {
22  dimmin[i] = dims[2 * i];
23  dimmax[i] = dims[2 * i + 1];
24  }
25  }
#define DIM(a)
std::array< float, DIM > dimmin
std::array< float, DIM > dimmax
template<unsigned DIM = 2>
KDTreeBox< DIM >::KDTreeBox ( )
inline

Definition at line 27 of file KDTreeLinkerAlgo.h.

27 {}

Member Data Documentation

template<unsigned DIM = 2>
std::array<float, DIM> KDTreeBox< DIM >::dimmax
template<unsigned DIM = 2>
std::array<float, DIM> KDTreeBox< DIM >::dimmin