CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
KDTreeBoxT< DIM > Struct Template Reference

#include <KDTreeLinkerToolsT.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

template<unsigned DIM>
struct KDTreeBoxT< DIM >

Definition at line 11 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

template<unsigned DIM>
template<typename... Ts>
KDTreeBoxT< DIM >::KDTreeBoxT ( Ts...  dimargs)
inline

Definition at line 16 of file KDTreeLinkerToolsT.h.

16  {
17  static_assert(sizeof...(dimargs) == 2*DIM,"Constructor requires 2*DIM args");
18  std::vector<float> dims = {dimargs...};
19  for( unsigned i = 0; i < DIM; ++i ) {
20  dimmin[i] = dims[2*i];
21  dimmax[i] = dims[2*i+1];
22  }
23  }
int i
Definition: DBlmapReader.cc:9
std::array< float, DIM > dimmin
#define DIM
std::array< float, DIM > dimmax
template<unsigned DIM>
KDTreeBoxT< DIM >::KDTreeBoxT ( )
inline

Definition at line 25 of file KDTreeLinkerToolsT.h.

25 {}

Member Data Documentation

template<unsigned DIM>
std::array<float,DIM> KDTreeBoxT< DIM >::dimmax
template<unsigned DIM>
std::array<float,DIM> KDTreeBoxT< DIM >::dimmin