13 rdo_list_cluster = cluster.
rdoList();
14 const std::vector<float>& charge_list_cluster = cluster.
chargeList();
16 if (rdo_list_cluster.size() != charge_list_cluster.size()) {
20 int colmax = std::numeric_limits<int>::min();
21 int rowmax = std::numeric_limits<int>::min();
22 int colmin = std::numeric_limits<int>::max();
23 int rowmin = std::numeric_limits<int>::max();
30 for (std::size_t i(0); i<rdo_list_cluster.size(); ++i) {
32 const float this_charge = charge_list_cluster.at(i);
34 const int row = pixelID.
phi_index(this_rdo);
37 qRowMax = this_charge;
38 }
else if (row == rowmax) {
39 qRowMax += this_charge;
44 qRowMin = this_charge;
45 }
else if (row == rowmin) {
46 qRowMin += this_charge;
49 const int col = pixelID.
eta_index(this_rdo);
52 qColMax = this_charge;
53 }
else if (col == colmax) {
54 qColMax += this_charge;
59 qColMin = this_charge;
60 }
else if (col == colmin) {
61 qColMin += this_charge;
67 if(qRowMin + qRowMax > 0) omegax = qRowMax/(qRowMin + qRowMax);
68 if(qColMin + qColMax > 0) omegay = qColMax/(qColMin + qColMax);
70 return std::make_pair(omegax, omegay);