#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.
KDTreeLinkerAlgo< DATA >::~KDTreeLinkerAlgo | ( | ) |
Definition at line 248 of file KDTreeLinkerAlgoT.h.
References hitfit::clear().
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(), assert(), KDTreeNode::left, KDTreeNode::rh, and KDTreeNode::right.
|
private |
Definition at line 222 of file KDTreeLinkerAlgoT.h.
References 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(), HLT_FULL_cff::region, 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 sistrip::root_, and findQualityFiles::size.
Referenced by KDTreeLinkerTrackEcal::buildTree(), KDTreeLinkerTrackHcal::buildTree(), KDTreeLinkerPSEcal::buildTree(), HGCalImagingAlgo::findAndAssignClusters(), and QuadrupletSeedMerger::mergeTriplets().
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 sistrip::root_.
Referenced by KDTreeLinkerPSEcal::clear(), KDTreeLinkerTrackHcal::clear(), KDTreeLinkerTrackEcal::clear(), and HGCalImagingAlgo::findAndAssignClusters().
void KDTreeLinkerAlgo< DATA, DIM >::clear | ( | ) |
|
private |
|
private |
|
private |
|
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_.
|
private |
|
private |
Definition at line 276 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 90 of file KDTreeLinkerAlgo.cc.
References assert(), KDTreeNodeInfo< DATA >::dim1, KDTreeNodeInfo< DATA >::dim2, i, j, cmsLHEtoEOSManager::l, visualization-live-secondInstance_cfg::m, and KDTreeLinkerAlgo< DATA, DIM >::swap().
|
private |
|
private |
Definition at line 106 of file KDTreeLinkerAlgoT.h.
References DIM, KDTreeNodeInfoT< DATA, DIM >::dims, i, j, cmsLHEtoEOSManager::l, visualization-live-secondInstance_cfg::m, and std::swap().
Referenced by KDTreeLinkerAlgo< DATA, DIM >::recBuild().
|
private |
Definition at line 31 of file KDTreeLinkerAlgo.cc.
References assert(), HLT_FULL_cff::depth, KDTreeBox::dim1max, KDTreeBox::dim1min, KDTreeBox::dim2max, KDTreeBox::dim2min, KDTreeLinkerAlgo< DATA, DIM >::getNextNode(), KDTreeNode::left, KDTreeLinkerAlgo< DATA, DIM >::medianSearch(), KDTreeLinkerAlgo< DATA, DIM >::recBuild(), HLT_FULL_cff::region, KDTreeNode::right, and KDTreeNode::setAttributs().
|
private |
Definition at line 234 of file KDTreeLinkerAlgo.h.
References assert(), KDTreeNodeInfo< DATA >::data, HLT_FULL_cff::depth, KDTreeNodeInfo< DATA >::dim, and info().
|
private |
Definition at line 290 of file KDTreeLinkerAlgoT.h.
References HLT_FULL_cff::depth, DIM, KDTreeBoxT< DIM >::dimmax, KDTreeBoxT< DIM >::dimmin, KDTreeNodeT< DATA, DIM >::left, HLT_FULL_cff::region, 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(), assert(), 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 std::swap().
|
private |
Definition at line 162 of file KDTreeLinkerAlgoT.h.
References DIM, KDTreeBoxT< DIM >::dimmax, KDTreeBoxT< DIM >::dimmin, 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 HLT_FULL_cff::recHits, and sistrip::root_.
Referenced by HGCalImagingAlgo::calculateLocalDensity(), HGCalImagingAlgo::findAndAssignClusters(), 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_FULL_cff::recHits.
|
inline |
Definition at line 35 of file KDTreeLinkerAlgo.h.
References KDTreeLinkerAlgo< DATA, DIM >::nodePool_.
Referenced by ntuple._Collection::__iter__(), and ntuple._Collection::__len__().
|
inline |
Definition at line 35 of file KDTreeLinkerAlgoT.h.
References KDTreeLinkerAlgo< DATA, DIM >::nodePoolPos_.
Referenced by ntuple._Collection::__iter__(), and ntuple._Collection::__len__().
|
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.
|
private |
Definition at line 45 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 52 of file KDTreeLinkerAlgoT.h.
|
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 >::build(), KDTreeLinkerAlgo< DATA, DIM >::empty(), and KDTreeLinkerAlgo< DATA, DIM >::size().
|
private |
Definition at line 47 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::empty(), and KDTreeLinkerAlgo< DATA, DIM >::size().
|
private |
Definition at line 46 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::build().
|
private |
Definition at line 32 of file KDTreeLinkerAlgo.h.
|
private |
Definition at line 42 of file KDTreeLinkerAlgoT.h.
Referenced by KDTreeLinkerAlgo< DATA, DIM >::build(), and KDTreeLinkerAlgo< DATA, DIM >::search().