#include <CBAlgoAngleAlign.h>
Definition at line 26 of file CBAlgoAngleAlign.h.
cmtool::CBAlgoAngleAlign::CBAlgoAngleAlign |
( |
| ) |
|
virtual cmtool::CBAlgoAngleAlign::~CBAlgoAngleAlign |
( |
| ) |
|
|
inlinevirtual |
Overloaded (from CBoolAlgoBase) Bool function.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 18 of file CBAlgoAngleAlign.cxx.
22 double angle1 = cluster1.GetParams().angle_2d;
23 double angle2 = cluster2.GetParams().angle_2d;
24 size_t hits1 = cluster1.GetHitVector().size();
25 size_t hits2 = cluster2.GetHitVector().size();
33 std::cout <<
"\tAngle: " << angle1 <<
std::endl;
34 std::cout <<
"\t Start: (" << cluster1.GetParams().start_point.w <<
", " << cluster1.GetParams().start_point.t <<
")" <<
std::endl;
36 std::cout <<
"\tAngle: " << angle2 <<
std::endl;
37 std::cout <<
"\t Start: (" << cluster2.GetParams().start_point.w <<
", " << cluster2.GetParams().start_point.t <<
")" <<
std::endl;
45 if(angle1 < -998 || angle2 < -998)
48 bool compatible =
false;
60 if(compatible) std::cout<<
"These two clusters are compatible in angle."<<
std::endl;
QTextStream & endl(QTextStream &s)
void cmtool::CBAlgoAngleAlign::SetAllow180Ambig |
( |
bool |
on | ) |
|
|
inline |
Method to set whether you allow angles to match with +/- 180 deg difference.
Definition at line 44 of file CBAlgoAngleAlign.h.
void cmtool::CBAlgoAngleAlign::SetAngleCut |
( |
double |
angle | ) |
|
|
inline |
Method to set cut value in degrees for angle compatibility test.
Definition at line 47 of file CBAlgoAngleAlign.h.
void cmtool::CBAlgoAngleAlign::SetDebug |
( |
bool |
on | ) |
|
|
inline |
void cmtool::CBAlgoAngleAlign::SetMinNHits |
( |
size_t |
n | ) |
|
|
inline |
bool cmtool::CBAlgoAngleAlign::_allow_180_ambig |
|
protected |
minimum number of hits for cluster to be considered
bool to allow "backwards" clusters (swapped start/end points) to still match in angle, even though they are 180 degrees apart only valid for _use_opening_angle==false
Definition at line 59 of file CBAlgoAngleAlign.h.
bool cmtool::CBAlgoAngleAlign::_debug |
|
protected |
double cmtool::CBAlgoAngleAlign::_MaxAngleSep |
|
protected |
hard shower-axis angle cutoff (only valid for _use_opening_angle==false)
Definition at line 62 of file CBAlgoAngleAlign.h.
size_t cmtool::CBAlgoAngleAlign::_MinNHits |
|
protected |
The documentation for this class was generated from the following files: