LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::KDTreeBoxT< DIM > Class Template Reference

Box structure used to define 2D field. It's used in KDTree building step to divide the detector space (ECAL, HCAL...) and in searching step to create a bounding box around the demanded point (Track collision point, PS projection...). More...

#include "KDTreeLinkerToolsT.h"

Public Member Functions

 KDTreeBoxT ()
 Default constructor. More...
 
template<typename... Ts>
 KDTreeBoxT (Ts...dimargs)
 Constructor. More...
 

Public Attributes

std::array< float, DIM > dimmin
 
std::array< float, DIM > dimmax
 

Detailed Description

template<unsigned DIM>
class lar_content::KDTreeBoxT< DIM >

Box structure used to define 2D field. It's used in KDTree building step to divide the detector space (ECAL, HCAL...) and in searching step to create a bounding box around the demanded point (Track collision point, PS projection...).

Definition at line 33 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

template<unsigned DIM>
lar_content::KDTreeBoxT< DIM >::KDTreeBoxT ( )
inline

Default constructor.

Definition at line 222 of file KDTreeLinkerToolsT.h.

223 {
224 }
template<unsigned DIM>
template<typename... Ts>
lar_content::KDTreeBoxT< DIM >::KDTreeBoxT ( Ts...  dimargs)
inline

Constructor.

Parameters
dimargs

Definition at line 230 of file KDTreeLinkerToolsT.h.

231 {
232  static_assert(sizeof...(dimargs) == 2 * DIM, "Constructor requires 2*DIM args");
233  std::vector<float> dims = {dimargs...};
234 
235  for (unsigned i = 0; i < DIM; ++i)
236  {
237  dimmin[i] = dims[2 * i];
238  dimmax[i] = dims[2 * i + 1];
239  }
240 }
std::array< float, DIM > dimmin
std::array< float, DIM > dimmax

Member Data Documentation

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

The documentation for this class was generated from the following file: