6 namespace TrackAnalysisUtils
15 std::cout <<
"You passed a nullptr, can't calculate DCA" << std::endl;
29 for (
int i = 0;
i < 3; ++
i)
31 for (
int j = 0;
j < 3; ++
j)
38 float phi = atan2(
r(1),
r(0));
42 rot(0, 0) = std::cos(phi);
43 rot(0, 1) = -std::sin(phi);
45 rot(1, 0) = std::sin(phi);
46 rot(1, 1) = std::cos(phi);
52 rot_T = rot.transpose();
57 pair.first.first = pos_R(0);
58 pair.first.second = sqrt(rotCov(0, 0));
61 pair.second.first = pos_R(2);
62 pair.second.second = sqrt(rotCov(2, 2));
69 std::vector<TrkrDefs::cluskey>
out;
74 std::copy(
seed->begin_cluster_keys(),
seed->end_cluster_keys(), std::back_inserter(out));