1 #ifndef _PHASE_2_L1_CALO_PFCLUSTER_EMULATOR_H_ 2 #define _PHASE_2_L1_CALO_PFCLUSTER_EMULATOR_H_ 122 float et_sumEta[3] = {0., 0., 0.};
126 if (
i + 1 ==
eta &&
j + 1 == phi) {
127 for (
int k = 0;
k < 3;
k++) {
134 float pfcluster_et = et_sumEta[0] + et_sumEta[1] + et_sumEta[2];
143 if (
j + 1 >= phi &&
j <= phi + 1) {
162 float pfcluster_et =
getEt(temporary, regionMax.
eta, regionMax.
phi);
170 pfclusterReturn.
et = pfcluster_et;
171 pfclusterReturn.
eta = regionMax.
eta - 2 + etaoffset;
172 pfclusterReturn.
phi = regionMax.
phi - 2 + phioffset;
174 return pfclusterReturn;
192 return GCTPfclusters;
GCTpfcluster_t recoPfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset)
static constexpr int nPFClusterSLR
static constexpr int nSLR
GCTint_t getPeakPosition(const Region_t ®ion)
Region_t initStructure(float temp[nTowerEtaSLR][nTowerPhiSLR])
GCTint_t getPeakBin(const GCTEtaStripPeak_t &etaStripPeak)
float getEt(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi)
void RemoveTmp(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi)
GCTpfcluster_t GCTpfclusters[nPFClusterSLR]
GCTint_t getPeakOfStrip(const GCTEtaStrip_t &etaStrip)
GCTint_t p[nTowerEtaSLR - 2]
static constexpr int nTowerEtaSLR
static constexpr int nTowerEta
PFcluster_t pfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset)
static constexpr int nTowerPhiSLR
static constexpr int nTowerPhi
GCTint_t bestOf2(const GCTint_t &t0, const GCTint_t &t1)