11 #include <log4cpp/CategoryStream.hh>
21 : mClusterMap(nullptr)
40 const size_t TOTALHITS =
mKDhits.size();
43 for (
size_t i = 0, ilen = TOTALHITS; i < ilen; i++)
66 std::vector<std::vector<double>*> matches;
69 LOG_ERROR(
"tracking.PHTpcLookup.find") <<
"using tpc lookup before init";
74 double query_pt[3] = {
x,
y, z};
75 std::vector<std::pair<size_t, double> > ret_matches;
78 for (
size_t i = 0; i < nMatches; i++)
80 std::vector<double>& hit =
mKDhits[ret_matches[i].first];
81 matches.push_back(&hit);
82 double distance = std::sqrt(ret_matches[i].second);
83 LOG_DEBUG(
"tracking.PHTpcLookup.find") <<
"hit x: " << hit[0] <<
", y: " << hit[1] <<
", z: " << hit[2] <<
", dist: " << distance;