CMS 3D CMS Logo

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

#include <KDTreeLinkerAlgo.h>

Public Member Functions

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

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

◆ KDTreeBox() [1/2]

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

Definition at line 18 of file KDTreeLinkerAlgo.h.

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  }

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

◆ KDTreeBox() [2/2]

template<unsigned DIM = 2>
KDTreeBox< DIM >::KDTreeBox ( )
inline

Definition at line 27 of file KDTreeLinkerAlgo.h.

27 {}

Member Data Documentation

◆ dimmax

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

◆ dimmin

template<unsigned DIM = 2>
std::array<float, DIM> KDTreeBox< DIM >::dimmin
mps_fire.i
i
Definition: mps_fire.py:355
KDTreeBox::dimmin
std::array< float, DIM > dimmin
Definition: KDTreeLinkerAlgo.h:15
DIM
#define DIM(a)
Definition: LogEleMapdb.h:14738
KDTreeBox::dimmax
std::array< float, DIM > dimmax
Definition: KDTreeLinkerAlgo.h:15