#include <CBAlgoAngleCompat.h>
User defined class CBAlgoAngleCompat ... these comments are used to generate doxygen documentation!
Definition at line 28 of file CBAlgoAngleCompat.h.
cmtool::CBAlgoAngleCompat::CBAlgoAngleCompat |
( |
| ) |
|
virtual cmtool::CBAlgoAngleCompat::~CBAlgoAngleCompat |
( |
| ) |
|
|
inlinevirtual |
Overloaded (from CBoolAlgoBase) Bool function.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 27 of file CBAlgoAngleCompat.cxx.
38 double angle1 = cluster1.GetParams().angle_2d;
39 double angle2 = cluster2.GetParams().angle_2d;
41 double w_start1 = cluster1.GetParams().start_point.w;
42 double t_start1 = cluster1.GetParams().start_point.t;
43 double w_start2 = cluster2.GetParams().start_point.w;
44 double t_start2 = cluster2.GetParams().start_point.t;
49 std::cout <<
"\tAngle: " << angle1 <<
std::endl;
50 std::cout <<
"\tStart: ( " << w_start1 <<
", " << t_start1 <<
" )" <<
std::endl;
52 std::cout <<
"\tAngle: " << angle2 <<
std::endl;
53 std::cout <<
"\tStart: ( " << w_start2 <<
", " << t_start2 <<
" )" <<
std::endl;
60 if(angle1 < -998 || angle2 < -998)
69 bool compatible =
false;
74 my_cut_value =
std::min(cluster1.GetParams().opening_angle, cluster2.GetParams().opening_angle);
78 compatible = (
abs(angle1-angle2) < my_cut_value ||
79 abs(angle1-angle2-180) < my_cut_value ||
80 abs(angle1-angle2+180) < my_cut_value );
82 compatible = (
abs(angle1-angle2) < my_cut_value );
86 if(compatible) std::cout<<
"These two clusters are compatible in angle."<<
std::endl;
87 else std::cout<<
"These two clusters are NOT compatible in angle."<<
std::endl;
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
QTextStream & endl(QTextStream &s)
void cmtool::CBAlgoAngleCompat::SetAllow180Ambig |
( |
bool |
on | ) |
|
|
inline |
Method to set whether you allow angles to match with +/- 180 deg difference.
Definition at line 46 of file CBAlgoAngleCompat.h.
void cmtool::CBAlgoAngleCompat::SetAngleCut |
( |
double |
angle | ) |
|
|
inline |
Method to set cut value in degrees for angle compatibility test.
Definition at line 49 of file CBAlgoAngleCompat.h.
void cmtool::CBAlgoAngleCompat::SetDebug |
( |
bool |
on | ) |
|
|
inline |
void cmtool::CBAlgoAngleCompat::SetMinHits |
( |
size_t |
n | ) |
|
|
inline |
void cmtool::CBAlgoAngleCompat::SetUseOpeningAngle |
( |
bool |
on | ) |
|
|
inline |
Method to set angle cut value to be based on opening angle.
Definition at line 52 of file CBAlgoAngleCompat.h.
bool cmtool::CBAlgoAngleCompat::_allow_180_ambig |
|
protected |
bool to suppress lots of output if you want
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 66 of file CBAlgoAngleCompat.h.
bool cmtool::CBAlgoAngleCompat::_debug |
|
protected |
double cmtool::CBAlgoAngleCompat::_max_allowed_2D_angle_diff |
|
protected |
hard shower-axis angle cutoff (only valid for _use_opening_angle==false)
Definition at line 69 of file CBAlgoAngleCompat.h.
size_t cmtool::CBAlgoAngleCompat::_minHits |
|
protected |
bool cmtool::CBAlgoAngleCompat::_use_opening_angle |
|
protected |
bool set to true if you want to use opening angle as the cutoff angle instead of whatever you set with SetAngleCut
Definition at line 73 of file CBAlgoAngleCompat.h.
TH1F* cmtool::CBAlgoAngleCompat::angle_dist_histo |
|
protected |
Min Number of hits for cluster to be considered.
Histogram used for debugging/cut value settings
Definition at line 78 of file CBAlgoAngleCompat.h.
The documentation for this class was generated from the following files: