#include <TCTowerMaker.h>
Definition at line 18 of file TCTowerMaker.h.
◆ TCTowerMaker()
Gep::TCTowerMaker::TCTowerMaker |
( |
| ) |
|
|
default |
◆ ~TCTowerMaker()
Gep::TCTowerMaker::~TCTowerMaker |
( |
| ) |
|
|
default |
◆ getName()
std::string Gep::TCTowerMaker::getName |
( |
| ) |
const |
|
overridevirtual |
◆ makeTowers()
Implements Gep::ITowerMaker.
Definition at line 6 of file TCTowerMaker.cxx.
8 std::vector<Gep::Cluster> customClusters;
12 clus.
vec.SetPxPyPzE(iClus->p4().Px(), iClus->p4().Py(),
13 iClus->p4().Pz(), iClus->e());
14 customClusters.push_back(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]);
The documentation for this class was generated from the following files: