23 const ::cluster::ClusterParamsAlg &cluster2)
26 if( (cluster1.GetParams().N_Hits <
_min_hits) ||
27 (cluster2.GetParams().N_Hits <
_min_hits) )
31 if ( (cluster1.GetParams().PolyObject.Size() < 2) or
32 (cluster2.GetParams().PolyObject.Size() < 2) ){
35 if (
_debug and cluster1.GetParams().N_Hits > 10
and cluster2.GetParams().N_Hits > 10) {
37 std::cout <<
"\tN_Hits: " << cluster1.GetParams().N_Hits << std::endl;
38 std::cout <<
"\tN Sides:" << cluster1.GetParams().PolyObject.Size() << std::endl;
39 for (
unsigned int n=0;
n < cluster1.GetParams().PolyObject.Size();
n++)
40 std::cout <<
"\t\t\t(" << cluster1.GetParams().PolyObject.Point(
n).first <<
", "
41 << cluster1.GetParams().PolyObject.Point(
n).second <<
")" << std::endl;
43 std::cout <<
"\tN_Hits: " << cluster2.GetParams().N_Hits << std::endl;
44 std::cout <<
"\tN Sides:" << cluster2.GetParams().PolyObject.Size() << std::endl;
45 for (
unsigned int n=0;
n < cluster2.GetParams().PolyObject.Size();
n++)
46 std::cout <<
"\t\t\t(" << cluster2.GetParams().PolyObject.Point(
n).first <<
", "
47 << cluster2.GetParams().PolyObject.Point(
n).second <<
")" << std::endl;
52 if ( cluster1.GetParams().PolyObject.PolyOverlapSegments(cluster2.GetParams().PolyObject) ){
return match has_match and(match.match_pdg==11 or match.match_pdg==-11)
Class def header for a class CBAlgoPolyOverlap.
BEGIN_PROLOG could also be cout