LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 93 of file KDTreeLinkerToolsT.h.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 268 of file KDTreeLinkerToolsT.h.

268  :
269  left(nullptr),
270  right(nullptr)
271 {
272 }
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 277 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().

278 {
279  info = infoToStore;
280  region = regionBox;
281 }
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 286 of file KDTreeLinkerToolsT.h.

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

287 {
288  region = regionBox;
289 }
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 119 of file KDTreeLinkerToolsT.h.

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


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