28 const ::cluster::ClusterParamsAlg &cluster2)
38 double angle1 = cluster1.GetParams().angle_2d;
39 double angle2 = cluster2.GetParams().angle_2d;
41 double w_start1 = cluster1.GetParams().start_point.w;
42 double t_start1 = cluster1.GetParams().start_point.t;
43 double w_start2 = cluster2.GetParams().start_point.w;
44 double t_start2 = cluster2.GetParams().start_point.t;
49 std::cout <<
"\tAngle: " << angle1 << std::endl;
50 std::cout <<
"\tStart: ( " << w_start1 <<
", " << t_start1 <<
" )" << std::endl;
52 std::cout <<
"\tAngle: " << angle2 << std::endl;
53 std::cout <<
"\tStart: ( " << w_start2 <<
", " << t_start2 <<
" )" << std::endl;
60 if(angle1 < -998 || angle2 < -998)
69 bool compatible =
false;
74 my_cut_value = std::min(cluster1.GetParams().opening_angle, cluster2.GetParams().opening_angle);
78 compatible = (
abs(angle1-angle2) < my_cut_value ||
79 abs(angle1-angle2-180) < my_cut_value ||
80 abs(angle1-angle2+180) < my_cut_value );
82 compatible = (
abs(angle1-angle2) < my_cut_value );
86 if(compatible)
std::cout<<
"These two clusters are compatible in angle."<<std::endl;
87 else std::cout<<
"These two clusters are NOT compatible in angle."<<std::endl;
Class def header for a class CBAlgoAngleCompat.
return match has_match and(match.match_pdg==11 or match.match_pdg==-11)
BEGIN_PROLOG could also be cout