1 #ifndef RECOTOOL_CBALGOANGLEALIGN_CXX 2 #define RECOTOOL_CBALGOANGLEALIGN_CXX 20 const ::cluster::ClusterParamsAlg &cluster2)
23 double angle1 = cluster1.GetParams().angle_2d;
24 double angle2 = cluster2.GetParams().angle_2d;
25 size_t hits1 = cluster1.GetHitVector().size();
26 size_t hits2 = cluster2.GetHitVector().size();
33 std::cout <<
"Cluster1:" << std::endl;
34 std::cout <<
"\tAngle: " << angle1 << std::endl;
35 std::cout <<
"\t Start: (" << cluster1.GetParams().start_point.w <<
", " << cluster1.GetParams().start_point.t <<
")" << std::endl;
36 std::cout <<
"Cluster2:" << std::endl;
37 std::cout <<
"\tAngle: " << angle2 << std::endl;
38 std::cout <<
"\t Start: (" << cluster2.GetParams().start_point.w <<
", " << cluster2.GetParams().start_point.t <<
")" << std::endl;
39 std::cout << std::endl;
46 if(angle1 < -998 || angle2 < -998)
49 bool compatible =
false;
61 if(compatible) std::cout<<
"These two clusters are compatible in angle."<<std::endl;
Class def header for a class CBAlgoAngleAlign.