1 #ifndef RECOTOOL_CBALGOANGLEINCOMPAT_CXX 2 #define RECOTOOL_CBALGOANGLEINCOMPAT_CXX 27 const ::cluster::ClusterParamsAlg &cluster2)
40 double angle1 = cluster1.GetParams().angle_2d;
41 double angle2 = cluster2.GetParams().angle_2d;
43 if(angle1 < -998 || angle2 < -998)
46 bool compatible =
false;
52 my_cut_value =
std::min(cluster1.GetParams().opening_angle, cluster2.GetParams().opening_angle);
56 compatible = ( abs(angle1-angle2) < my_cut_value ||
57 abs(angle1-angle2-180) < my_cut_value ||
58 abs(angle1-angle2+180) < my_cut_value );
60 compatible = ( abs(angle1-angle2) < my_cut_value );
66 std::cout<<
"CBAlgoAngleIncompat is PROHIBITING clusters with angles " 67 <<angle1<<
" and "<<angle2<<std::endl;
Class def header for a class CBAlgoAngleIncompat.