21 const std::vector<const cluster::ClusterParamsAlg*>& clusters)
28 if (clusters.size() == 2)
return -1;
35 for (
auto const& c : clusters) {
39 if (c->GetParams().sum_charge < 0) {
41 std::cout <<
"\033[00m Found a cluster with negative charge!\033[00m ... aborting "
42 << __FUNCTION__ << std::endl;
46 if (q_max < c->GetParams().sum_charge) q_max = c->GetParams().sum_charge;
50 for (
auto const& c : clusters) {
51 ratio *= c->GetParams().sum_charge / q_max;
54 std::cout <<
"Sum Charge: " << c->GetParams().sum_charge;
55 std::cout <<
"Q max : " << q_max << std::endl;
56 std::cout <<
"Ratio is: " << ratio << std::endl;
Class def header for a class CFAlgoQRatio.
BEGIN_PROLOG could also be cout