26 const ::cluster::ClusterParamsAlg &cluster2)
39 double angle1 = cluster1.GetParams().angle_2d;
40 double angle2 = cluster2.GetParams().angle_2d;
42 if(angle1 < -998 || angle2 < -998)
45 bool compatible =
false;
51 my_cut_value = std::min(cluster1.GetParams().opening_angle, cluster2.GetParams().opening_angle);
55 compatible = (
abs(angle1-angle2) < my_cut_value ||
56 abs(angle1-angle2-180) < my_cut_value ||
57 abs(angle1-angle2+180) < my_cut_value );
59 compatible = (
abs(angle1-angle2) < my_cut_value );
65 std::cout<<
"CBAlgoAngleIncompat is PROHIBITING clusters with angles "
66 <<angle1<<
" and "<<angle2<<std::endl;
Class def header for a class CBAlgoAngleIncompat.
BEGIN_PROLOG could also be cout