LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::KDTreeNodeT< DATA, DIM > Class Template Reference

KDTree node. More...

#include "KDTreeLinkerToolsT.h"

Public Member Functions

 KDTreeNodeT ()
 Default constructor. More...
 
void setAttributs (const KDTreeBoxT< DIM > &regionBox, const KDTreeNodeInfoT< DATA, DIM > &infoToStore)
 setAttributs More...
 
void setAttributs (const KDTreeBoxT< DIM > &regionBox)
 setAttributs More...
 

Public Attributes

KDTreeNodeInfoT< DATA, DIM > info
 Data. More...
 
KDTreeNodeT< DATA, DIM > * left
 Left son. More...
 
KDTreeNodeT< DATA, DIM > * right
 Right son. More...
 
KDTreeBoxT< DIM > region
 Region bounding box. More...
 

Detailed Description

template<typename DATA, unsigned DIM>
class lar_content::KDTreeNodeT< DATA, DIM >

KDTree node.

Definition at line 90 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

template<typename DATA , unsigned DIM>
lar_content::KDTreeNodeT< DATA, DIM >::KDTreeNodeT ( )
inline

Default constructor.

Definition at line 265 of file KDTreeLinkerToolsT.h.

265  :
266  left(nullptr),
267  right(nullptr)
268 {
269 }
KDTreeNodeT< DATA, DIM > * right
Right son.
KDTreeNodeT< DATA, DIM > * left
Left son.

Member Function Documentation

template<typename DATA , unsigned DIM>
void lar_content::KDTreeNodeT< DATA, DIM >::setAttributs ( const KDTreeBoxT< DIM > &  regionBox,
const KDTreeNodeInfoT< DATA, DIM > &  infoToStore 
)
inline

setAttributs

Parameters
regionBox
infoToStore

Definition at line 274 of file KDTreeLinkerToolsT.h.

References lar_content::KDTreeNodeT< DATA, DIM >::info, and lar_content::KDTreeNodeT< DATA, DIM >::region.

Referenced by lar_content::KDTreeLinkerAlgo< DATA, DIM >::recBuild().

275 {
276  info = infoToStore;
277  region = regionBox;
278 }
KDTreeBoxT< DIM > region
Region bounding box.
KDTreeNodeInfoT< DATA, DIM > info
Data.
template<typename DATA , unsigned DIM>
void lar_content::KDTreeNodeT< DATA, DIM >::setAttributs ( const KDTreeBoxT< DIM > &  regionBox)
inline

setAttributs

Parameters
regionBox

Definition at line 283 of file KDTreeLinkerToolsT.h.

References lar_content::KDTreeNodeT< DATA, DIM >::region.

284 {
285  region = regionBox;
286 }
KDTreeBoxT< DIM > region
Region bounding box.

Member Data Documentation

template<typename DATA, unsigned DIM>
KDTreeBoxT<DIM> lar_content::KDTreeNodeT< DATA, DIM >::region

Region bounding box.

Definition at line 116 of file KDTreeLinkerToolsT.h.

Referenced by lar_content::KDTreeNodeT< DATA, DIM >::setAttributs().


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