-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPHTpcLookup.h
40 lines (31 loc) · 874 Bytes
/
PHTpcLookup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*!
* \file PHTpcLookup.h
* \brief
* \author Dmitry Arkhipkin <arkhipkin@gmail.com>
*/
#ifndef PHTPCLOOKUP_H_
#define PHTPCLOOKUP_H_
#include <trackbase/TrkrClusterContainer.h>
#include "externals/kdfinder.hpp"
#include <vector>
/// \class PHTpcLookup
///
/// \brief
///
class PHTpcLookup
{
public:
PHTpcLookup();
~PHTpcLookup();
void init( TrkrClusterContainer* cluster_map );
void clear();
std::vector<std::vector<double>*> find( double x, double y, double z, double radius, size_t& nMatches );
protected:
TrkrClusterContainer* mClusterMap;
std::vector<std::vector<double> > mKDhits;
kdfinder::KDPointCloud<double> mCloud;
nanoflann::KDTreeSingleIndexAdaptor<nanoflann::L2_Simple_Adaptor<double, kdfinder::KDPointCloud<double> >,
kdfinder::KDPointCloud<double>,3>* mKDindex;
private:
};
#endif /* PHTPCLOOKUP_H_ */