#include <CFAlgoShowerCompat.h>
|
TFile * | _fout |
| TFile pointer to an output file. More...
|
|
bool | _verbose |
| Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager's verbosity level is >= kPerMerging. More...
|
|
User implementation for CFloatAlgoBase class doxygen documentation!
Definition at line 32 of file CFAlgoShowerCompat.h.
cmtool::CFAlgoShowerCompat::CFAlgoShowerCompat |
( |
| ) |
|
Core function: given a set of CPANs, return a float which indicates the compatibility the cluster combination.
Reimplemented from cmtool::CFloatAlgoBase.
Definition at line 41 of file CFAlgoShowerCompat.cxx.
57 double min_OA = 99999.;
58 double max_OA = -99999.;
59 double min_OA_wt = 99999.;
60 double max_OA_wt = -99999.;
61 for (
auto const& c : clusters) {
63 double this_OA = c->GetParams().opening_angle;
64 if (this_OA > max_OA) max_OA = this_OA;
65 if (this_OA < min_OA) min_OA = this_OA;
66 double this_OA_wt = c->GetParams().opening_angle_charge_wgt;
67 if (this_OA_wt > max_OA) max_OA_wt = this_OA_wt;
68 if (this_OA_wt < min_OA) min_OA_wt = this_OA_wt;
69 double this_trackness = c->GetParams().trackness;
71 double this_L_over_W = c->GetParams().length / c->GetParams().width;
73 double this_OA_over_L = this_OA / c->GetParams().length;
75 double this_poly_perim_over_A =
76 c->GetParams().PolyObject.Perimeter() / c->GetParams().PolyObject.Area();
79 double this_modhitdens = c->GetParams().modified_hit_density;
84 _o_ang_rms = pow((pow(min_OA, 2) + pow(max_OA, 2)) / 2, 0.5);
86 _o_ang_wt_rms = pow((pow(min_OA_wt, 2) + pow(max_OA_wt, 2)) / 2, 0.5);
90 bool accept_match =
true;
96 return accept_match ? 1 : -1;
Definition at line 106 of file CFAlgoShowerCompat.cxx.
108 std::cout <<
" This cluster's info is as follows:" << std::endl;
const cluster_params & GetParams() const
double opening_angle
Width of angular distubtion wrt vertx.
BEGIN_PROLOG could also be cout
void cmtool::CFAlgoShowerCompat::Report |
( |
| ) |
|
|
overridevirtual |
Optional function: called after each iterative approach if a manager class is run with verbosity level <= kPerIteration. Maybe useful for debugging.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 101 of file CFAlgoShowerCompat.cxx.
void cmtool::CFAlgoShowerCompat::Reset |
( |
| ) |
|
|
overridevirtual |
void cmtool::CFAlgoShowerCompat::WriteHaxFile |
( |
| ) |
|
|
inline |
TTree* cmtool::CFAlgoShowerCompat::_ana_tree |
|
private |
Optional function: called at the beginning of 1st iteration. This is called per event. Optional function: called at the end of event ... after the last merging iteration is over. Optional function: called at the beggining of each iterative loop. This provides all clusters' information in case the algorithm need them. Note this is called per iteration which may be more than once per event. Optional function: called at the end of each iterative loop.
Definition at line 67 of file CFAlgoShowerCompat.h.
TFile* cmtool::CFAlgoShowerCompat::_fout_hax |
|
private |
double cmtool::CFAlgoShowerCompat::_max_len_over_width |
|
private |
double cmtool::CFAlgoShowerCompat::_max_poly_perim_over_A |
|
private |
double cmtool::CFAlgoShowerCompat::_max_trackness |
|
private |
double cmtool::CFAlgoShowerCompat::_min_modhitdens |
|
private |
double cmtool::CFAlgoShowerCompat::_min_oa_over_len |
|
private |
double cmtool::CFAlgoShowerCompat::_o_ang_avg |
|
private |
double cmtool::CFAlgoShowerCompat::_o_ang_rms |
|
private |
double cmtool::CFAlgoShowerCompat::_o_ang_wt_avg |
|
private |
double cmtool::CFAlgoShowerCompat::_o_ang_wt_rms |
|
private |
The documentation for this class was generated from the following files: