8 std::vector<Gep::Cluster> customClusters;
10 for(
const auto* iClus : clusters){
12 clus.
vec.SetPxPyPzE(iClus->p4().Px(), iClus->p4().Py(),
13 iClus->p4().Pz(), iClus->e());
14 customClusters.push_back(std::move(clus));
18 static constexpr int nEta{98};
19 static constexpr int nPhi{64};
25 for (
const auto& cluster : customClusters) {
27 int eta_index =
static_cast<int>(std::floor(cluster.vec.Eta() * 10)) + 49;
28 int phi_index =
static_cast<int>(std::floor(cluster.vec.Phi() * 10)) + 32;
31 if (eta_index < 0 || eta_index >= nEta || phi_index < 0 || phi_index >= nPhi)
continue;
34 tow[eta_index][phi_index].vec += cluster.vec;
38 std::vector<Gep::Cluster> customTowers;
39 for (
int i = 0; i < nEta; ++i) {
40 for (
int j = 0; j < nPhi; ++j) {
41 if (tow[i][j].
vec.Et() > 0) {
42 customTowers.push_back(tow[i][j]);