19 const ::cluster::ClusterParamsAlg& cluster2)
22 double angle1 = cluster1.GetParams().angle_2d;
23 double angle2 = cluster2.GetParams().angle_2d;
24 size_t hits1 = cluster1.GetHitVector().size();
25 size_t hits2 = cluster2.GetHitVector().size();
31 std::cout <<
"Cluster1:" << std::endl;
32 std::cout <<
"\tAngle: " << angle1 << std::endl;
33 std::cout <<
"\t Start: (" << cluster1.GetParams().start_point.w <<
", " 34 << cluster1.GetParams().start_point.t <<
")" << std::endl;
35 std::cout <<
"Cluster2:" << std::endl;
36 std::cout <<
"\tAngle: " << angle2 << std::endl;
37 std::cout <<
"\t Start: (" << cluster2.GetParams().start_point.w <<
", " 38 << cluster2.GetParams().start_point.t <<
")" << std::endl;
39 std::cout << std::endl;
45 if (angle1 < -998 || angle2 < -998)
return false;
47 bool compatible =
false;
58 if (compatible) std::cout <<
"These two clusters are compatible in angle." << std::endl;
constexpr auto abs(T v)
Returns the absolute value of the argument.
Class def header for a class CBAlgoAngleAlign.