#include <KDTreeLinkerAlgo.h>
Public Member Functions | |
void | build (std::vector< KDTreeNodeInfo > &eltList, const KDTreeBox ®ion) |
void | build (std::vector< KDTreeNodeInfo< DATA > > &eltList, const KDTreeBox ®ion) |
void | clear () |
void | clear () |
bool | empty () |
KDTreeLinkerAlgo () | |
KDTreeLinkerAlgo () | |
void | search (const KDTreeBox &searchBox, std::vector< KDTreeNodeInfo > &resRecHitList) |
void | search (const KDTreeBox &searchBox, std::vector< DATA > &resRecHitList) |
int | size () |
~KDTreeLinkerAlgo () | |
~KDTreeLinkerAlgo () | |
Private Member Functions | |
void | addSubtree (const KDTreeNode *current, std::vector< KDTreeNodeInfo > &recHits) |
void | clearTree () |
void | clearTree () |
KDTreeNode * | getNextNode () |
int | medianSearch (std::vector< KDTreeNodeInfo > &eltList, 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) |
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 | swap (KDTreeNodeInfo &e1, KDTreeNodeInfo &e2) |
Private Attributes | |
std::vector< DATA > * | closestNeighbour |
std::vector< KDTreeNodeInfo < DATA > > * | initialEltList |
KDTreeNode * | nodePool_ |
KDTreeNodes< DATA > | nodePool_ |
int | nodePoolPos_ |
int | nodePoolSize_ |
KDTreeNode * | root_ |
Definition at line 10 of file KDTreeLinkerAlgo.h.
KDTreeLinkerAlgo< DATA >::KDTreeLinkerAlgo | ( | ) |
Definition at line 3 of file KDTreeLinkerAlgo.cc.
KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo | ( | ) |
Definition at line 11 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA >::clear().
KDTreeLinkerAlgo< DATA >::KDTreeLinkerAlgo | ( | ) |
KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo | ( | ) |
|
private |
Definition at line 209 of file KDTreeLinkerAlgo.cc.
References assert(), KDTreeNode::left, KDTreeNode::rh, and KDTreeNode::right.
Referenced by KDTreeLinkerAlgo< DATA >::recSearch().
void KDTreeLinkerAlgo< DATA >::build | ( | std::vector< KDTreeNodeInfo > & | eltList, |
const KDTreeBox & | region | ||
) |
Definition at line 17 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA >::nodePool_, KDTreeLinkerAlgo< DATA >::nodePoolSize_, KDTreeLinkerAlgo< DATA >::recBuild(), HLT_50nsGRun_cff::region, and KDTreeLinkerAlgo< DATA >::root_.
Referenced by KDTreeLinkerTrackEcal::buildTree(), KDTreeLinkerTrackHcal::buildTree(), KDTreeLinkerPSEcal::buildTree(), MultiHitGeneratorFromChi2::hitSets(), PixelTripletLargeTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), and QuadrupletSeedMerger::mergeTriplets().
void KDTreeLinkerAlgo< DATA >::build | ( | std::vector< KDTreeNodeInfo< DATA > > & | eltList, |
const KDTreeBox & | region | ||
) |
void KDTreeLinkerAlgo< DATA >::clear | ( | void | ) |
Definition at line 235 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA >::clearTree(), and KDTreeLinkerAlgo< DATA >::root_.
Referenced by KDTreeLinkerPSEcal::clear(), KDTreeLinkerTrackEcal::clear(), KDTreeLinkerTrackHcal::clear(), and KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo().
void KDTreeLinkerAlgo< DATA >::clear | ( | ) |
|
private |
|
private |
Definition at line 225 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA >::nodePool_, KDTreeLinkerAlgo< DATA >::nodePoolPos_, KDTreeLinkerAlgo< DATA >::nodePoolSize_, and KDTreeLinkerAlgo< DATA >::root_.
Referenced by KDTreeLinkerAlgo< DATA >::clear().
|
inline |
|
private |
Definition at line 243 of file KDTreeLinkerAlgo.cc.
References assert(), KDTreeLinkerAlgo< DATA >::nodePool_, KDTreeLinkerAlgo< DATA >::nodePoolPos_, and KDTreeLinkerAlgo< DATA >::nodePoolSize_.
Referenced by KDTreeLinkerAlgo< DATA >::recBuild().
|
private |
Definition at line 90 of file KDTreeLinkerAlgo.cc.
References assert(), KDTreeNodeInfo< DATA >::dim1, KDTreeNodeInfo< DATA >::dim2, i, j, prof2calltree::l, contentValuesFiles::m, and KDTreeLinkerAlgo< DATA >::swap().
Referenced by KDTreeLinkerAlgo< DATA >::recBuild().
|
private |
Definition at line 93 of file KDTreeLinkerAlgo.h.
References KDTreeNodeInfo< DATA >::dim, i, j, prof2calltree::l, contentValuesFiles::m, and std::swap().
|
private |
Definition at line 31 of file KDTreeLinkerAlgo.cc.
References assert(), HLT_25ns14e33_v1_cff::depth, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeLinkerAlgo< DATA >::getNextNode(), python.Node::leaf, KDTreeNode::left, KDTreeLinkerAlgo< DATA >::medianSearch(), python.Node::node, HLT_50nsGRun_cff::region, KDTreeNode::right, and KDTreeNode::setAttributs().
Referenced by KDTreeLinkerAlgo< DATA >::build().
|
private |
Definition at line 234 of file KDTreeLinkerAlgo.h.
References assert(), KDTreeNodeInfo< DATA >::data, HLT_25ns14e33_v1_cff::depth, KDTreeNodeInfo< DATA >::dim, info(), and python.Node::leaf.
|
private |
Definition at line 151 of file KDTreeLinkerAlgo.h.
References cond::rpcobimon::current, and std::swap().
|
private |
Definition at line 154 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA >::addSubtree(), assert(), KDTreeNodeInfo< DATA >::dim1, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeNodeInfo< DATA >::dim2, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeNode::left, KDTreeNode::region, KDTreeNode::rh, and KDTreeNode::right.
Referenced by KDTreeLinkerAlgo< DATA >::search().
void KDTreeLinkerAlgo< DATA >::search | ( | const KDTreeBox & | searchBox, |
std::vector< KDTreeNodeInfo > & | resRecHitList | ||
) |
Definition at line 146 of file KDTreeLinkerAlgo.cc.
References KDTreeLinkerAlgo< DATA >::recSearch(), and KDTreeLinkerAlgo< DATA >::root_.
Referenced by MultiHitGeneratorFromChi2::hitSets(), PixelTripletLargeTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), QuadrupletSeedMerger::mergeTriplets(), KDTreeLinkerPSEcal::searchLinks(), KDTreeLinkerTrackHcal::searchLinks(), and KDTreeLinkerTrackEcal::searchLinks().
void KDTreeLinkerAlgo< DATA >::search | ( | const KDTreeBox & | searchBox, |
std::vector< DATA > & | resRecHitList | ||
) |
Definition at line 138 of file KDTreeLinkerAlgo.h.
References KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeBox::dim2max, KDTreeBox::dim2min, relativeConstraints::empty, and HLT_50nsGRun_cff::recHits.
|
inline |
|
private |
Definition at line 137 of file KDTreeLinkerAlgo.cc.
References tmp.
Referenced by KDTreeLinkerAlgo< DATA >::medianSearch().
|
private |
Definition at line 44 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 45 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 35 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::build(), KDTreeLinkerAlgo< DATA >::clearTree(), KDTreeLinkerAlgo< DATA >::empty(), KDTreeLinkerAlgo< DATA >::getNextNode(), and KDTreeLinkerAlgo< DATA >::size().
|
private |
Definition at line 42 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 37 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::clearTree(), and KDTreeLinkerAlgo< DATA >::getNextNode().
|
private |
Definition at line 36 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::build(), KDTreeLinkerAlgo< DATA >::clearTree(), and KDTreeLinkerAlgo< DATA >::getNextNode().
|
private |
Definition at line 32 of file KDTreeLinkerAlgo.h.
Referenced by KDTreeLinkerAlgo< DATA >::build(), KDTreeLinkerAlgo< DATA >::clear(), KDTreeLinkerAlgo< DATA >::clearTree(), and KDTreeLinkerAlgo< DATA >::search().