#include <KDTreeLinkerAlgoT.h>
Public Member Functions | |
void | build (std::vector< KDTreeNodeInfo > &eltList, const KDTreeBox ®ion) |
void | build (std::vector< KDTreeNodeInfoT< DATA, DIM > > &eltList, const KDTreeBoxT< DIM > ®ion) |
void | build (std::vector< KDTreeNodeInfo< DATA > > &eltList, const KDTreeBox ®ion) |
void | clear () |
void | clear () |
void | clear () |
bool | empty () |
bool | empty () |
KDTreeLinkerAlgo () | |
KDTreeLinkerAlgo () | |
KDTreeLinkerAlgo () | |
void | search (const KDTreeBox &searchBox, std::vector< KDTreeNodeInfo > &resRecHitList) |
void | search (const KDTreeBoxT< DIM > &searchBox, std::vector< KDTreeNodeInfoT< DATA, DIM > > &resRecHitList) |
void | search (const KDTreeBox &searchBox, std::vector< DATA > &resRecHitList) |
int | size () |
int | size () |
~KDTreeLinkerAlgo () | |
~KDTreeLinkerAlgo () | |
~KDTreeLinkerAlgo () | |
Private Member Functions | |
void | addSubtree (const KDTreeNode *current, std::vector< KDTreeNodeInfo > &recHits) |
void | addSubtree (const KDTreeNodeT< DATA, DIM > *current) |
void | clearTree () |
void | clearTree () |
void | clearTree () |
KDTreeNode * | getNextNode () |
KDTreeNodeT< DATA, DIM > * | getNextNode () |
int | medianSearch (std::vector< KDTreeNodeInfo > &eltList, int low, int high, int treeDepth) |
int | medianSearch (int low, int high, int treeDepth) |
int | medianSearch (int low, int high, int treeDepth) |
KDTreeNode * | recBuild (std::vector< KDTreeNodeInfo > &eltList, int low, int hight, int depth, const KDTreeBox ®ion) |
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 KDTreeNode *current, const KDTreeBox &trackBox, std::vector< KDTreeNodeInfo > &recHits) |
void | recSearch (const KDTreeNodeT< DATA, DIM > *current, const KDTreeBoxT< DIM > &trackBox) |
void | swap (KDTreeNodeInfo &e1, KDTreeNodeInfo &e2) |
Private Attributes | |
std::vector< DATA > * | closestNeighbour |
std::vector< KDTreeNodeInfoT< DATA, DIM > > * | closestNeighbour |
std::vector< KDTreeNodeInfo< DATA > > * | initialEltList |
std::vector< KDTreeNodeInfoT< DATA, DIM > > * | initialEltList |
KDTreeNode * | nodePool_ |
KDTreeNodes< DATA > | nodePool_ |
KDTreeNodeT< DATA, DIM > * | nodePool_ |
int | nodePoolPos_ |
int | nodePoolSize_ |
KDTreeNode * | root_ |
KDTreeNodeT< DATA, DIM > * | root_ |
Definition at line 13 of file KDTreeLinkerAlgoT.h.
KDTreeLinkerAlgo< DATA >::KDTreeLinkerAlgo | ( | ) |
Definition at line 239 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::recSearch().
KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo | ( | ) |
Definition at line 248 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::clear().
Referenced by KDTreeLinkerAlgo< DATA, DIM >::recSearch().
KDTreeLinkerAlgo< DATA, DIM >::KDTreeLinkerAlgo | ( | ) |
KDTreeLinkerAlgo< DATA, DIM >::~KDTreeLinkerAlgo | ( | ) |
KDTreeLinkerAlgo< DATA, DIM >::KDTreeLinkerAlgo | ( | ) |
KDTreeLinkerAlgo< DATA, DIM >::~KDTreeLinkerAlgo | ( | ) |
|
private |
Definition at line 209 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::clear(), KDTreeLinkerAlgo< DATA, DIM >::clearTree(), KDTreeLinkerAlgo< DATA, DIM >::getNextNode(), KDTreeNode::left, KDTreeLinkerAlgo< DATA, DIM >::nodePool_, KDTreeLinkerAlgo< DATA, DIM >::nodePoolPos_, KDTreeLinkerAlgo< DATA, DIM >::nodePoolSize_, KDTreeNode::rh, KDTreeNode::right, and KDTreeLinkerAlgo< DATA, DIM >::root_.
|
private |
Definition at line 222 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::closestNeighbour, KDTreeNodeT< DATA, DIM >::info, KDTreeNodeT< DATA, DIM >::left, and KDTreeNodeT< DATA, DIM >::right.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), and KDTreeLinkerAlgo< DATA, DIM >::recSearch().
void KDTreeLinkerAlgo< DATA >::build | ( | std::vector< KDTreeNodeInfo > & | eltList, |
const KDTreeBox & | region | ||
) |
Definition at line 17 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::nodePool_, KDTreeLinkerAlgo< DATA, DIM >::nodePoolSize_, KDTreeLinkerAlgo< DATA, DIM >::recBuild(), and KDTreeLinkerAlgo< DATA, DIM >::root_.
void KDTreeLinkerAlgo< DATA, DIM >::build | ( | std::vector< KDTreeNodeInfoT< DATA, DIM > > & | eltList, |
const KDTreeBoxT< DIM > & | region | ||
) |
Definition at line 86 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::initialEltList, KDTreeLinkerAlgo< DATA, DIM >::nodePool_, KDTreeLinkerAlgo< DATA, DIM >::nodePoolSize_, KDTreeLinkerAlgo< DATA, DIM >::recBuild(), KDTreeLinkerAlgo< DATA, DIM >::root_, and KDTreeLinkerAlgo< DATA, DIM >::size().
Referenced by KDTreeLinkerTrackEcal::buildTree(), KDTreeLinkerTrackHcal::buildTree(), KDTreeLinkerPSEcal::buildTree(), and HGCalImagingAlgo::findAndAssignClusters().
void KDTreeLinkerAlgo< DATA, DIM >::build | ( | std::vector< KDTreeNodeInfo< DATA > > & | eltList, |
const KDTreeBox & | region | ||
) |
void KDTreeLinkerAlgo< DATA, DIM >::clear | ( | ) |
void KDTreeLinkerAlgo< DATA >::clear | ( | void | ) |
Definition at line 267 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::clearTree(), and KDTreeLinkerAlgo< DATA, DIM >::root_.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerPSEcal::clear(), KDTreeLinkerTrackHcal::clear(), KDTreeLinkerTrackEcal::clear(), HGCalImagingAlgo::findAndAssignClusters(), KDTreeLinkerAlgo< DATA, DIM >::recSearch(), KDTreeLinkerAlgo< DATA, DIM >::size(), and KDTreeLinkerAlgo< DATA, DIM >::~KDTreeLinkerAlgo().
void KDTreeLinkerAlgo< DATA, DIM >::clear | ( | ) |
|
private |
|
private |
|
private |
Definition at line 256 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::nodePool_, KDTreeLinkerAlgo< DATA, DIM >::nodePoolPos_, KDTreeLinkerAlgo< DATA, DIM >::nodePoolSize_, and KDTreeLinkerAlgo< DATA, DIM >::root_.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::clear(), and KDTreeLinkerAlgo< DATA, DIM >::recSearch().
|
inline |
Definition at line 31 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA, DIM >::nodePool_.
|
inline |
Definition at line 31 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::nodePoolPos_.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::search().
|
private |
|
private |
Definition at line 276 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::nodePool_, and KDTreeLinkerAlgo< DATA, DIM >::nodePoolPos_.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), and KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 90 of file KDTreeLinkerAlgo.cc.
References KDTreeNodeInfo< DATA >::dim1, KDTreeNodeInfo< DATA >::dim2, mps_fire::i, checklumidiff::l, funct::m, and KDTreeLinkerAlgo< DATA, DIM >::swap().
|
private |
|
private |
Definition at line 106 of file KDTreeLinkerAlgoT.h.
References DIM, KDTreeNodeInfoT< DATA, DIM >::dims, mps_fire::i, KDTreeLinkerAlgo< DATA, DIM >::initialEltList, checklumidiff::l, funct::m, and std::swap().
Referenced by KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 31 of file KDTreeLinkerAlgo.cc.
References particleFlowClusterECALTimeSelected_cfi::depth, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeLinkerAlgo< DATA, DIM >::getNextNode(), KDTreeNode::left, KDTreeLinkerAlgo< DATA, DIM >::medianSearch(), KDTreeLinkerAlgo< DATA, DIM >::recBuild(), KDTreeNode::right, and KDTreeNode::setAttributs().
|
private |
Definition at line 234 of file KDTreeLinkerAlgo.h.
References KDTreeNodeInfo< DATA >::data, particleFlowClusterECALTimeSelected_cfi::depth, KDTreeNodeInfo< DATA >::dim, info(), KDTreeLinkerAlgo< DATA, DIM >::medianSearch(), KDTreeLinkerAlgo< DATA, DIM >::nodePool_, and KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 290 of file KDTreeLinkerAlgoT.h.
References particleFlowClusterECALTimeSelected_cfi::depth, DIM, KDTreeBoxT< DIM >::dimmax, KDTreeBoxT< DIM >::dimmin, KDTreeLinkerAlgo< DATA, DIM >::getNextNode(), KDTreeLinkerAlgo< DATA, DIM >::initialEltList, KDTreeNodeT< DATA, DIM >::left, KDTreeLinkerAlgo< DATA, DIM >::medianSearch(), KDTreeNodeT< DATA, DIM >::right, and KDTreeNodeT< DATA, DIM >::setAttributs().
Referenced by KDTreeLinkerAlgo< DATA, DIM >::build(), and KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 154 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeNodeInfo< DATA >::dim1, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeNodeInfo< DATA >::dim2, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeNode::left, KDTreeLinkerAlgo< DATA, DIM >::recSearch(), KDTreeNode::region, KDTreeNode::rh, and KDTreeNode::right.
|
private |
Definition at line 151 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA, DIM >::clear(), KDTreeLinkerAlgo< DATA, DIM >::clearTree(), KDTreeLinkerAlgo< DATA, DIM >::closestNeighbour, KDTreeLinkerAlgo< DATA, DIM >::KDTreeLinkerAlgo(), KDTreeLinkerAlgo< DATA, DIM >::nodePool_, KDTreeLinkerAlgo< DATA, DIM >::recSearch(), std::swap(), and KDTreeLinkerAlgo< DATA, DIM >::~KDTreeLinkerAlgo().
|
private |
Definition at line 162 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::closestNeighbour, DIM, KDTreeBoxT< DIM >::dimmax, KDTreeBoxT< DIM >::dimmin, mps_fire::i, KDTreeNodeT< DATA, DIM >::info, KDTreeNodeT< DATA, DIM >::left, and KDTreeNodeT< DATA, DIM >::right.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::recSearch(), and KDTreeLinkerAlgo< DATA, DIM >::search().
void KDTreeLinkerAlgo< DATA, DIM >::search | ( | const KDTreeBox & | searchBox, |
std::vector< KDTreeNodeInfo > & | resRecHitList | ||
) |
Definition at line 146 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA, DIM >::recSearch(), and KDTreeLinkerAlgo< DATA, DIM >::root_.
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, DIM >::closestNeighbour, KDTreeLinkerAlgo< DATA, DIM >::recSearch(), and KDTreeLinkerAlgo< DATA, DIM >::root_.
Referenced by HGCalImagingAlgo::calculateLocalDensity(), HGCalImagingAlgo::findAndAssignClusters(), KDTreeLinkerPSEcal::searchLinks(), KDTreeLinkerTrackEcal::searchLinks(), and KDTreeLinkerTrackHcal::searchLinks().
void KDTreeLinkerAlgo< DATA >::search | ( | const KDTreeBox & | searchBox, |
std::vector< DATA > & | resRecHitList | ||
) |
Definition at line 138 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA, DIM >::closestNeighbour, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeLinkerAlgo< DATA, DIM >::empty(), and KDTreeLinkerAlgo< DATA, DIM >::recSearch().
|
inline |
Definition at line 35 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA, DIM >::clear(), and KDTreeLinkerAlgo< DATA, DIM >::nodePool_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
inline |
Definition at line 35 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::clear(), and KDTreeLinkerAlgo< DATA, DIM >::nodePoolPos_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and KDTreeLinkerAlgo< DATA, DIM >::build().
|
private |
Definition at line 137 of file KDTreeLinkerAlgo.cc.
References reco::e1, reco::e2, and tmp.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::medianSearch().
|
private |
Definition at line 44 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 51 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::recSearch(), and KDTreeLinkerAlgo< DATA, DIM >::search().
|
private |
Definition at line 45 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 52 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::medianSearch(), and KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 35 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 42 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 45 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clearTree(), KDTreeLinkerAlgo< DATA, DIM >::empty(), KDTreeLinkerAlgo< DATA, DIM >::getNextNode(), KDTreeLinkerAlgo< DATA, DIM >::recBuild(), KDTreeLinkerAlgo< DATA, DIM >::recSearch(), and KDTreeLinkerAlgo< DATA, DIM >::size().
|
private |
Definition at line 47 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::clearTree(), KDTreeLinkerAlgo< DATA, DIM >::empty(), KDTreeLinkerAlgo< DATA, DIM >::getNextNode(), and KDTreeLinkerAlgo< DATA, DIM >::size().
|
private |
Definition at line 46 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::build(), and KDTreeLinkerAlgo< DATA, DIM >::clearTree().
|
private |
Definition at line 32 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 42 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::addSubtree(), KDTreeLinkerAlgo< DATA, DIM >::build(), KDTreeLinkerAlgo< DATA, DIM >::clear(), KDTreeLinkerAlgo< DATA, DIM >::clearTree(), and KDTreeLinkerAlgo< DATA, DIM >::search().