1 #ifndef CFALGOSHOWERCOMPAT_CXX 2 #define CFALGOSHOWERCOMPAT_CXX 18 _fout_hax =
new TFile(
"fout_hax.root",
"RECREATE");
21 _ana_tree =
new TTree(
"ana_tree",
"ana_tree");
58 double min_OA = 99999.;
59 double max_OA = -99999.;
60 double min_OA_wt = 99999.;
61 double max_OA_wt = -99999.;
62 for(
auto const& c : clusters){
64 double this_OA = c->GetParams().opening_angle;
65 if(this_OA > max_OA) max_OA = this_OA;
66 if(this_OA < min_OA) min_OA = this_OA;
67 double this_OA_wt = c->GetParams().opening_angle_charge_wgt;
68 if(this_OA_wt > max_OA) max_OA_wt = this_OA_wt;
69 if(this_OA_wt < min_OA) min_OA_wt = this_OA_wt;
70 double this_trackness = c->GetParams().trackness;
72 double this_L_over_W = c->GetParams().length / c->GetParams().width;
74 double this_OA_over_L = this_OA/c->GetParams().length;
76 double this_poly_perim_over_A = c->GetParams().PolyObject.Perimeter()/c->GetParams().PolyObject.Area();
78 double this_modhitdens = c->GetParams().modified_hit_density;
83 _o_ang_rms = pow( (pow(min_OA,2)+pow(max_OA,2))/2 , 0.5);
85 _o_ang_wt_rms = pow( (pow(min_OA_wt,2)+pow(max_OA_wt,2))/2 , 0.5);
89 bool accept_match =
true;
95 return accept_match ? 1 : -1;
106 std::cout<<
" This cluster's info is as follows:"<<std::endl;
This algo only matches clusters if they are not track-like. This is implemented in an algo because it...
const cluster_params & GetParams() const
double opening_angle
Width of angular distubtion wrt vertx.