12 const std::vector<Identifier>& rod_list_cluster = cluster.
rdoList();
13 const std::vector<float>& charge_list_cluster = cluster.
chargeList();
15 if (rod_list_cluster.size() != charge_list_cluster.size()) {
29 for (std::size_t
i(0);
i<rod_list_cluster.size(); ++
i) {
30 const Identifier& this_rdo = rod_list_cluster.at(
i);
31 const float this_charge = charge_list_cluster.at(
i);
36 qRowMax = this_charge;
37 }
else if (
row == rowmax) {
38 qRowMax += this_charge;
43 qRowMin = this_charge;
44 }
else if (
row == rowmin) {
45 qRowMin += this_charge;
48 const int col = pixelID.
eta_index(this_rdo);
51 qColMax = this_charge;
52 }
else if (col == colmax) {
53 qColMax += this_charge;
58 qColMin = this_charge;
59 }
else if (col == colmin) {
60 qColMin += this_charge;
66 if(qRowMin + qRowMax > 0) omegax = qRowMax/(qRowMin + qRowMax);
67 if(qColMin + qColMax > 0) omegay = qColMax/(qColMin + qColMax);
69 return std::make_pair(omegax, omegay);