13 rdo_list_cluster = cluster.
rdoList();
17 tot_list_cluster = cluster.
totList();
24 const bool useCharge = rdo_list_cluster.size() == charge_list_cluster.size();
25 if (not useCharge and rdo_list_cluster.size() != tot_list_cluster.size()) {
29 int colmax = std::numeric_limits<int>::min();
30 int rowmax = std::numeric_limits<int>::min();
31 int colmin = std::numeric_limits<int>::max();
32 int rowmin = std::numeric_limits<int>::max();
39 for (std::size_t i(0); i<rdo_list_cluster.size(); ++i) {
41 const float this_charge = useCharge ? charge_list_cluster.at(i)
42 :
static_cast<float>(tot_list_cluster.at(i));
44 const int row = pixelID.
phi_index(this_rdo);
47 qRowMax = this_charge;
48 }
else if (row == rowmax) {
49 qRowMax += this_charge;
54 qRowMin = this_charge;
55 }
else if (row == rowmin) {
56 qRowMin += this_charge;
59 const int col = pixelID.
eta_index(this_rdo);
62 qColMax = this_charge;
63 }
else if (col == colmax) {
64 qColMax += this_charge;
69 qColMin = this_charge;
70 }
else if (col == colmin) {
71 qColMin += this_charge;
77 if(qRowMin + qRowMax > 0) omegax = qRowMax/(qRowMin + qRowMax);
78 if(qColMin + qColMax > 0) omegay = qColMax/(qColMin + qColMax);
80 return std::make_pair(omegax, omegay);