#include <KDTreeLinkerAlgo.h>
Public Member Functions | |
void | build (std::vector< KDTreeNodeInfo< DATA > > &eltList, const KDTreeBox ®ion) |
void | build (std::vector< KDTreeNodeInfoT< DATA, DIM > > &eltList, const KDTreeBoxT< DIM > ®ion) |
void | clear () |
void | clear () |
bool | empty () |
bool | empty () |
KDTreeLinkerAlgo () | |
KDTreeLinkerAlgo () | |
void | search (const KDTreeBox &searchBox, std::vector< DATA > &resRecHitList) |
void | search (const KDTreeBoxT< DIM > &searchBox, std::vector< KDTreeNodeInfoT< DATA, DIM > > &resRecHitList) |
int | size () |
int | size () |
~KDTreeLinkerAlgo () | |
~KDTreeLinkerAlgo () | |
Private Member Functions | |
void | addSubtree (const KDTreeNodeT< DATA, DIM > *current) |
void | clearTree () |
void | clearTree () |
KDTreeNodeT< DATA, DIM > * | getNextNode () |
int | medianSearch (int low, int high, int treeDepth) |
int | medianSearch (int low, int high, int treeDepth) |
int | recBuild (int low, int hight, int depth) |
KDTreeNodeT< DATA, DIM > * | recBuild (int low, int hight, int depth, const KDTreeBoxT< DIM > ®ion) |
void | recSearch (int current, float dimCurrMin, float dimCurrMax, float dimOtherMin, float dimOtherMax) |
void | recSearch (const KDTreeNodeT< DATA, DIM > *current, const KDTreeBoxT< DIM > &trackBox) |
Private Attributes | |
std::vector< DATA > * | closestNeighbour |
std::vector< KDTreeNodeInfoT< DATA, DIM > > * | closestNeighbour |
std::vector< KDTreeNodeInfo< DATA > > * | initialEltList |
std::vector< KDTreeNodeInfoT< DATA, DIM > > * | initialEltList |
KDTreeNodes< DATA > | nodePool_ |
KDTreeNodeT< DATA, DIM > * | nodePool_ |
int | nodePoolPos_ |
int | nodePoolSize_ |
KDTreeNodeT< DATA, DIM > * | root_ |
Definition at line 13 of file KDTreeLinkerAlgo.h.
KDTreeLinkerAlgo< DATA, DIM >::KDTreeLinkerAlgo | ( | ) |
Definition at line 180 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree().
KDTreeLinkerAlgo< DATA, DIM >::~KDTreeLinkerAlgo | ( | ) |
Definition at line 183 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA >::clear().
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree().
KDTreeLinkerAlgo< DATA >::KDTreeLinkerAlgo | ( | ) |
KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo | ( | ) |
|
private |
Definition at line 222 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA >::clear(), KDTreeLinkerAlgo< DATA >::clearTree(), KDTreeLinkerAlgo< DATA >::closestNeighbour, KDTreeNodeT< DATA, DIM >::info, KDTreeLinkerAlgo< DATA >::KDTreeLinkerAlgo(), KDTreeNodeT< DATA, DIM >::left, KDTreeLinkerAlgo< DATA >::nodePool_, KDTreeLinkerAlgo< DATA >::nodePoolPos_, KDTreeLinkerAlgo< DATA >::nodePoolSize_, KDTreeNodeT< DATA, DIM >::right, KDTreeLinkerAlgo< DATA >::root_, and KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo().
Referenced by KDTreeLinkerAlgo< DATA >::recSearch().
void KDTreeLinkerAlgo< DATA >::build | ( | std::vector< KDTreeNodeInfo< DATA > > & | eltList, |
const KDTreeBox & | region | ||
) |
Definition at line 61 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA >::initialEltList, KDTreeLinkerAlgo< DATA >::nodePool_, KDTreeLinkerAlgo< DATA >::recBuild(), and KDTreeLinkerAlgo< DATA >::size().
Referenced by KDTreeLinkerTrackEcal::buildTree(), KDTreeLinkerTrackHcal::buildTree(), KDTreeLinkerPSEcal::buildTree(), HGCalImagingAlgo::findAndAssignClusters(), HGCalCLUEAlgo::makeClusters(), HGCalImagingAlgo::makeClusters(), and psClasses.BuildThread::run().
void KDTreeLinkerAlgo< DATA, DIM >::build | ( | std::vector< KDTreeNodeInfoT< DATA, DIM > > & | eltList, |
const KDTreeBoxT< DIM > & | region | ||
) |
Definition at line 86 of file KDTreeLinkerAlgoT.h.
References DIM, KDTreeNodeInfoT< DATA, DIM >::dims, mps_fire::i, KDTreeLinkerAlgo< DATA >::initialEltList, checklumidiff::l, funct::m, pfDeepBoostedJetPreprocessParams_cfi::median, KDTreeLinkerAlgo< DATA >::medianSearch(), KDTreeLinkerAlgo< DATA >::nodePool_, KDTreeLinkerAlgo< DATA >::nodePoolSize_, KDTreeLinkerAlgo< DATA >::recBuild(), KDTreeLinkerAlgo< DATA >::root_, KDTreeLinkerAlgo< DATA >::size(), and std::swap().
void KDTreeLinkerAlgo< DATA, DIM >::clear | ( | void | ) |
Definition at line 193 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA >::clearTree().
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), KDTreeLinkerPSEcal::clear(), KDTreeLinkerTrackEcal::clear(), KDTreeLinkerTrackHcal::clear(), Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), HGCalImagingAlgo::findAndAssignClusters(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), KDTreeLinkerAlgo< reco::PFRecHit const * >::size(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), Vispa.Views.PropertyView.PropertyView::updateContent(), and KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo().
void KDTreeLinkerAlgo< DATA >::clear | ( | ) |
|
private |
Definition at line 188 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA >::nodePool_.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), and KDTreeLinkerAlgo< DATA >::clear().
|
private |
|
inline |
Definition at line 28 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::search(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
Definition at line 31 of file KDTreeLinkerAlgoT.h.
|
private |
Definition at line 276 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA >::nodePool_, and KDTreeLinkerAlgo< DATA >::nodePoolPos_.
Referenced by KDTreeLinkerAlgo< DATA >::recBuild().
|
private |
Definition at line 78 of file KDTreeLinkerAlgo.h.
References KDTreeNodeInfo< DATA >::dim, mps_fire::i, KDTreeLinkerAlgo< DATA >::initialEltList, checklumidiff::l, funct::m, pfDeepBoostedJetPreprocessParams_cfi::median, and std::swap().
Referenced by KDTreeLinkerAlgo< DATA >::build(), and KDTreeLinkerAlgo< DATA >::recBuild().
|
private |
|
private |
Definition at line 198 of file KDTreeLinkerAlgo.h.
References KDTreeNodeInfo< DATA >::data, egammaForCoreTracking_cff::depth, KDTreeNodeInfo< DATA >::dim, info(), KDTreeLinkerAlgo< DATA >::medianSearch(), and KDTreeLinkerAlgo< DATA >::nodePool_.
Referenced by KDTreeLinkerAlgo< DATA >::build(), and KDTreeLinkerAlgo< DATA >::recBuild().
|
private |
Definition at line 290 of file KDTreeLinkerAlgoT.h.
References egammaForCoreTracking_cff::depth, DIM, KDTreeBoxT< DIM >::dimmax, KDTreeBoxT< DIM >::dimmin, KDTreeLinkerAlgo< DATA >::getNextNode(), KDTreeLinkerAlgo< DATA >::initialEltList, KDTreeNodeT< DATA, DIM >::left, KDTreeLinkerAlgo< DATA >::medianSearch(), KDTreeLinkerAlgo< DATA >::recBuild(), KDTreeNodeT< DATA, DIM >::right, and KDTreeNodeT< DATA, DIM >::setAttributs().
|
private |
Definition at line 131 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA >::closestNeighbour, pfDeepBoostedJetPreprocessParams_cfi::median, KDTreeLinkerAlgo< DATA >::nodePool_, and std::swap().
Referenced by KDTreeLinkerAlgo< DATA >::recSearch(), and KDTreeLinkerAlgo< DATA >::search().
|
private |
Definition at line 162 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA >::addSubtree(), KDTreeLinkerAlgo< DATA >::closestNeighbour, DIM, KDTreeBoxT< DIM >::dimmax, KDTreeBoxT< DIM >::dimmin, mps_fire::i, KDTreeNodeT< DATA, DIM >::info, KDTreeNodeT< DATA, DIM >::left, KDTreeLinkerAlgo< DATA >::recSearch(), and KDTreeNodeT< DATA, DIM >::right.
void KDTreeLinkerAlgo< DATA >::search | ( | const KDTreeBox & | searchBox, |
std::vector< DATA > & | resRecHitList | ||
) |
Definition at line 122 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA >::closestNeighbour, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeLinkerAlgo< DATA >::empty(), and KDTreeLinkerAlgo< DATA >::recSearch().
Referenced by HGCalCLUEAlgo::calculateLocalDensity(), HGCalImagingAlgo::calculateLocalDensity(), HGCalImagingAlgo::findAndAssignClusters(), BeautifulSoup.SoupStrainer::search(), KDTreeLinkerPSEcal::searchLinks(), KDTreeLinkerTrackHcal::searchLinks(), and KDTreeLinkerTrackEcal::searchLinks().
void KDTreeLinkerAlgo< DATA, DIM >::search | ( | const KDTreeBoxT< DIM > & | searchBox, |
std::vector< KDTreeNodeInfoT< DATA, DIM > > & | resRecHitList | ||
) |
Definition at line 149 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA >::closestNeighbour, KDTreeLinkerAlgo< DATA >::recSearch(), and KDTreeLinkerAlgo< DATA >::root_.
|
inline |
Definition at line 32 of file KDTreeLinkerAlgo.h.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and KDTreeLinkerAlgo< DATA >::build().
|
inline |
Definition at line 35 of file KDTreeLinkerAlgoT.h.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
private |
Definition at line 41 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), KDTreeLinkerAlgo< DATA >::recSearch(), and KDTreeLinkerAlgo< DATA >::search().
|
private |
Definition at line 51 of file KDTreeLinkerAlgoT.h.
|
private |
Definition at line 42 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::build(), KDTreeLinkerAlgo< DATA >::medianSearch(), and KDTreeLinkerAlgo< DATA >::recBuild().
|
private |
Definition at line 52 of file KDTreeLinkerAlgoT.h.
|
private |
Definition at line 39 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), KDTreeLinkerAlgo< DATA >::build(), KDTreeLinkerAlgo< DATA >::clearTree(), KDTreeLinkerAlgo< reco::PFRecHit const * >::empty(), KDTreeLinkerAlgo< DATA >::getNextNode(), KDTreeLinkerAlgo< DATA >::recBuild(), KDTreeLinkerAlgo< DATA >::recSearch(), and KDTreeLinkerAlgo< reco::PFRecHit const * >::size().
|
private |
Definition at line 45 of file KDTreeLinkerAlgoT.h.
|
private |
Definition at line 47 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), KDTreeLinkerAlgo< reco::PFRecHit const * >::empty(), KDTreeLinkerAlgo< DATA >::getNextNode(), and KDTreeLinkerAlgo< reco::PFRecHit const * >::size().
|
private |
Definition at line 46 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), and KDTreeLinkerAlgo< DATA >::build().
|
private |
Definition at line 42 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA >::addSubtree(), KDTreeLinkerAlgo< DATA >::build(), and KDTreeLinkerAlgo< DATA >::search().