1 #ifndef RECOTOOL_CBALGOPOLYOVERLAP_CXX 2 #define RECOTOOL_CBALGOPOLYOVERLAP_CXX 26 const ::cluster::ClusterParamsAlg &cluster2)
29 if( (cluster1.GetParams().N_Hits <
_min_hits) ||
30 (cluster2.GetParams().N_Hits <
_min_hits) )
34 if ( (cluster1.GetParams().PolyObject.Size() < 2) or
35 (cluster2.GetParams().PolyObject.Size() < 2) ){
38 if (
_debug and cluster1.GetParams().N_Hits > 10 and cluster2.GetParams().N_Hits > 10) {
39 std::cout <<
"Cluster 1:" << std::endl;
40 std::cout <<
"\tN_Hits: " << cluster1.GetParams().N_Hits << std::endl;
41 std::cout <<
"\tN Sides:" << cluster1.GetParams().PolyObject.Size() << std::endl;
42 for (
unsigned int n=0;
n < cluster1.GetParams().PolyObject.Size();
n++)
43 std::cout <<
"\t\t\t(" << cluster1.GetParams().PolyObject.Point(
n).first <<
", " 44 << cluster1.GetParams().PolyObject.Point(
n).second <<
")" << std::endl;
45 std::cout <<
"Cluster 2:" << std::endl;
46 std::cout <<
"\tN_Hits: " << cluster2.GetParams().N_Hits << std::endl;
47 std::cout <<
"\tN Sides:" << cluster2.GetParams().PolyObject.Size() << std::endl;
48 for (
unsigned int n=0;
n < cluster2.GetParams().PolyObject.Size();
n++)
49 std::cout <<
"\t\t\t(" << cluster2.GetParams().PolyObject.Point(
n).first <<
", " 50 << cluster2.GetParams().PolyObject.Point(
n).second <<
")" << std::endl;
55 if ( cluster1.GetParams().PolyObject.PolyOverlapSegments(cluster2.GetParams().PolyObject) ){
56 if (
_verbose) { std::cout <<
"Overlap...merging!" << std::endl; }
Class def header for a class CBAlgoPolyOverlap.