26 const ::cluster::ClusterParamsAlg& cluster2)
30 if (cluster1.GetNHits() <
_minHits || cluster2.GetNHits() <
_minHits)
return false;
36 double angle1 = cluster1.GetParams().angle_2d;
37 double angle2 = cluster2.GetParams().angle_2d;
39 if (angle1 < -998 || angle2 < -998)
return false;
41 bool compatible =
false;
48 std::min(cluster1.GetParams().opening_angle, cluster2.GetParams().opening_angle);
53 (
abs(angle1 - angle2) < my_cut_value ||
abs(angle1 - angle2 - 180) < my_cut_value ||
54 abs(angle1 - angle2 + 180) < my_cut_value);
56 compatible = (
abs(angle1 - angle2) < my_cut_value);
61 std::cout <<
"CBAlgoAngleIncompat is PROHIBITING clusters with angles " << angle1 <<
" and " 62 << angle2 << std::endl;
constexpr auto abs(T v)
Returns the absolute value of the argument.
Class def header for a class CBAlgoAngleIncompat.