1 #ifndef RECOTOOL_CBALGOSTARTINPOLY_CXX 2 #define RECOTOOL_CBALGOSTARTINPOLY_CXX 31 const ::cluster::ClusterParamsAlg &cluster2)
35 if ( ( (cluster1.GetHitVector().size() >
_MinHits) and
36 (cluster2.GetHitVector().size() >
_MinHits) ) or
37 ( (cluster1.GetParams().PolyObject.Size() < 2) or
38 (cluster2.GetParams().PolyObject.Size() < 2) ) )
45 float w_start1 = cluster1.GetParams().start_point.w;
46 float t_start1 = cluster1.GetParams().start_point.t;
48 float w_start2 = cluster2.GetParams().start_point.w;
49 float t_start2 = cluster2.GetParams().start_point.t;
53 std::pair<float,float> start1;
54 std::pair<float,float> start2;
55 start1 = std::make_pair( w_start1, t_start1);
56 start2 = std::make_pair( w_start2, t_start2);
60 std::cout <<
"\tStart1: (" << w_start1 <<
", " << t_start1 <<
" )" << std::endl;
61 std::cout <<
"\tN Sides2:" << cluster2.GetParams().PolyObject.Size() << std::endl;
62 for (
unsigned int n=0;
n < cluster2.GetParams().PolyObject.Size();
n++)
63 std::cout <<
"\t\t\t(" << cluster2.GetParams().PolyObject.Point(
n).first <<
", " 64 << cluster2.GetParams().PolyObject.Point(
n).first <<
" )" << std::endl;
65 std::cout <<
"\tStart2: (" << w_start2 <<
", " << t_start2 <<
" )" << std::endl;
66 std::cout <<
"\tN Sides2:" << cluster1.GetParams().PolyObject.Size() << std::endl;
67 for (
unsigned int n=0;
n < cluster1.GetParams().PolyObject.Size();
n++)
68 std::cout <<
"\t\t\t(" << cluster1.GetParams().PolyObject.Point(
n).first <<
", " 69 << cluster1.GetParams().PolyObject.Point(
n).first <<
" )" << std::endl;
74 if ( ( cluster2.GetParams().PolyObject.PointInside( start1) ) and (cluster1.GetHitVector().size() >
_MinHits) ){
76 std::cout <<
"Start point of Cluster 1 in Polygon of Cluster 2!" << std::endl;
81 if ( ( cluster1.GetParams().PolyObject.PointInside( start2) ) and (cluster1.GetHitVector().size() >
_MinHits) ){
83 std::cout <<
"Start point of Cluster 2 in Polygon of Cluster 1!" << std::endl;
Class def header for a class CBAlgoStartInPoly.
Double_t TimeToCm() const
Double_t WireToCm() const