19 const std::vector<const cluster::ClusterParamsAlg*>& clusters)
26 if (clusters.size() == 2)
return -1;
33 for (
auto const& c : clusters) {
37 if (c->GetParams().sum_charge < 0) {
39 std::cout <<
"\033[00m Found a cluster with negative charge!\033[00m ... aborting " 40 << __FUNCTION__ << std::endl;
44 if (q_max < c->GetParams().sum_charge) q_max = c->GetParams().sum_charge;
48 for (
auto const& c : clusters) {
49 ratio *= c->GetParams().sum_charge / q_max;
52 std::cout <<
"Sum Charge: " << c->GetParams().sum_charge;
53 std::cout <<
"Q max : " << q_max << std::endl;
54 std::cout <<
"Ratio is: " << ratio << std::endl;
60 std::cout <<
" ... pass!" << std::endl;
62 std::cout <<
" ... below cut value: " <<
_qratio_cut << std::endl;
Class def header for a class CFAlgoQRatio.